This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for ref in `git fsck --unreachable | grep commit | cut -d' ' -f3`; do git show --summary $ref; done | less | |
source: http://stackoverflow.com/questions/89332/recover-dropped-stash-in-git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.actoboard.auth | |
import org.mindrot.jbcrypt.BCrypt | |
import com.actoboard.base.mongo._ | |
import com.fasterxml.jackson.annotation.{JsonTypeName, JsonView} | |
import com.actoboard.base.util.StringUtils | |
/** | |
* A human principal. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"github.com/hybridgroup/gobot" | |
"github.com/hybridgroup/gobot/api" | |
"github.com/hybridgroup/gobot/platforms/firmata" | |
"github.com/hybridgroup/gobot/platforms/gpio" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 2014-10-09 10:47:47,358 INFO (pool-4-thread-2) [io.krkr.Pof] Bla bla ... | |
input { | |
file { | |
type => "xyz" | |
path => "/var/log/xyz/server-xyz.log" | |
start_position => "beginning" | |
codec => multiline { | |
pattern => "^%{TIMESTAMP_ISO8601} " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/bikeshed # changes the color background for everyone | |
/shydino # a little shy dino shows up | |
/pitchforks # angry mob running across the chat | |
/ponies # a pony running across the chat | |
/ponystream # ponies running across the chat (only local) | |
konami cheat # changes your local background | |
yay!! | |
happy birthday |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "All logs", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "type:\"java-app\"", | |
"alias": "", | |
"color": "#7EB26D", | |
"id": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -eu | |
HEIGHT=1600 | |
WIDTH=900 | |
FPS=24 | |
OUT=something.mp4 | |
VLC=cvlc | |
echo "Screen recording started..." | |
$VLC --quiet screen:// -I dummy \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
su root | |
echo 'deb http://http.debian.net/debian wheezy-backports main' > /etc/apt/sources.list.d/wheezy-backports.list | |
apt-get update && apt-get install -t wheezy-backports linux-image-amd64 | |
# Check grub menu entries. Linux 3.16.X-amd64 should be the second entry (index = 1) | |
grep menuen /boot/grub/grub.cfg | |
sed -i "s/GRUB_DEFAULT=.*/GRUB_DEFAULT=1/" /etc/default/grub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ORG = krkr | |
NAME = blurb | |
SHA1 = $(shell git log -1 --pretty=oneline | cut -c-10) | |
BRANCH = $(shell git branch -a --contains $(SHA1) | egrep '(remotes/|\*)' | egrep -v "(HEAD|detached)" | head -1 | sed -e "s/\* //" -e "s/.*\///") | |
VERSION = $(BRANCH)-$(SHA1) | |
REGISTRY = registry.blurb.com | |
build: | |
docker build --rm -t $(ORG)/$(NAME):${VERSION} . | |
docker tag -f $(ORG)/$(NAME):${VERSION} $(ORG)/$(NAME):$(BRANCH)-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository ppa:git-core/ppa -y | |
sudo apt-get update | |
sudo apt-get install git | |
git --version |
OlderNewer