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
| Set-MpPreference -ExclusionPath "$(Resolve-Path '~/')" | |
| iex (new-object net.webclient).downloadstring('https://get.scoop.sh') | |
| set-executionpolicy unrestricted -s cu | |
| setx GOPATH %USERPROFILE%\golib;%USERPROFILE%\go | |
| mkdir %USERPROFILE%\golib | |
| mkdir %USERPROFILE%\go | |
| scoop bucket add extras | |
| scoop bucket add java |
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
| var pattern = /(MOBI|EPUB|PDF( ?\(H.\))?|CBZ|Download|Supplement)$/i; | |
| var nodes = document.getElementsByTagName('a'); | |
| var downloadCmd = "#!/bin/sh\n"; | |
| for (i in nodes) { | |
| var a = nodes[i]; | |
| if (a && a.text && pattern.test(a.text.trim()) && a.attributes['href'] && a.attributes["href"].value != "#") { | |
| var link = a.attributes['href'].value; | |
| var filename = link.split("?")[0].split("https://dl.humble.com/")[1]; | |
| downloadCmd += 'wget -O ' + filename + ' --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 20 -c --content-disposition "' + link + "\"\n"; | |
| } |
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
| # Capistrano 3.x Vagrant stage | |
| # config/deploy/vagrant.rb | |
| set :stage, :vagrant | |
| set :rails_env, "production" | |
| vagrant_ssh_config = `vagrant ssh-config`.split("\n")[1..-1].map(&:strip).inject({}) do |m, s| | |
| k, v = s.split(/\s/, 2).map(&:strip); m[k] = v; m | |
| end |
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
| GNU nano 2.9.3 provision.sh Modified | |
| #!/bin/bash | |
| # initialize sudo | |
| sudo echo | |
| # update and install base packages | |
| sudo apt update | |
| sudo apt -y upgrade | |
| sudo apt install -y git curl build-essential bundler patch ruby-dev \ |
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
| // String utils | |
| // | |
| // resources: | |
| // -- mout, https://github.com/mout/mout/tree/master/src/string | |
| /** | |
| * "Safer" String.toLowerCase() | |
| */ | |
| function lowerCase(str){ | |
| return str.toLowerCase(); |
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 | |
| # initialize sudo | |
| sudo echo | |
| # update and install base packages | |
| sudo apt update | |
| sudo apt -y upgrade | |
| sudo apt install -y git curl gnome-tweaks docker.io build-essential bundler patch ruby-dev \ | |
| zlib1g-dev liblzma-dev nodejs chromium-browser npm youtube-dl htop \ |
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
| var pattern = /(MOBI|EPUB|PDF( ?\(H.\))?|CBZ|Download)$/i; | |
| var nodes = document.getElementsByTagName('a'); | |
| var downloadCmd = ''; | |
| for (i in nodes) { | |
| var a = nodes[i]; | |
| if (a && a.text && pattern.test(a.text.trim()) && a.attributes['href']) { | |
| downloadCmd += 'wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 20 -c --content-disposition "' + a.attributes['href'].value + "\"\n"; | |
| } | |
| } | |
| var output = document.createElement("pre"); |
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
| license: gpl-3.0 |
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
| license: mit |
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
| license: gpl-3.0 |