- Azure > Marketplace > Ubuntu
- Autoshutdown Disabled
- Networking: Add inbound rule for port 1194 (TCP and UDP)
wget https://git.io/vpn -O openvpn-install.sh
#!/usr/bin/env bash | |
# 1. Search for text in files using Ripgrep | |
# 2. Interactively restart Ripgrep with reload action | |
# 3. Open the file in Vim | |
RG_PREFIX="rg --column --line-number --no-heading --color=always --smart-case " | |
INITIAL_QUERY="${*:-}" | |
IFS=: read -ra selected < <( | |
FZF_DEFAULT_COMMAND="$RG_PREFIX $(printf %q "$INITIAL_QUERY")" \ | |
fzf --ansi \ |
#!/usr/bin/env bash | |
# 1. Search for text in files using Ripgrep | |
# 2. Interactively restart Ripgrep with reload action | |
# 3. Open the file in existing vscode instance | |
RG_PREFIX="rg --column --line-number --no-heading --color=always --smart-case " | |
INITIAL_QUERY="${*:-}" | |
IFS=: read -ra selected < <( | |
FZF_DEFAULT_COMMAND="$RG_PREFIX $(printf %q "$INITIAL_QUERY")" \ | |
fzf --ansi \ |
sqlite3 ~/Library/Safari/History.db "select json_object('items', json_group_array(json_object('quicklookurl', url, 'uid', title, 'title', title, 'subtitle', url, 'arg', url))) as json_result from (select v.title, i.url, i.visit_count_score from history_items i join history_visits v on (v.history_item = i.id and i.domain_expansion || v.title LIKE '%' || replace('{query}', ' ','%') || '%') group by v.title order by v.visit_time desc)" |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Mocha All", | |
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", | |
"args": [ | |
"--opts", |
// jsbin https://jsbin.com/xeyugac/edit?js,console | |
const { Observable } = Rx; | |
const testFn = (callback) => { | |
callback(1,2); | |
}; | |
const testFnAsObservable = Observable.bindCallback(testFn); | |
const obs = testFnAsObservable(); |
import { Observable, Subject, Subscription } from 'rxjs/Rx'; | |
export type FuncAsync<T> = () => Observable<T>; | |
type QueuedExecution = () => Subscription; | |
export class ThrottleAsync<T> { | |
private queue: QueuedExecution[]; |
def feeding_time | |
walruses.each do |walrus| /* we know how to destructure walruses array */ | |
walrus.stomach << Cheese.new /* we know the deep structure of a walrus object */ | |
end | |
end |
import * as Rx from "rxjs/Rx"; | |
import * as uuid from "uuid"; | |
import {IRequest} from "./common"; | |
let button = document.querySelector("button"); | |
let iframe = document.createElement("iframe"); | |
iframe.src = "/proxy.html"; | |
document.body.appendChild(iframe); |
function unary(fn) { | |
return (value) => fn.call(this, value); | |
} |