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
| 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 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
| 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
| youtube-dl "https://www.youtube.com/watch?v=Mr__WcIjGs4" --write-auto-sub -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4 |
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
| copy(new Date().toLocaleString()); |
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 jsonSquish(contents){ | |
| // remove all line breaks | |
| // console.log(contents) | |
| contents = contents.replace(/\r?\n|\r/g,"") | |
| contents = contents.replace(/"/g, '\"\"') | |
| // console.log(contents) | |
| // compress all multiple spaces down to one space | |
| change = "" | |
| for(;change !== contents;){ | |
| // console.log(contents) |
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
| from py2neo import Graph, Node, Relationship | |
| graph = Graph( | |
| host="alpha.graph.domain.co", | |
| auth=('neo4j', 'thePassword-butBetter') | |
| ) | |
| url="https://py2neo.org/v4/database.html#py2neo.database.Graph.delete_all" | |
| a = Node("Type", url=url) | |
| graph.merge(a, "Website", "url") |
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
| from pyogg import VorbisFile | |
| from pygame import mixer | |
| # path to your audio | |
| path = "./file.ogg" | |
| # an object representing the audio, see https://github.com/Zuzu-Typ/PyOgg | |
| sound = VorbisFile(path) | |
| # pull the frequency out of the Vorbis abstraction | |
| frequency = sound.frequency | |
| # initialize the mixer |
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
| sudo launchctl unload /Library/LaunchDaemons/com.webroot.security.mac.plist; | |
| sudo kextunload /System/Library/Extensions/SecureAnywhere.kext; | |
| sudo rm /usr/local/bin/WSDaemon; | |
| sudo rm /usr/local/bin/WFDaemon; | |
| sudo killall -9 WSDaemon; | |
| sudo killall -9 WfDaemon; | |
| sudo killall -9 "Webroot SecureAnywhere"; | |
| sudo rm -rf /System/Library/Extensions/SecureAnywhere.kext; | |
| sudo rm -rf "/Applications/Webroot SecureAnywhere.app"; | |
| sudo rm /Library/LaunchAgents/com.webroot.WRMacApp.plist; |