Skip to content

Instantly share code, notes, and snippets.

Avatar

Stuart Larsen c0nrad

View GitHub Profile
View buildlibwebp.sh
wget https://github.com/webmproject/libwebp/archive/v1.1.0.tar.gz -O /tmp/libwebp-v1.1.0.tar.gz
tar -C /tmp -zxvf /tmp/libwebp-v1.1.0.tar.gz
mkdir -p /tmp/libwebp-1.1.0/make
cd /tmp/libwebp-1.1.0 && \
cmake -DWEBP_ENABLE_SIMD=ON -DWEBP_BUILD_CWEBP=ON -DWEBP_BUILD_DWEBP=ON -DWEBP_BUILD_GIF2WEBP=ON -DWEBP_BUILD_IMG2WEBP=ON -DWEBP_BUILD_WEBPINFO=ON -DWEBP_NEAR_LOSSLESS=ON ../ \
make && make install
View gist:0606c3304c2e6e48ccf7b00748360c60
$host = http.getHostHeader();
if ( $host == "coverity.10gen.com" || $host == "coverity.mongodb.com" ) {
http.changeSite( "https://coverity.corp.mongodb.com/" );
}
if ( $host == "coverity.corp.mongodb.com" ) {
if ( !ssl.isSSL() ) {
http.changeSite( "https://coverity.corp.mongodb.com/" );
}
View example.go
package main
import (
"fmt"
"net/http"
"github.com/gorilla/websocket"
)
type Message struct {
View gist:9901654612628b75cfc8
I taught Sylvia pickup lines...
➜ love git:(master) ✗ ./love
I I apologize? Wanna fuck like peanut
butter, wanna go halves on a bastard?
Do I wanna go halves on a
killer...want to sleep with me? Your legs
must be skin and we'll talk about
the hair between your peaches, wanna shake
your left leg was ten.
View keybase.md

Keybase proof

I hereby claim:

  • I am c0nrad on github.
  • I am c0nrad (https://keybase.io/c0nrad) on keybase.
  • I have a public key whose fingerprint is B158 1A57 70AF 7D55 B3A0 DF0E 1033 FE9E 3C78 F5F1

To claim this, I am signing this object:

View lol.py
class Lol:
pass
lol = Lol()
functions = ["print_hai", "print_bai", "print_meow", "print_lulz"]
for func in functions:
printValue = func.split('_')[1] # hai, bai, meow
setattr(lol, func, lambda printValue=printValue: print(printValue))
lol.print_hai()
You can’t perform that action at this time.