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
sudo scutil --set HostName [hostname] |
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
first way : | |
1. Enable "VNC viewers may control screen" option in remote management preferences. | |
second way (via ssh) | |
1. start server with sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw [your_password] -restart -agent -privs -all | |
2. if server already started, stop it with sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off |
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
/* Large desktop */ | |
@media (min-width: 1200px) { } | |
/* Portrait tablet to landscape and desktop */ | |
@media (min-width: 768px) and (max-width: 979px) { } | |
/* Landscape phone to portrait tablet */ | |
@media (max-width: 767px) { } | |
/* Landscape phones and down */ |
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 80; | |
server_name anakros.name; | |
location / { | |
root /srv/http/main; | |
index index.html index.php; | |
} | |
location ~ \.(php|html|htm)$ { |
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
1. comm -23 <(pacman -Qeq|sort) <(pacman -Qmq|sort) > pkglist.txt | |
2. pacman -S $(< pkglist.txt) |
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' => 'Андорра', |
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
#!/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
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 | |
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 |
OlderNewer