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
#!/bin/bash | |
# lets. A productivity booster | |
# Based on ideas from https://gist.github.com/605292 | |
# | |
# Create a /etc/hosts.work with a list of sites you wanna block and execute | |
# | |
# $ sudo lets work | |
# | |
# When you finish your hard work, unblock the sites writing |
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
#!/bin/sh | |
# Title : tree | |
# See : http://damienix.jogger.pl/2010/12/01/skrypt-bashowy-wyswietlajacy-drzewko-struktury-katalogow/ | |
# Date : 2010-12-16 | |
# Author : Damian Skrodzki <[email protected]> | |
# Description : Prints directory tree | |
clr_dir='\033[1;34m' # Blue | |
clr_fil='\033[0;33m' # Yellow |
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
Solution: | |
Launch Keychain Access by clicking Applications > Utilities > Keychain Access | |
On the left upper pane, under Keychains select System | |
On the left lower, under Category select All Items | |
On the right side of the screen scroll to the bottom and locate the two items called VPN(IPSec) | |
Double-click the VPN(IPSec) whos kind is IPSec XAuth Password | |
Click the Access Control button/tab. The applications permitted to use this keychain item will be displayed below. If you’re prompted for your password, enter it. | |
Click the plus (+) sign | |
When the Finder window appears, press Cmd + Shift + G on your keyboard | |
When the Go To Folder dialog appears, enter /usr/libexec |
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
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |