Skip to content

Instantly share code, notes, and snippets.

View andreineculau's full-sized avatar
:bowtie:

Andrei Neculau andreineculau

:bowtie:
View GitHub Profile
@andreineculau
andreineculau / license.sh
Created March 18, 2014 08:33
Searching for NPM/Bower licenses
#!/usr/bin/env bash
function jqq() {
jq -r "$@" 2>/dev/null
}
function grepq() {
grep -q -w "$@" 2>/dev/null
}
@andreineculau
andreineculau / email.html
Last active August 29, 2015 14:01
github beacon - marking notifications as read when opened via mail
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>
Reply to this email directly or <a href='https://github.com/isakb/simple-proxy/issues/3#issuecomment-43875699'>view it on GitHub</a>.
<img src='https://github.com/notifications/beacon/708161__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxNjM3NzExMiwiZGF0YSI6eyJpZCI6MzI3MTYwMDV9fQ==--5d68bbf2d63b40a9a277783eeefff33eaa905f99.gif' height='1' width='1'>
</p>

Keybase proof

I hereby claim:

  • I am andreineculau on github.
  • I am andreineculau (https://keybase.io/andreineculau) on keybase.
  • I have a public key whose fingerprint is 1B0F 43F7 67F2 151F A270 D56C 61CE E602 79AC 0807

To claim this, I am signing this object:

@andreineculau
andreineculau / sync_rb.sh
Last active August 29, 2015 14:10
Update/sync reviewboard repositories and users
#!/usr/bin/env bash
rb_user=rb
rb_pass=rb_password
trac_url="https://repository/trac"
mirror="gitolite@repository"
authors_file="/var/authors.txt" # git svn authors file
password="pbkdf2_sha256$12000$4qXnxOva60Uy$uI/dCC0yn9g5IUILNxFfemoZQMKGoIVLHcySnmJNR70="
run_mysql="mysql -u ${rb_user} --password=${rb_pass} reviewboard -B -e"
@andreineculau
andreineculau / etc_ppp_ip-ip
Created January 17, 2015 15:16
route off vpn
#!/usr/bin/env bash
exit 0
# refs
# http://archives.aidanfindlater.com/blog/2010/02/03/use-vpn-for-specific-sites-on-mac-os-x/
# http://superuser.com/questions/424862/how-do-i-make-certain-web-addresses-use-a-specific-network-adapter-on-mac-os-x
# http://superuser.com/questions/4904/how-to-selectively-route-network-traffic-through-vpn-on-mac-os-x-leopard
# Script which handles the routing issues as necessary for pppd,
@andreineculau
andreineculau / json_pretty_print
Created March 3, 2015 16:28
json pretty print with python without json.tool
#!/usr/bin/env python
import sys
try:
import json
hasJson = True
except ImportError:
hasJson = False
@andreineculau
andreineculau / -
Last active August 29, 2015 14:20 — forked from kemitchell/-
74925 NONE
54706 MIT
9268 ISC
3050 BSD
1521 BSD-2-CLAUSE
791 APACHE-2.0
699 APACHE 2.0
392 BSD-3-CLAUSE
364 WTFPL
346 UNKNOWN

Keybase proof

I hereby claim:

  • I am andreineculau on github.
  • I am andreineculau (https://keybase.io/andreineculau) on keybase.
  • I have a public key whose fingerprint is B779 C476 7E36 2833 7155 D46D D4EE 2665 33A0 0BC9

To claim this, I am signing this object:

@andreineculau
andreineculau / gist:2549185
Created April 29, 2012 10:21
Books to sell

Books to sell

  • Introduction to Risk Management and Insurance Idag Mark S. Dorfman 150:-
  • Principles of Risk Management and Insurance Idag George E. Rejda 150:-
  • Macroeconomics - understanding the wealth of nations Idag David Miles , Andrew Scott 150:-
  • Principles of Corporate Finance Idag Richard A. Brealey , Stewart C. Myers 150:-
  • Study Guide for Managerial Economics and Business Strategy Idag Michael R. Baye 150:-
  • Managerial Economics and Business Strategy Idag Michael R. Baye 150:-
  • Applied International Trade Analysis Idag Harry P. Bowen , Abraham Hollander 150:-
  • Introduction to economic growth Idag Charles I. Jones 150:-
@andreineculau
andreineculau / gist:2647886
Created May 9, 2012 18:42
REST: filtering
If you have
/cars
/cars/{carId}
/individuals
/individuals/{individualId}
and then
/individuals/andrei
needs to link to my cars, which would be /cars?individual=andrei
(( side-tracking here: maybe http://api.garage.com/cars?individual=http://api.garage.com/individuals/andrei seems better since the URIs are the IDs ? wdyt? ))