Skip to content

Instantly share code, notes, and snippets.

$sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
$sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist
http://ci.gerritforge.com/view/Plugins-master/job/Plugin_reviewers_master/
ssh -p 29418 smirn0v@johann gerrit gsql
@smirn0v
smirn0v / gist:b8e6c4bedebed23a0328
Last active January 3, 2025 00:14
Edit gerrit project config
# checkout
git fetch origin refs/meta/config:refs/remotes/origin/meta/config
git checkout meta/config
#directly:
git push origin meta/config:meta/config
#via review:
git push origin meta/config:refs/for/refs/meta/config
/Applications/Beamer.app/Contents/Resources/ffmpeg -ss 0 -i file:/Users/smirnov/Downloads/Xroniki.Narnii.2005.RUS.BDRip.Xvid.AC3.-HQ-ViDEO.avi -t 8571.68128 -f mpegts --segment-length 5 --segment-offset 0 -vcodec libx264 -x264opts vbv-bufsize=12000:vbv-maxrate=12000:ratetol=inf -force_key_frames expr:gte(t,n_forced*5) -pix_fmt yuv420p -map 0:0 -acodec aac -strict experimental -ac 2 -ab 160k -matrix_encoding dplii -ar 48000 -async 1 -map 0:1 pipe:1
typedef int (*pthread_create_f)(pthread_t * __restrict, const pthread_attr_t * __restrict,
void *(*)(void *), void * __restrict);
static pthread_create_f real_create = NULL;
#include <pthread.h>
#include <dlfcn.h>
extern "C" int pthread_create(pthread_t * __restrict thread, const pthread_attr_t * __restrict attr,
void *(*start)(void *), void * __restrict arg)
{
int rc;
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.znc.plist
@smirn0v
smirn0v / gist:9090381
Created February 19, 2014 11:42
Sort book words
tr ' ' '\n' < i-am-legend.txt | sed 's/[^a-zA-Z]//g' | sort | uniq -c | sort -k2nr | less
@smirn0v
smirn0v / gist:8804884
Created February 4, 2014 14:47
install pkg
sudo installer -pkg Desktop/Java1.4.1.pkg -target /
@smirn0v
smirn0v / gist:8772052
Created February 2, 2014 17:47
OSSpinLockTry
/*
* void
* OSSpinLockUnlock(p)
* int *p;
*
* Unlock the lock pointed to by p.
*/
LEAF(_OSSpinLockUnlock, 0)
LEAF(_IOSpinUnlock, 0)