

<feed xmlns="http://www.w3.org/2005/Atom">
  <id>https://eric.kz/</id>
  <title>Eric Site</title>
  <subtitle>Test Site</subtitle>
  <updated>2022-11-21T21:26:01+06:00</updated>
  <author>
    <name>eric</name>
    <uri>https://eric.kz/</uri>
  </author>
  <link rel="self" type="application/atom+xml" href="https://eric.kz/feed.xml"/>
  <link rel="alternate" type="text/html" hreflang="en"
    href="https://eric.kz/"/>
  <generator uri="https://jekyllrb.com/" version="4.3.1">Jekyll</generator>
  <rights> © 2022 eric </rights>
  <icon>/assets/img/favicons/favicon.ico</icon>
  <logo>/assets/img/favicons/favicon-96x96.png</logo>


  
  <entry>
    <title>Memory</title>
    <link href="https://eric.kz/posts/Memory/" rel="alternate" type="text/html" title="Memory" />
    <published>2022-07-08T18:00:00+06:00</published>
  
    <updated>2022-07-08T18:00:00+06:00</updated>
  
    <id>https://eric.kz/posts/Memory/</id>
    <content src="https://eric.kz/posts/Memory/" />
    <author>
      <name>eric</name>
    </author>

  
    
    <category term="memory" />
    
  

  
    <summary>
      





      Memory

Base command
Show memory in MB.
Available field shows free memory
Total field shows all memory
Used field shows how much memory been used (includes cache)
Free field shows unused memory
free -m

sysctl vm.swappiness


    </summary>
  

  </entry>

  
  <entry>
    <title>Helm</title>
    <link href="https://eric.kz/posts/Helm/" rel="alternate" type="text/html" title="Helm" />
    <published>2022-06-17T18:00:00+06:00</published>
  
    <updated>2022-06-17T18:00:00+06:00</updated>
  
    <id>https://eric.kz/posts/Helm/</id>
    <content src="https://eric.kz/posts/Helm/" />
    <author>
      <name>eric</name>
    </author>

  
    
    <category term="helm" />
    
  

  
    <summary>
      





      Helm

Base command
helm create name-of-the-chart


    </summary>
  

  </entry>

  
  <entry>
    <title>Flux</title>
    <link href="https://eric.kz/posts/Flux/" rel="alternate" type="text/html" title="Flux" />
    <published>2022-06-17T18:00:00+06:00</published>
  
    <updated>2022-06-22T11:33:16+06:00</updated>
  
    <id>https://eric.kz/posts/Flux/</id>
    <content src="https://eric.kz/posts/Flux/" />
    <author>
      <name>eric</name>
    </author>

  
    
    <category term="flux" />
    
  

  
    <summary>
      





      Flux

Base command

curl -s https://fluxcd.io/install.sh | sudo bash

export GITHUB_TOKEN=&amp;lt;your-token&amp;gt;

flux bootstrap github \
  --owner=my-github-username \
  --repository=my-repository \
  --path=clusters/my-cluster \
  --personal
flux get kustomizations --watch

flux uninstall --namespace=flux-system


    </summary>
  

  </entry>

  
  <entry>
    <title>Git</title>
    <link href="https://eric.kz/posts/GIT/" rel="alternate" type="text/html" title="Git" />
    <published>2022-06-15T18:00:00+06:00</published>
  
    <updated>2022-10-22T20:36:18+06:00</updated>
  
    <id>https://eric.kz/posts/GIT/</id>
    <content src="https://eric.kz/posts/GIT/" />
    <author>
      <name>eric</name>
    </author>

  
    
    <category term="git" />
    
  

  
    <summary>
      





      Git

Base command
git --version

#Set username
git config --global user.name "Eric Nexus"

#Set User Email
git config --global user.email eric@eric.kz

#Show All Git config
git config --list

#Create New Repo
git init

#rename branch
git branch -m &amp;lt;name&amp;gt;

git status #show index

git add . #add all changes to index


    </summary>
  

  </entry>

  
  <entry>
    <title>Postgres</title>
    <link href="https://eric.kz/posts/Postgres/" rel="alternate" type="text/html" title="Postgres" />
    <published>2022-06-14T18:00:00+06:00</published>
  
    <updated>2022-06-15T18:48:09+06:00</updated>
  
    <id>https://eric.kz/posts/Postgres/</id>
    <content src="https://eric.kz/posts/Postgres/" />
    <author>
      <name>eric</name>
    </author>

  
    
    <category term="Database" />
    
  

  
    <summary>
      





      Postgres

Force Delete Database in Postgres
ALTER DATABASE "jurta-test" WITH CONNECTION LIMIT 0;

SELECT pg_terminate_backend(sa.pid) FROM pg_stat_activity sa WHERE
sa.pid &amp;lt;&amp;gt; pg_backend_pid() AND sa.datname = 'jurta-test';

DROP DATABASE "jurta-test";


    </summary>
  

  </entry>

</feed>


