1. install
brew install tor
brew install privoxy
2. copy and modify config file
| #!/bin/sh | |
| SHORTCUT="[Desktop Entry] | |
| Name=Sublime Text 3 | |
| Comment=Edit text files | |
| Exec=/usr/local/sublime-text-3/sublime_text | |
| Icon=/usr/local/sublime-text-3/Icon/128x128/sublime_text.png | |
| Terminal=false | |
| Type=Application | |
| Encoding=UTF-8 | |
| Categories=Utility;TextEditor;" |
| //PhantomJS http://phantomjs.org/ based web crawler Anton Ivanov anton.al.ivanov@gmail.com 2012 | |
| //UPDATE: This gist has been made into a Node.js module and now can be installed with "npm install js-crawler" | |
| //the Node.js version does not use Phantom.JS, but the API available to the client is similar to the present gist | |
| (function(host) { | |
| function Crawler() { | |
| this.visitedURLs = {}; | |
| }; | |
1. install
brew install tor
brew install privoxy
2. copy and modify config file
| #!/bin/bash | |
| # Download GitKraken | |
| wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz | |
| # copy the downloaded file into /opt directory | |
| cp gitkraken-amd64.tar.gz /opt/gitkraken | |
| cd /opt |
| #!/bin/bash | |
| ################################################################################# | |
| # WARNING: DO NOT JUST RUN THIS SCRIPT BLINDLY. MAKE SURE YOU UNDERSTAND WHAT IT | |
| # IS DOING. IT *WILL* TRY TO COMMIT CHANGES. IT WILL ALSO TRY TO EAT YOUR | |
| # CHILDREN. IT MAY CAUSE THE SUN TO GO SUPERNOVA. I CLAIM NO RESPONSIBILITY FOR | |
| # WHATEVER HAPPENS AFTER YOU RUN THIS. NOW, CARRY ON. :-) | |
| # | |
| # This script, run from the root of a Maven single or multi-module project, will | |
| # update the pom files to increment the build number on the version. |
| require 'net/http' | |
| require 'json' | |
| require 'uri' | |
| @token = '' | |
| def list_files | |
| ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago | |
| params = { | |
| token: @token, |
| @echo off | |
| FOR /f "tokens=*" %%i IN ('docker ps -aq') DO docker rm %%i | |
| FOR /f "tokens=*" %%i IN ('docker images --format "{{.ID}}"') DO docker rmi %%i |
| #!/bin/bash | |
| # Enter /opt folder (common folder for user installed programs) | |
| # This script assumes you have proper permissions on /opt | |
| cd /home/mengxin/Applications | |
| # Download GitKraken | |
| wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz | |
| # Extract the Kraken into /opt directory |
GNOME's tracker is a CPU and privacy hog. There's a pretty good case as to why it's neither useful nor necessary here: http://lduros.net/posts/tracker-sucks-thanks-tracker/
After discovering it chowing 2 cores, I decided to go about disabling it.
Directories
| ## Forked from https://gist.github.com/dersam/0ec781e8fe552521945671870344147b | |
| ## Also received help from https://twitter.com/gitkraken/status/691675309725368321 | |
| ## Open GitKraken using the current repo directory. | |
| ## This code is for fish shell. The same thing can be done in bash | |
| ## by creating an alias with the command below. | |
| ## `1>/dev/null` directs logs from the terminal | |
| ## `&` allows use of the same terminal instance to do other things |