Skip to content

Instantly share code, notes, and snippets.

@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active May 4, 2024 15:47
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@ruuddotorg
ruuddotorg / Dockerfile
Created December 10, 2016 02:46
Nightscout Docker files
FROM node:onbuild
RUN npm run postinstall
@dstapp
dstapp / zfs-backup.sh
Created March 28, 2016 18:50
Simple backup script utilizing rsync and ZFS snapshots
#!/usr/bin/env bash
#
# zfs-backup.sh
#
# Simple backup script utilizing rsync and ZFS snapshots.
#
# rsync must be installed both on the server and the client.
# ssh must be installed on the client.
# bash must be installed on the server.
@chrismdp
chrismdp / s3.sh
Last active March 5, 2024 12:57
Uploading to S3 in 18 lines of Shell (used to upload builds for http://soltrader.net)
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1
@azrdev
azrdev / README.md
Created February 27, 2015 13:03
systemd-unit file(s) for peervpn filtering annoying log messages

/etc/systemd/system/peervpn@.service /usr/local/sbin/peervpn-logfiltered.sh

Put these in place & do systemctl daemon-reload to allow for filtering that peervpn message from your log

@bubba-h57
bubba-h57 / closeConnection.php
Created January 14, 2015 21:39
Easy way to close connections to the browser and continue processing on the server.
<?php
/**
* Close the connection to the browser but continue processing the operation
* @param $body
*/
public function closeConnection($body, $responseCode){
// Cause we are clever and don't want the rest of the script to be bound by a timeout.
// Set to zero so no time limit is imposed from here on out.
set_time_limit(0);
@chrisboulton
chrisboulton / ip_blacklist.lua
Last active April 2, 2024 10:43
Redis based IP blacklist for Nginx (LUA)
-- a quick LUA access script for nginx to check IP addresses against an
-- `ip_blacklist` set in Redis, and if a match is found send a HTTP 403.
--
-- allows for a common blacklist to be shared between a bunch of nginx
-- web servers using a remote redis instance. lookups are cached for a
-- configurable period of time.
--
-- block an ip:
-- redis-cli SADD ip_blacklist 10.1.1.1
-- remove an ip:
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
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

@phred
phred / pedantically_commented_playbook.yml
Last active November 3, 2023 01:55
Very complete Ansible playbook, showing off all the options
---
####
#### THIS IS OLD AND OUTDATED
#### LIKE, ANSIBLE 1.0 OLD.
####
#### PROBABLY HIT UP https://docs.ansible.com MY DUDES
####
#### IF IT BREAKS I'M JUST SOME GUY WITH
#### A DOG, OK, SORRY
####
@rubiojr
rubiojr / repo_feeds.txt
Created August 11, 2011 09:22
RPM Repo Feeds for Fedora/RHEL
#
# Compilation of Yum Repositories for RHEL/Fedora
#
#
# Fedora
#
http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Fedora/x86_64/os, f15-x86_64, fedora-15
http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Fedora/i386/os, f15-i386, fedora-15
http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Fedora/source/SRPMS, f15-src, fedora-15