Skip to content

Instantly share code, notes, and snippets.

View WyriHaximus's full-sized avatar
๐Ÿ‰
Breathing Fire

Cees-Jan Kiewiet WyriHaximus

๐Ÿ‰
Breathing Fire
View GitHub Profile
@mitchellvanw
mitchellvanw / .zshrc
Last active May 7, 2016 22:42
Commit already...
ca () {
message=$(curl -s whatthecommit.com/index.txt)
git add .
git commit -a -m "$message";
}
@jeroenvdgulik
jeroenvdgulik / Talklist.md
Last active December 17, 2023 19:04
My mostly incomplete list of memorable talks that should probably be required material

The list is now hosted on a repository so you can PR -> https://github.com/jeroenvdgulik/awesome-talks/blob/master/README.md

The list

@rauchg
rauchg / README.md
Last active April 13, 2025 04:29
require-from-twitter
@jippi
jippi / Makefile
Last active October 12, 2017 07:52
CakePHP inside a Phar file. NOTE: Change "ROOT" constant in paths.php to "."
SHELL := /bin/bash
.PHONY: phar clean help
.DEFAULT_GOAL := help
phar: ## Build a phar file
mkdir -p dist/
rm -f dist/bownty-infra.phar
php build.php
chmod 0775 dist/bownty-infra.phar
@ThijsFeryn
ThijsFeryn / composer.json
Created November 12, 2015 14:14
Simple ESI rendering example using Silex and Varnish v4. The render_esi function in Twig renders ESI tags when the right Surrogate-Capability header is thrown, otherwise it uses internal subrequests.
{
"require": {
"silex/silex": "1.3.*",
"symfony/twig-bridge": "2.7",
"twig/twig": "1.23.*"
}
}
@boekkooi
boekkooi / Collection.php
Created September 14, 2015 08:30
ValueObject + Broadway
<?php
namespace Xoip\Component\ValueObject;
interface Collection extends \IteratorAggregate, \Countable
{
/**
* Adds an element at the end of the collection.
*
* @param ValueObject $object The object to add.
*
@jamescmartinez
jamescmartinez / slack_delete.rb
Last active March 14, 2025 19:45
This Ruby script will bulk remove all Slack files older than 30 days. Just add your API token from https://api.slack.com/web#authentication into the token quotes at the top of the file.
require 'net/http'
require 'json'
require 'uri'
@token = ''
def list_files
ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago
params = {
token: @token,
@dragonfax
dragonfax / autoclick.js
Last active December 17, 2019 23:28
auto clicker for steam summer game (wchill version)
// ==UserScript==
// @name Monster Minigame Auto-script
// @namespace https://github.com/wchill/steamSummerMinigame
// @description A script that runs the Steam Monster Minigame for you. Modified from mouseas's original version to include autoclick.
// @version 1.0
// @match http://steamcommunity.com/minigame/towerattack*
// @updateURL https://raw.githubusercontent.com/wchill/steamSummerMinigame/master/autoPlay.js
// @downloadURL https://raw.githubusercontent.com/wchill/steamSummerMinigame/master/autoPlay.js
// ==/UserScript==
# zsh
EMOJI=(๐Ÿ’ฉ ๐Ÿฆ ๐Ÿš€ ๐Ÿž ๐ŸŽจ ๐Ÿ• ๐Ÿญ ๐Ÿ‘ฝ โ˜•๏ธ ๐Ÿ”ฌ ๐Ÿ’€ ๐Ÿท ๐Ÿผ ๐Ÿถ ๐Ÿธ ๐Ÿง ๐Ÿณ ๐Ÿ” ๐Ÿฃ ๐Ÿป ๐Ÿ”ฎ ๐Ÿ’ฐ ๐Ÿ’Ž ๐Ÿ’พ ๐Ÿ’œ ๐Ÿช ๐ŸŒž ๐ŸŒ ๐ŸŒ ๐Ÿ“ ๐Ÿ„ )
function random_emoji {
echo -n "$EMOJI[$RANDOM%$#EMOJI+1]"
}
PROMPT="$(random_emoji) "
RPROMPT='%c'
@Stubbs
Stubbs / main.yml
Created March 28, 2015 14:31
Ansible Playbook to install PHP7
- name: Install Packages Needed To Compile PHP 7
apt: pkg={{ item }} state=latest
with_items:
- git
- autoconf
- bison
- libxml2-dev
- libbz2-dev
- libmcrypt-dev
- libcurl4-openssl-dev