Do not use this guide. The dnscrypt protocol and dnscrypt-proxy configuration file have changed a lot since I wrote this gist. Check the following links for help:
- Install DNSMasq
$ brew install dnsmasq| package main | |
| import ( | |
| "unicode/utf8" | |
| ) | |
| type Item string | |
| type Stream chan Item | |
| type Acc string |
| augroup VCSCommand | |
| autocmd! | |
| autocmd User VCSBufferCreated call s:vcscommand_buffer_settings() | |
| augroup END | |
| function! s:vcscommand_buffer_settings() "{{{3 | |
| if !exists('b:VCSCommandCommand') | return | endif | |
| if b:VCSCommandCommand !=# 'commitlog' | setlocal readonly | endif | |
| if b:VCSCommandCommand !=# 'vimdiff' | setlocal nofoldenable | endif | |
| if &filetype ==# 'gitlog' | setlocal syntax=git | endif |
| NeoBundle 'tyru/open-browser' | |
| NeoBundle 'kana/vim-operator-user' | |
| call operator#user#define('open-neobundlepath', 'OpenNeoBundlePath') | |
| map gz <Plug>(operator-open-neobundlepath) | |
| function! OpenNeoBundlePath(motion_wise) | |
| if line("'[") != line("']") | |
| return | |
| endif | |
| let start = col("'[") - 1 |
| #define _XOPEN_SOURCE 700 | |
| #include <signal.h> | |
| #include <unistd.h> | |
| int main() | |
| { | |
| sigset_t set; | |
| int status; | |
| if (getpid() != 1) return 1; |
| activate application "Google Chrome" | |
| delay 1.0 -- time to release modifier keys if the script is run with a keyboard shortcut | |
| tell application "System Events" | |
| repeat 100 times | |
| set rand to (random number from 123 to 126) | |
| key code rand | |
| delay 0.2 | |
| end repeat | |
| end tell |
| /** | |
| * Copy paste in the console, then restart the game (space bar) | |
| * | |
| * Greedy Algorithm for : http://gabrielecirulli.github.io/2048/ | |
| * Plays the game using a naive greedy method. i.e. Local maximum | |
| * | |
| * Azaan | |
| */ | |
| (function () { | |
| var __restart = GameManager.prototype.restart; |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # Author: Damien Garaud | |
| # Date: 2014-2015 | |
| # License: Simplified BSD | |
| """Allow you to pipe command results into an Emacs buffer. Suppose you have an | |
| Emacs server since you launch 'emacsclient'. |
| # Snake for Neovim! Adapted from https://gist.github.com/sanchitgangwar/2158084 | |
| # To install, create a ~/.vim/rplugin/python/snake.py file with this | |
| # code, then run `nvim -c 'UpdateRemotePlugins' -c 'q'` from a shell. | |
| # | |
| # Make sure you have read the internal help explaining how to setup python | |
| # host for external plugins(:help nvim-python) | |
| # | |
| # To start a new game, use the `:SnakeStart` command on an empty buffer(uses 80 | |
| # columns and 20 rows) | |
| from threading import Thread, Lock |
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)