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
| setInterval(function(){ | |
| var buttons = document.getElementsByClassName('liked'); | |
| var i = 0; buttons[i].scrollIntoView(); buttons[i].click(); | |
| },250); |
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
| export VERSION="3.7.1" | |
| xcode-select --install | |
| brew update | |
| brew upgrade | |
| brew install zlib | |
| brew reinstall zlib | |
| export LDFLAGS="-L/usr/local/opt/zlib/lib" | |
| export CPPFLAGS="-I/usr/local/opt/zlib/include" | |
| pyenv install $VERSION | |
| pyenv global $VERSION |
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
| exports.handler = async (event) => { | |
| console.log(event) | |
| // TODO implement | |
| const response = { | |
| statusCode: 200, | |
| body: JSON.stringify('Hello from Lambda!') | |
| }; | |
| return response; | |
| }; |
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
| export INPUT=filename.pdf; | |
| export FOLDER=folderName; | |
| STRIPPED=${INPUT%%.*} | |
| aws s3 cp $INPUT s3://BUCKET/path/$(echo $FOLDER)/$(echo $STRIPPED)_i.pdf --content-disposition inline |
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
| # Your init script | |
| # | |
| # Atom will evaluate this file each time a new window is opened. It is run | |
| # after packages are loaded/activated and after the previous editor state | |
| # has been restored. | |
| # | |
| # An example hack to log to the console when each text editor is saved. | |
| # | |
| # atom.workspace.observeTextEditors (editor) -> | |
| # editor.onDidSave -> |
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
| console.log(`into ${dir}/${repo}`); | |
| command = ` | |
| cd ${__dirname}; | |
| cd ${dir}; | |
| git clone ${url}; | |
| cd ${repo} | |
| `; |
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
| function bashRun(command){ | |
| var exec = require('child_process').exec; | |
| console.log(command); | |
| var child = exec(command); | |
| child.stdout.on('data', function(data) { | |
| console.log('stdout: ' + data); | |
| }); | |
| child.stderr.on('data', function(data) { | |
| console.log('stderr: ' + data); |
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
| git branch -r | grep -v '\->' | while read remote; | |
| do git branch --track "${remote#origin/}" "$remote"; | |
| done; | |
| git fetch --all; | |
| git pull --all; | |
| #fetch and pull every branch of the current git repo |
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
| # Eternal bash history. | |
| # --------------------- http://stackoverflow.com/questions/9457233/unlimited-bash-history | |
| # Undocumented feature which sets the size to "unlimited". | |
| # http://stackoverflow.com/questions/9457233/unlimited-bash-history | |
| export HISTFILESIZE= | |
| export HISTSIZE= | |
| export HISTTIMEFORMAT="[%F %T] " | |
| # Change the file location because certain bash sessions truncate .bash_history file upon close. | |
| # http://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login | |
| export HISTFILE=~/.bash_eternal_history |
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
| print("crazy fizz bugs buzzy busniess") | |
| for value in range(0,101): | |
| mod = value%3 | |
| mod5 = value%5 | |
| if mod == 0: | |
| print("fizz") | |
| if mod == 0 | |
| else: |