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
| using Polly; | |
| using RestSharp; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Net; | |
| using System.Text.Encodings.Web; | |
| using System.Text.Json; | |
| using System.Threading.Tasks; | |
| namespace RestSharpWithPolly |
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
| /* | |
| After purchasing a humble book bundle, go to your download page for that bundle. | |
| Open a console window for the page and paste in the below javascript. | |
| This will download all MOBI, EPUB, PDF HD, CBZ, and Zip formats. | |
| */ | |
| $('a').each(function(i) { | |
| if ($.trim($(this).text()) == 'MOBI|EPUB|PDF( ?\(H.\))?|CBZ|Download') { | |
| $('body').append('<iframe id="dl_iframe_'+i+'" style="display:none;">'); | |
| document.getElementById('dl_iframe_'+i).src = $(this).data('web'); |
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
| docker run \ | |
| --name {{printf "%q" .Name}} \ | |
| {{- with .HostConfig}} | |
| {{- if .Privileged}} | |
| --privileged \ | |
| {{- end}} | |
| {{- if .AutoRemove}} | |
| --rm \ | |
| {{- end}} | |
| {{- if .Runtime}} |
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
| /* | |
| After purchasing a humble book bundle, go to your download page for that bundle. | |
| Open a console window for the page and paste in the below javascript | |
| */ | |
| $('a').each(function(i){ | |
| if ($.trim($(this).text()) == 'MOBI') { | |
| $('body').append('<iframe id="dl_iframe_'+i+'" style="display:none;">'); | |
| document.getElementById('dl_iframe_'+i).src = $(this).data('web'); | |
| } | |
| }); |
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
| apt-get install metacity | |
| apt-get install tightvncserver | |
| vncserver -geometry 1024x768 :5 |
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 -o vi | |
| alias s="screen -DRe^Xx work" | |
| alias t="screen -DRe^Xx yt" | |
| export DISPLAY=:5 | |
| # ... | |
| # my ubuntu .bashrc needed the following section modifying for xterm-256color support: | |
| # set a fancy prompt (non-color, unless we know we "want" color) | |
| export TERM=xterm-256color |
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
| # | |
| # Example of a user's .screenrc file | |
| # | |
| # This is how one can set a reattach password: | |
| # password ODSJQf.4IJN7E # "1234" | |
| # no annoying audible bell, please | |
| vbell on |
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
| apt-get install mercurial | |
| apt-get build-dep vim | |
| hg clone https://vim.googlecode.com/hg/ vim | |
| cd vim | |
| ./configure --enable-rubyinterp --enable-pythoninterp --with-features=big | |
| make | |
| make install |
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 Mapleader | |
| let mapleader = "," | |
| let g:mapleader = "," | |
| "Theme | |
| colo zenburn | |
| "NERDTree | |
| map <Leader>, :NERDTreeToggle<cr> |