Skip to content

Instantly share code, notes, and snippets.

@pinglamb
pinglamb / fukong.go
Last active August 8, 2016 17:36
Soukay.go
package main
import (
"fmt"
"os"
"strconv"
"strings"
"github.com/PuerkitoBio/goquery"
)
@pinglamb
pinglamb / Dockerfile
Created August 8, 2016 17:39
Haproxy X Docker
FROM haproxy:latest
RUN apt-get update
RUN apt-get install -y netcat-openbsd
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
EXPOSE 80
/*
https://webapps.stackexchange.com/questions/100820/how-do-i-invite-all-team-members-to-a-new-slack-channel#answer-104062
Instructions: Just browse to the appropriate channel and paste
this script (below) into your Chrome/Firefox dev console and hit enter.
Then wait for the script to run until it completes.
It might take time as there is a limit to how many users may be invited at once.
The script will loop until all team members are invited.
*/
var foundAny=false;
function selectAllByLetter(remainingLetters) {
def foo(bar, a: 1, b: 2)
puts a.inspect
end
args = { a: 2 }
foo(true, args)