Skip to content

Instantly share code, notes, and snippets.

dragos@dragos:~/Dummies$ git push unfuddle master
Username for 'https://sparktech.unfuddle.com': dragos
Password for 'https://[email protected]':
To https://sparktech.unfuddle.com/git/sparktech_nlp-api-client/
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://sparktech.unfuddle.com/git/sparktech_nlp-api-client/'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
dragos@dragos:~$ cd Dummies
dragos@dragos:~/Dummies$ rails new nlp
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/images/rails.png
ruby-1.9.3-p194 in current/
› gem install RedCloth
Building native extensions. This could take a while...
Successfully installed RedCloth-4.2.9
1 gem installed
Installing ri documentation for RedCloth-4.2.9...
Installing RDoc documentation for RedCloth-4.2.9...
ruby-1.9.3-p194 in current/
› gem which rails
@miskolc
miskolc / gist:b21f784740b414d975f3
Created June 21, 2014 19:31
Compilation commands
LIBS="-lopencv_imgproc -lopencv_highgui -lopencv_core -lopencv_objdetect"
g++ -I/usr/local/include/opencv -I/usr/local/include/opencv2 -L/usr/lib -L/usr/local/lib -fpic -Wall -c "faces.cpp" $LIBS
//create shared library
g++ -shared -I/usr/local/include/opencv -I/usr/local/include/opencv2 -o libfaces.so faces.o -L/usr/local/lib $LIBS
//create executable (in case you want to play with it directly)
g++ -I/usr/local/include/opencv -I/usr/local/include/opencv2 -o faces faces.o -L/usr/local/lib $LIBS
@miskolc
miskolc / gist:5c00f413fd006388d956
Created January 9, 2015 11:18
Pretty print Git commit diffs as HTML document using aha
sudo apt-get install aha
git log --color-words --oneline | aha > index.html
git whatchanged --color-words --since="100 days ago" -p | aha >> index.html
firefox index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="author" content="Martin Bean" />
<title>Twitter&rsquo;s Bootstrap with Ryan Fait&rsquo;s Sticky Footer</title>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<style>
html, body {
height: 100%;
@miskolc
miskolc / gitlab-sidekiq.conf
Last active August 28, 2015 21:20 — forked from jirutka/gitlab-sidekiq.conf
Upstart job configuration files (aka runscripts) for GitLab CE.
#!upstart
description "GitLab (Sidekiq)"
author "Jakub Jirutka"
start on starting gitlab
stop on stopping gitlab
env sidekiq_logfile="/var/log/gitlab/sidekiq.log"
env sidekiq_queues="-q post_receive -q mailer -q system_hook
@miskolc
miskolc / socksproxy.js
Created December 1, 2015 13:26 — forked from telamon/socksproxy.js
Socks5 proxy implementation in Node.JS
// http://www.ietf.org/rfc/rfc1928.txt
// Tested with: curl http://www.google.se/ --socks5 1080 --proxy-user foo:bar
var States = {
CONNECTED:0,
VERIFYING:1,
READY:2,
PROXY: 3
};
@miskolc
miskolc / 00.howto_install_phantomjs.md
Created August 13, 2016 16:45 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@miskolc
miskolc / jupyter_shortcuts.md
Last active December 25, 2017 12:02 — forked from kidpixo/jupyter_shortcuts.md
Keyboard shortcuts for ipython notebook 3.1.0 / jupyter

Jupyter Lab Shortcuts

Keyboard shortcuts

The IPython Notebook has two different keyboard input modes. Edit mode allows you to type code/text into a cell and is indicated by a green cell border. Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border.

MacOS modifier keys:

  • ⌘ : Command