Skip to content

Instantly share code, notes, and snippets.

View merqurio's full-sized avatar

Gabi Maeztu merqurio

View GitHub Profile
@merqurio
merqurio / export_insta.js
Created March 4, 2017 20:16
Instagram photo export
// Go to a profile and scroll to the last photo.
imgs = document.querySelectorAll("img");
urls=[];
for (img of imgs){
u=img.src.split("/");
urls.push("https://scontent-lga3-1.cdninstagram.com"+"/"+u[u.length-2]+"/"+u[u.length-1]+"?dl=1")
};
for (l of urls){window.open( l, '_blank' )}
@merqurio
merqurio / app.yaml
Created January 22, 2017 23:09
Reverse skip Google App Engine | Ignore all but a specific directory
skip_files:
- (?!^dist)
@merqurio
merqurio / .gitattributes
Last active February 24, 2024 07:09
GIT LFS attributes for data & images
# Data Sources
*.h5 filter=lfs diff=lfs merge=lfs -text
*.hdf5 filter=lfs diff=lfs merge=lfs -text
*.pytables filter=lfs diff=lfs merge=lfs -text
*.h5py filter=lfs diff=lfs merge=lfs -text
*.json filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.yaml filter=lfs diff=lfs merge=lfs -text
*.bson filter=lfs diff=lfs merge=lfs -text
*.tsv filter=lfs diff=lfs merge=lfs -text
@merqurio
merqurio / _service.md
Created August 17, 2016 08:13 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
@merqurio
merqurio / tmux.md
Created June 19, 2016 14:22 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist
launchctl load -w /System/Library/LaunchAgents/com.apple.rcd.plist
@merqurio
merqurio / ExportChromePasswords.js
Created May 14, 2016 23:11 — forked from beaverb1ll/ExportChromePasswords.js
ExportChromePasswords.js
var decryptedRow="";
var pm = PasswordManager.getInstance();
var model = pm.savedPasswordsList_.dataModel;
var pl = pm.savedPasswordsList_;
for(i=0;i<model.length;i++){
PasswordManager.requestShowPassword(i);
};
setTimeout(function(){
decryptedRow += '"hostname","username","password","formSubmitURL","httpRealm","usernameField","passwordField"';
for(i=0; i<model.length; i++){
@merqurio
merqurio / GIF-Screencast-OSX.md
Created May 9, 2016 23:40 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

Mac OS X Traffic Lights

Useful in Electron apps when the default title bar must be hidden. There are some slight issues with this rendering in browser, but it looks perfect inside Electron :)

A Pen by atdrago on CodePen.

License.

Keybase proof

I hereby claim:

  • I am merqurio on github.
  • I am merqurio (https://keybase.io/merqurio) on keybase.
  • I have a public key whose fingerprint is 48C7 A969 D1DD E7B0 506C CE8A 38B0 FD4D 3101 D254

To claim this, I am signing this object: