Skip to content

Instantly share code, notes, and snippets.

@noelbundick
noelbundick / LICENSE
Last active May 24, 2024 09:10
Exclude WSL installations from Windows Defender realtime protection
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@hard-geha
hard-geha / save-running-virtualboxes
Created January 14, 2014 11:11
Simple init.d script to save all running virtualboxes on host shutdown or reboot
#!/bin/bash
### BEGIN INIT INFO
# Provides: save-running-virtualboxes
# Required-Start:
# Required-Stop: $network
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: Stops all running virtualboxes
# Description: Stops all running virtualboxes of all users
### END INIT INFO
@stojg
stojg / Flowdock.php
Last active January 24, 2018 21:31
<?php
/**
* Send an message to a Flowdock "flow".
*
* # Initialization:
* <code>
* $fd = new Flowdock();
* $fd->setToken('asdadsads');
* </code>
*
@Nagyman
Nagyman / strict_roles.py
Created June 22, 2012 18:08
Decorator to strictly enforce the roles defined for a fabric task
from fabric.api import env
from fabric import tasks
from functools import wraps
def _wrap_as_new(original, new):
if isinstance(original, tasks.Task):
return tasks.WrappedCallableTask(new)
return new
def strict_roles(*role_list):
@ziadoz
ziadoz / awesome-php.md
Last active July 13, 2024 05:29
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.
@justinrainbow
justinrainbow / remote-tail.js
Created May 16, 2011 19:58
Tail a remote file on multiple servers with Node.js
var sys = require('sys'),
spawn = require('child_process').spawn,
// args from command line
filename, servers;
if (process.ARGV.length < 4) {
return sys.puts("Usage: node remote-tail.js filename server1 [serverN]");
}