Skip to content

Instantly share code, notes, and snippets.

Franklin fvdm

  • NL
Block or report user

Report or block fvdm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:840d4bf427428415ea9ec3652aca78de

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

key name
Command key
Option or Alt key
Control key
Shift key
@fvdm
fvdm / Resource abuse.1blockpkg
Last active Nov 26, 2017
1Blocker package - anti resource abuse/cryptomining scripts - based on other lists
View Resource abuse.1blockpkg
[
{
"id": "EC1657C2-44A7-446C-8E2F-D2D6D2A9BAB1",
"name": "Resource abuse",
"rules": [
{
"content": {
"action": {
"type": "block"
},
@fvdm
fvdm / Three Wise Monkeys.md
Created Jul 19, 2017 — forked from malarkey/Three Wise Monkeys.md
Three Wise Monkeys (NDA)
View Three Wise Monkeys.md

Date: [date]

Between us [company name] and you [customer name].

Summary:

In short; neither of us will share any confidential information about each-other, by any means, with anyone else.

What’s confidential information?

View homebrew.mxcl.pdnsrec.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.pdnsrec</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/opt/pdnsrec/sbin/pdns_recursor</string>
</array>
@fvdm
fvdm / remove-tinymce-editor-buttons.php
Created Jun 30, 2017 — forked from JiveDig/remove-tinymce-editor-buttons.php
Remove buttons/items from the WordPress TinyMCE editor
View remove-tinymce-editor-buttons.php
<?php
/**
* Removes buttons from the first row of the tiny mce editor
*
* @link http://thestizmedia.com/remove-buttons-items-wordpress-tinymce-editor/
*
* @param array $buttons The default array of buttons
* @return array The updated array of buttons that exludes some items
*/
add_filter( 'mce_buttons', 'jivedig_remove_tiny_mce_buttons_from_editor');
@fvdm
fvdm / nginx_status_codes.py
Created Feb 17, 2017 — forked from bactisme/nginx_status_codes.py
Very simple munin plugin to graph nginx HTTP error codes
View nginx_status_codes.py
#!/usr/bin/python
# ALL FAME GOES HERE : https://gist.github.com/mipearson/1146151
#
# 1/ Place where you want (like /usr/share/munin/plugins/nginx_status_codes.py )
# 2/ Link in /etc/munin/plugins/ :
# ln -s /usr/share/munin/plugins/nginx_status_codes.py /etc/munin/plugins/nginx_errors
# chmod +x /etc/munin/plugins/nginx_errors
# 3/ Test with
# munin-run nginx_errors
# 4/ If nescessary : add these lines in your munin conf
@fvdm
fvdm / dup-backup.sh
Created Jan 19, 2017 — forked from Silvenga/dup-backup.sh
For daily systemwide encrypted backups of Ubuntu servers to remote host of Google Drive (free 15GB of storage).
View dup-backup.sh
#!/bin/bash
# Place in /usr/share/backup/
# and make executable
# chmod 0744 dup-backup.sh
# install:
# apt-get install duplicity python-gdata python-gobject-2 python-paramiko
## Remeber to change Google drive user name and Google drive folder
## And change Email
# Must run as root for system wide backups
@fvdm
fvdm / nvm_speedup.sh
Last active Dec 23, 2016
Add to bottom of .bashrc, .bash_profile or .profile - https://frankl.in/code/nvm-slowing-down-terminal
View nvm_speedup.sh
# Add latest node bin to $PATH
# Use with `nvm unalias default` to speed up shell init
# https://frankl.in/code/nvm-slowing-down-terminal
nodepath=$NVM_DIR/versions/node/`ls $NVM_DIR/versions/node/ | cat | tail -n 1`/bin
export PATH=$PATH:$nodepath
View keybase.md

Keybase proof

I hereby claim:

  • I am fvdm on github.
  • I am fvdm (https://keybase.io/fvdm) on keybase.
  • I have a public key ASCe9Ow6JmCiKgXc1Q6QIyzEyD9wtLghNrP57_gYXs5BxAo

To claim this, I am signing this object:

@fvdm
fvdm / DownloadStationAPI.py
Created Apr 17, 2016 — forked from harperreed/DownloadStationAPI.py
example script to sync/download/etc put.io downloads to your synology download station
View DownloadStationAPI.py
import time
import requests
import json
class DownloadStationAPI():
def __init__(self, host=None, username=None, password=None):
self.name = 'DownloadStation'
You can’t perform that action at this time.