Skip to content

Instantly share code, notes, and snippets.

View can3p's full-sized avatar

Dmitrii Petrov can3p

View GitHub Profile
@can3p
can3p / pr.md
Created March 25, 2013 20:58 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@can3p
can3p / diary.bash
Created July 10, 2013 20:57
Diary function in bash
log() {
LOG_PATH=~/Dropbox/diary/
FNAME=`date "+%Y-%m-%d"`.md
HEADER="
*************************************
Time: `date \"+%H:%M:%S\"`
Subject:
Mood:
Music:
var pipeline = require('when/pipeline')
, callbacks = require('when/callbacks');
var mockMakeAjaxRequestAndReturnCallback = callbacks.lift(require('mockMakeAjaxRequestAndReturnCallback'));
var mockRenderData = require('mockRenderData');
var generateLink = function (domain) {
return 'http://' + domain + '/resource';
};
@can3p
can3p / lj_trash
Created March 16, 2016 21:17
Russia blogs worth skipping
000zzz
0_l_g_a
0na_samaya
1way_to_english
2101
3eta
3ojlotou
477768
777ru
__doll__
@can3p
can3p / restart_bluetooth.sh
Created March 17, 2016 08:38 — forked from nicolasembleton/restart_bluetooth.sh
Restart Bluetooth Daemon on Mac OS X without restarting
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
@can3p
can3p / gist:b7b2470dc8129451b9d37f5ad9dcf84a
Created September 28, 2017 08:33
trivial-gamekit error
(ql:quickload :trivial-gamekit)
To load "trivial-gamekit":
Load 1 ASDF system:
trivial-gamekit
; Loading "trivial-gamekit"
.....................; Total of 0 load-time skipped definitions
; Total of 0 load-time missing entities
.; Note: skipping alias of type %ODE::__DARWIN_INTPTR_T to %ODE::INTPTR-T due
; to undefined foreign type: __DARWIN_INTPTR_T
; Note: skipping determine the basic type of foreign type