How to setup Discourse 2.8.0 locally on macOS
git clone https://github.com/discourse/discourse.git| #!/bin/bash | |
| # Author: Jari Pennanen | |
| # Url: https://gist.github.com/Ciantic/4e543f2d878a87a38c25032d5c727bf2 | |
| # create your API Key at https://dash.cloudflare.com/profile/api-tokens | |
| # Required permissions: Zone Settings:Read, Zone:Read, DNS:Edit (all under zone) | |
| AUTH_KEY="" # Get this from My profile -> API Keys -> View | |
| DOMAIN="example.com" # main domain | |
| SUBDOMAIN="home.example.com" # set A and AAAA-record of this subdomain | 
| #!/bin/bash | |
| swift <(echo 'import Foundation;import CoreServices;LSSetDefaultHandlerForURLScheme("mailto" as NSString as CFString, "com.microsoft.Outlook" as NSString as CFString)') | 
git clone https://github.com/discourse/discourse.git| function * sent(sentence) { | |
| while (1) { | |
| for (i=0; i<sentence.length; i++) { | |
| yield sentence[i] | |
| } | |
| } | |
| } | |
| const fits = (rows, cols, sentence) => { | |
| let placements = 0 | 
| // ==UserScript== | |
| // @name Shinsei Bank Helper | |
| // @namespace https://gist.github.com/apparition47/e8671954c614385b78ed9e8b2cde98e6 | |
| // @version 0.6 | |
| // @description Disable Security Keyboard & Optional account/Security Card Login Auto-Fill | |
| // @author apparition47 | |
| // @match https://*.shinseibank.com/FLEXCUBEAt/LiveConnect.dll* | |
| // @match http://www.shinseibank.com/* | |
| // @grant none | |
| // ==/UserScript== | 
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " Original author: | |
| " Amir Salihefendic | |
| " http://amix.dk - [email protected] | |
| " http://amix.dk/vim/vimrc.html | |
| " | |
| " Sections: | |
| " -> General | |
| " -> VIM user interface | |
| " -> Colors and Fonts | 
| #!/bin/sh | |
| # | |
| # CloudFlare Dynamic DNS | |
| # | |
| # Updates CloudFlare records with the current public IP address | |
| # | |
| # Takes the same basic arguments as A/CNAME updates in the CloudFlare v4 API | |
| # https://www.cloudflare.com/docs/client-api.html#s5.2 | |
| # | |
| # Use with cron jobs etc. | 
| //Inspired by: http://planetozh.com/blog/2012/10/generate-random-pronouceable-words/ | |
| func randomWord(wordLength: Int = 6) -> String { | |
| let kCons = 1 | |
| let kVows = 2 | |
| var cons: [String] = [ | |
| // single consonants. Beware of Q, it"s often awkward in words | |
| "b", "c", "d", "f", "g", "h", "j", "k", "l", "m", | |
| "n", "p", "r", "s", "t", "v", "w", "x", "z", | 
| import java.util.ArrayList; | |
| import java.util.Iterator; | |
| import java.util.LinkedList; | |
| import java.util.Queue; | |
| public class ListAtDepthBtree { | |
| ArrayList al = new ArrayList(); | |
| public void levelOrder(Node root){ | |
| int h = height(root); |