This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # apt get install convmv | |
| # convmv -f cp1251 -t utf8 * --notest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mvn deploy:deploy-file -Durl={nexus url} -DrepositoryId={id} -DgroupId={groupId} -DartifactId={artifactId} -Dversion={version} -Dpackaging=jar -Dfile={filename.jar} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo curl https://raw.github.com/beautifulcode/ssh-copy-id-for-OSX/master/ssh-copy-id.sh -o /usr/local/bin/ssh-copy-id | |
| sudo chmod +x /usr/local/bin/ssh-copy-id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd /tmp | |
| rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* | |
| rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt | |
| wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm | |
| rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm | |
| rpm --import https://fedoraproject.org/static/0608B895.txt | |
| wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| rpm -ivh epel-release-6-8.noarch.rpm | |
| rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi | |
| rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dd if=/dev/zero of=/swapfile bs=1024 count=65536 | |
| mkswap /swapfile | |
| chmod 0600 /swapfile | |
| swapon /swapfile | |
| /swapfile swap swap defaults 0 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo rm /etc/localtime | |
| sudo ln -s /usr/share/zoneinfo/Europe/Kiev /etc/localtime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git log -n5 --branches=* --pretty=format:'{%n"hash":"%h",%n"author":"%an",%n"date":"%ad",%n"email":"%aE",%n"message":"%s",%n"commitDate":"%ai",%n"age":"%cr"},' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git config http.postBuffer 524288000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Изменим поведение Ubuntu в отношении использования ОЗУ и подкачки (раздел swap). Есть такой параметр vm.swappiness, который по умолчанию имеет значение 60, и контролирует процент свободной памяти, при которой начнется активный сброс страниц в раздел swap. Иными словами, при 100-60=40% занятой памяти, Ubuntu уже начнет использовать раздел swap. При большом количестве ОЗУ в компьютере, лучше изменить параметр vm.swappiness до 10 и тем самым приказать Ubuntu не использовать swap пока занятая ОЗУ не достигнет 100-10=90%. Установим значение 10 вместо 60. В консоли введите следующую команду: | |
| echo 10 > /proc/sys/vm/swappiness | |
| или | |
| sysctl -w vm.swappiness=10 | |
| Для сохранения настройки после перезагрузки внесите в конец файла /etc/sysctl.conf следующую строку: | |
| vm.swappiness = 10 |
OlderNewer