1. install
brew install tor
brew install privoxy
2. copy and modify config file
| #!/bin/bash | |
| # kill 443 VMWARE | |
| sudo fuser -k -n tcp 443 | |
| # start the nginx service | |
| sudo systemctl start nginx.service | |
| # alias startup="sudo sh ~/Dropbox/Deepnet/2_Linux/startup_script.sh" | |
| echo "alias startup='sudo sh ~/Dropbox/Deepnet/2_Linux/startup_script.sh'" >> ~/.bashrc | |
| source ~/.bashrc |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Response> | |
| <Say voice="alice" >Hello, {{Name}}.Your one time password is {{Code}}</Say> | |
| </Response> |
| # cope date to clipboard which can be used for ctrl+v | |
| date | xclip -selection clipboard | |
| # filter port | |
| sudo netstat -nlp | grep 443 | |
| # start/stop/restart service | |
| sudo systemctl start nginx.service | |
| sudo systemctl restart nginx.service | |
| sudo systemctl stop nginx.service | |
| sudo systemctl status nginx.service |
| <md-input-container dividerColor="accent" class="input-container" floatPlaceholder="Test"> | |
| <span md-prefix>$ </span> | |
| <span md-suffix>.00</span> | |
| <input mdInput name="value" ngModel placeholder="amount" align="end" > | |
| </md-input-container> |
| setCssDynamical($event) { | |
| console.log($event); | |
| $event.source.trigger.nativeElement.childNodes[0].setAttribute("style", "font-size: 20px;font-weight: bold") | |
| //mat-select-trigger | |
| //mat-select-placeholder | |
| //let elt = document.getElementsByClassName("mat-select-placeholder").item(0); | |
| //elt.setAttribute("style", "font-size: 20px;font-weight: bold"); | |
| } |
| #!/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 |
| git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git | |
| git fetch upstream | |
| git pull upstream master |