This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
browserSync = require 'browser-sync' | |
browserSync.use | |
plugin: -> | |
hooks: | |
'client:js': ' | |
/* Close tab when server dies */ | |
(function (bs) { | |
bs.socket.on("disconnect", function (client) { window.close(); }); | |
})(___browserSync___);' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### | |
# Docker cleanup script | |
# | |
# Cleans all the containers (error for running ones) and all the | |
# unnamed images (error for images attached to a running container) | |
# | |
# | |
# LICENSE: | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### | |
# Dokku apps' container name | |
# | |
# Creates all NAME files to assign container names with the dokku-name plugin. | |
# | |
# Usage: ./dokku-container-name.sh [suffix] | |
# | |
# LICENSE: | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#F7F7F7,#CEE3F8,#B3CCE6,#FF3000,#B3CCE6,#336699,#38978D,#FF7500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env coffee | |
### | |
Text-to-Redis | |
Author: Ignacio Lago @ignlg | |
Version: 1.2 | |
A handy tool to convert a batch of Redis commands for mass insert/exec. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
### | |
# | |
# Setup Mac OS X from scratch using Homebrew & Cask | |
# | |
# Version: 1.2.31 | |
# Date: 20151207 | |
# Author: Ignacio Lago @ignlg | |
# Gist: https://gist.github.com/ignlg/691cb662e92c41289a03 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var modelCleanCyclic = require('./modelCleanCyclic'); | |
var Example = new keystone.List('Example', {}); | |
Example.schema.set('toJSON', { | |
virtuals: true, | |
transform: modelCleanCyclic.transformer | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python | |
""" | |
Exports a Bitwarden database into a KeePass file (kdbx) including file attachments, custom fields and folder structure. | |
It can also export an unencrypted XML KeePass file conforming to KeePass 2 XML format. | |
It requires keepassxc-cli, if not available it can still export KeePass 2 XML | |
- https://github.com/keepassxreboot/keepassxc | |
Usage: bw_export_kp.py [-h] [-x] [-d] [-bw-password None] [-kee-password None] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pykeepass import PyKeePass | |
def clean_url(url): | |
url_parts = url.split("/") | |
if url_parts[0] == "http:" or url_parts[0] == "https:": | |
return url_parts[2] | |
else: | |
return url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on alfred_script(q) | |
tell application "iTerm" | |
activate | |
create window with default profile | |
select first window | |
set onlywindow to true | |
tell the first window | |
tell current session to write text q | |
end tell | |
end tell |
OlderNewer