Skip to content

Instantly share code, notes, and snippets.

View buckyball's full-sized avatar

Sven Wegerhoff buckyball

View GitHub Profile
@SmaugPool
SmaugPool / some_cardano_plutus_scripts_addresses.md
Last active March 15, 2022 08:40
Some Cardano Smart Contracts (on-chain validators) Addresses
@lloydw
lloydw / requery.py
Last active August 2, 2019 12:58
Simple query object for combining multiple redash queries
#
# Simple query object for combining multiple redash queries
#
# Example usage:
# Find all users who have logged in in the last 8 weeks who have sent an email by analysing the logstash logs
# Then group the results by the week they signed up on and their emailed yes/no status
#
# import requery
# userQuery = 'SELECT * FROM user WHERE lastSeen > DATE_SUB(NOW(), INTERVAL 8 WEEK)'
# emailQuery = '{ "index" : "logstash-*", "query": { "query_string": { "query": "action:sendEmail" } }, "size" : 1000 }
anonymous
anonymous / FCXI.ino
Created May 4, 2016 05:41
/*
Go ahead and use this for whatever you want. Credit would be nice, but I can't stop you and if this helps you in any way, I'm cool with it. Besides, I didn't even write a few chunks of this.
Author: Zweiter
Version: 1.1
*/
anonymous
anonymous / index.html
Created December 14, 2014 00:22
myPxYP
<div id="pommes" class="mayo ketchup">
<div class="bildueberschrift">ueberschrift</div>
<!-- http://www.khaosok-treehouse.com/images/tours/tubing%20sok%20river%20tree%20house%205.jpg -->
<p class="unterschrift">
das ist ein abschnitt
</p>
@wrouesnel
wrouesnel / .remote-backup-excludes.txt
Last active September 5, 2021 23:32
A script for performing a remote backup to another server using rsync and bup for versioning.
# this is an rsync-excludes format list of files to exclude.
@peterkuma
peterkuma / server.py
Created February 10, 2014 14:22
A flask server for serving all JPEG images in a local directory and subdirectories. Uses unveil.js for lazy-loading of images. Thumbnails are created on the fly by PIL.
#!/bin/python
import os
from flask import Flask, Response, request, abort, render_template_string, send_from_directory
import Image
import StringIO
app = Flask(__name__)
WIDTH = 1000
@jehiah
jehiah / notify.sh
Created January 19, 2014 21:45
email notify at system boot time
#!/bin/bash
#
# *************************************************
# chkconfig: 2345 99 99
# description: notify email address on system boot.
# *************************************************
# Installing:
# 1) save as /etc/rc.d/init.d/notify
# 2) set the desired email address in "MAILADD" variable
# 3) chmod a+w /etc/rc.d/init.d/notify
@jehiah
jehiah / check_forkrate.sh
Created January 19, 2014 21:32
check_forkrate.sh script to monitor system fork rate with nagios
#!/bin/bash
# Copyright bitly, Aug 2011
# written by Jehiah Czebotar
DATAFILE="/var/tmp/nagios_check_forkrate.dat"
VALID_INTERVAL=600
OK=0
WARNING=1
CRITICAL=2
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active September 22, 2024 08:03
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@micho
micho / nginx.conf
Last active September 29, 2023 16:38 — forked from unixcharles/nginx.conf
nginx config for http/https proxy to localhost:3000
First, install nginx for mac with "brew install nginx".
Then follow homebrew's instructions to know where the config file is.
1. To use https you will need a self-signed certificate: https://devcenter.heroku.com/articles/ssl-certificate-self
2. Copy it somewhere (use full path in the example below for server.* files)
3. sudo nginx -s reload
4. Access https://localhost/
Edit /usr/local/etc/nginx/nginx.conf: