Skip to content

Instantly share code, notes, and snippets.

View Tessmore's full-sized avatar

Fabiën Tesselaar Tessmore

View GitHub Profile
,\s*?\]|,\s*?\}|,\s*?\)
> Regex CTRL+F
> Reference: https://www.codecourse.com/forum/topics/sublime-text-finding-that-trailling-comma-of-death
@Tessmore
Tessmore / gist:06da45199a205c523e66
Created April 2, 2015 12:51
Quick terminal access to certain directory
quickAccess="C:\xampp\htdocs\\"
function hop {
if [ -z $1 ] || [ $1 == "list" ] ; then
cd $quickAccess;
ls;
else
cd $quickAccess$1;
fi
}
@Tessmore
Tessmore / notes
Last active April 5, 2016 15:23
Notes
; Remove all local branches
; http://stackoverflow.com/a/10610669/951517
git branch -D `git branch --merged | grep -v \* | xargs`
; node_modules contains endless directory structure, so deep it cannot be removed.
; http://superuser.com/a/78436/152321
npm install rimraf -g
rimraf <dir>
; Convert file using chardet & iconv
@Tessmore
Tessmore / google-scholar-bibtex-bulk-import.php
Last active March 21, 2023 11:57
Multi import of google scholar BibTex references
<?php
/*
For an answer to:
http://stackoverflow.com/questions/8217769/is-there-a-way-to-download-bibtex-from-google-scholar-using-php
This is rate-limited / prohibited by Google
*/
function get_page($url) {
$ch = curl_init();