This file contains 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
CONFIGURE_ARGS="with-sqlite3-include=/usr/local/include with-opt-dir=/usr/local" gem install sqlite3 |
This file contains 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
diff --git a/src/consts.h b/src/consts.h | |
index 0eb5178..0a88ef1 100644 | |
--- a/src/consts.h | |
+++ b/src/consts.h | |
@@ -54,6 +54,7 @@ | |
"document.body.appendChild(el);" | |
#define PAGE_SETTINGS_LOAD_IMAGES "loadImages" | |
+#define PAGE_SETTINGS_CLEAR_MEMORY_CACHES "clearMemoryCaches" | |
#define PAGE_SETTINGS_JS_ENABLED "javascriptEnabled" |
This file contains 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 clone https://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
echo '# rbenv setup' > /etc/profile.d/rbenv.sh | |
echo 'export RBENV_ROOT=/usr/local/rbenv' >> /etc/profile.d/rbenv.sh | |
echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> /etc/profile.d/rbenv.sh | |
echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh | |
chmod +x /etc/profile.d/rbenv.sh | |
source /etc/profile.d/rbenv.sh |
This file contains 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
# put this to crontab | |
@daily ~/notify.sh | |
# for automatic updates (not upgrades) | |
@daily /usr/local/bin/brew update > /dev/null 2>&1 |
This file contains 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
server { | |
listen 8085; | |
root /home/debian-transmission/downloads; | |
charset utf8; | |
location / { | |
autoindex on; | |
autoindex_exact_size off; | |
autoindex_localtime on; |
This file contains 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
#!/bin/sh | |
LIBDIR=~/Library/Frameworks/ | |
mkdir caesaria | |
pushd caesaria | |
curl -C - -OL http://downloads.sourceforge.net/project/opencaesar3/bin/caesaria-mac-b1362.zip | |
unzip caesaria-mac-b1362.zip |
This file contains 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
update | |
upgrade | |
# beautiful info about system | |
install archey | |
# ssh connection with monitoring and autoreconnecting | |
install autossh | |
# brew repo for desktop apps |
This file contains 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
#!/bin/sh | |
for file in $(cat list.txt); do sed -i '' -e '$a\' $file; done |
This file contains 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
#!/bin/sh | |
BACKUP_PATH=/tmp/packages_list | |
brew ls > $BACKUP_PATH | |
brew rm $(cat $BACKUP_PATH) | |
brew install $(cat $BACKUP_PATH) | |
rm $BACKUP_PATH | |
brew cleanup -s |
This file contains 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
'AB' => 'Абхазия', | |
'AU' => 'Австралия', | |
'AT' => 'Австрия', | |
'AZ' => 'Азербайджан', | |
'AL' => 'Албания', | |
'DZ' => 'Алжир', | |
'AS' => 'Американское Самоа', | |
'AI' => 'Ангилья', | |
'AO' => 'Ангола', | |
'AD' => 'Андорра', |