jeudi 2 juillet 2020
Latest Command Line
Par Arnaud Charlier, jeudi 2 juillet 2020 à 16:43 :: Linux et Debian
du -sh /*
control-rRun task in Background
nohup command
jeudi 2 juillet 2020
Par Arnaud Charlier, jeudi 2 juillet 2020 à 16:43 :: Linux et Debian
du -sh /*
control-rRun task in Background
nohup command
lundi 18 mai 2020
Par Arnaud Charlier, lundi 18 mai 2020 à 18:19 :: Linux et Debian
mercredi 5 février 2020
Par Arnaud Charlier, mercredi 5 février 2020 à 14:21 :: Linux et Debian
jeudi 11 juillet 2019
Par Arnaud Charlier, jeudi 11 juillet 2019 à 01:13 :: Linux et Debian
mardi 2 juillet 2019
Par Arnaud Charlier, mardi 2 juillet 2019 à 12:19 :: Linux et Debian
Par Arnaud Charlier, mardi 2 juillet 2019 à 10:20 :: Linux et Debian
vendredi 28 juin 2019
Par Arnaud Charlier, vendredi 28 juin 2019 à 11:46 :: Linux et Debian
jeudi 20 juin 2019
Par Arnaud Charlier, jeudi 20 juin 2019 à 12:44 :: Linux et Debian
sudo su {user} #all limit ulimit -a #Ulimite -hard: ulimit -Hn #Ulimite -Soft: ulimit -SnList open file per process or per user
lsof -p {pid}| wc -l lsof -u {youruser} |wc -lList Network connection per state
netstat -an|awk '/tcp/ {print $6}'|sort|uniq -cList php-fpm process running
ps aux | grep php-fpm | wc -l
sudo vi /etc/security/limits.conf * soft nofile 65000 //for all user user soft nofile 5000 // for a specific user
mercredi 10 avril 2019
Par Arnaud Charlier, mercredi 10 avril 2019 à 22:57 :: Linux et Debian
In order to use the ssh-key in Bastion and leap-frog to protected server
Make sure the ssh agent is runningeval `ssh-agent -s`then add your key
ssh-add -k your-key.pem ssh-add -LThen use the ssh agent
ssh -A ec2-user@your-iphttps://www.daveeddy.com/2017/10/18/persistent-sshagent-on-bash-on-ubuntu-on-windows/ https://medium.com/@crishantha/handing-bastion-hosts-on-aws-via-ssh-agent-forwarding-f1d2d4e8622a
vendredi 1 février 2019
Par Arnaud Charlier, vendredi 1 février 2019 à 13:07 :: Linux et Debian
dd if=/dev/xvdf of=/dev/xvdg bs=4096just monitor progress this way.
watch -n5 'sudo kill -USR1 $(pgrep ^dd)'Some more fancy progress tools : https://www.cyberciti.biz/faq/linux-unix-dd-command-show-progress-while-coping/
vendredi 18 janvier 2019
Par Arnaud Charlier, vendredi 18 janvier 2019 à 12:02 :: Linux et Debian
For Amazon Linux 2 or the Amazon Linux AMI, the user name is ec2-user. For a Centos AMI, the user name is centos. For a Debian AMI, the user name is admin or root. For a Fedora AMI, the user name is ec2-user or fedora.For a RHEL AMI, the user name is ec2-user or root. For a SUSE AMI, the user name is ec2-user or root. For an Ubuntu AMI, the user name is ubuntu. Otherwise, if ec2-user and root don't work, check with the AMI provider.
mercredi 26 décembre 2018
Par Arnaud Charlier, mercredi 26 décembre 2018 à 23:02 :: Linux et Debian
docker run --rm --name pg-docker -e POSTGRES_PASSWORD=docker -d -p 5432:5432 -v $HOME/docker/volumes/postgres:/var/lib/postgresql/data postgresList Database
SELECT datname FROM pg_database WHERE datistemplate = false;List Schema
SELECT schema_name FROM information_schema.schemata;List Tables
SELECT * FROM pg_catalog.pg_tablesList tables schema
SELECT column_name, data_type, character_maximum_length FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = 'Initial Source : Git Link source';
jeudi 17 mai 2018
Par Arnaud Charlier, jeudi 17 mai 2018 à 11:57 :: Linux et Debian
svn log -q https://yourRepoUrl | awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" <"$2">"}' | sort -u > authors-transform.txt- Checkout / Convert To Git
git svn --authors-file=authors-transform.txt clone https://yourRepoUrl --trunk=trunk --branches=branches --tags=tags- List all branch
git branch -a- Checkout the Branch Localy
git checkout remotes/origin/v2 git checkout master-Create Local Branch From Remote Branch
git branch v2 remotes/origin/v2-Push Publish on Github
git remote add origin https://user@gitRepos/theGitProject.git git push -u origin master git push --all git push --tags
mardi 19 décembre 2017
Par Arnaud Charlier, mardi 19 décembre 2017 à 12:06 :: Linux et Debian
mercredi 13 septembre 2017
Par Arnaud Charlier, mercredi 13 septembre 2017 à 17:52 :: Linux et Debian
update-rc.d -f mongodb remove
chkconfing