Skip to content

Instantly share code, notes, and snippets.

@VladimirMangos
VladimirMangos / backports log master->One
Created May 12, 2010 22:15
backports log master->mangos-0.12
commit a5a0702376c222572e7b6c8c48b2cae975398ae3
Author: VladimirMangos <vladimir@getmangos.com>
Date: Mon Dec 22 15:25:43 2008 +0300
MaNGOS 0.12 release.
-----------------------------------------------
!+2f3c20ec14d386f1b784ef26fe6e76ba8ea03ac5 [8776] proper arena rating calculation
!+ca88fc52a7e17148a91532cbbfd9ea55b41bc5a6 [8780] fixed typos with arenarating
@havvg
havvg / bdd-experiment-guide.md
Created September 9, 2011 14:44
Behavior Driven Development in Symfony2 with Behat, Mink and Zombie.js
@MiLk
MiLk / tp3.c
Created October 18, 2011 13:02
TP3 NF16
#include "tp3.h"
// Fonctions à réaliser
task * cree_tache(char caract[MAX_NOM + 1], int duree)
{
task *ptask = (task*)malloc(sizeof (task));
//strcpy(ptask->ID,caract);
*(ptask->ID) = caract;
ptask->duree = duree;
@MiLk
MiLk / IA01-TP02.cl
Created November 12, 2011 14:03
ia01 tp02
(defvar initial '(0 0 0 1 0 1))
(defvar final '(1 1 1 1 1 1))
(defun inverser (x)
(if (= x 1) 0 1)
)
(defun new-state(state pos)
(when (<= (length state) (+ pos 1)) (return-from new-state state))
(let ((i 0)(new-list '()))
(dolist (arrow state new-list)
@Bqbqr
Bqbqr / #UTC Sur Freenode, Guide.
Last active December 15, 2015 08:09
Petit Guide sur ce qu'est le chan #UTC sur Freenode.
Bonjour!
Bienvenue sur le Chan de L'UTC!
Les patrons sont Bqbqr et MiLk133:
-Pose leur des questions directement si personne ne répond, il suffit de citer le pseudo dans le message pour qu'ils s'intérressent a toi.
-C'est eux qui ont le pouvoir de te bannir ou de te virer du channel si tu fais n'importe quoi.
FAQ:
@tylerwalts
tylerwalts / setupOSX.sh
Created March 5, 2014 19:56
This is a bash script to setup Mac OS X defaults on a new mac.
#!/bin/bash
#
# Set up OSX preferences
#
# Inspired by: https://github.com/mathiasbynens/dotfiles/blob/master/.osx
###########################################
# CONFIG
HOSTNAME="machiavellia"
TIMEZONE="America/Chicago" # 'systemsetup -listtimezones'
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@dantswain
dantswain / gist:fdfb1c2c86e4d940a8f5
Last active May 3, 2020 04:05
Convert Elixir config.exs to Erlang sys.config
#!/usr/bin/env elixir
# Convert an Elixir config.exs to an erlang sys.config
#
# Usage: elixir_to_sys_config config.exs > sys.config
# First argument is the Elixir config.exs file
# Writes to stdout
# You probably want to set MIX_ENV accordingly
#
# 2015 by Dan Swain, dan.t.swain@gmail.com
@kwilczynski
kwilczynski / ec2-associate-address.sh
Last active October 8, 2017 21:35
Associate Elastic IP to a Bastion host running in a Auto-Scaling Group (ASG).
#!/bin/bash
set -e
set -u
set -o pipefail
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# The name of the EC2 tag that holds the Elastic IP address to use.
readonly TAG_NAME='PublicIP'
@schmohlio
schmohlio / sse.go
Last active July 25, 2024 03:38 — forked from ismasan/sse.go
Example SSE server in Golang
// v2 of the great example of SSE in go by @ismasan.
// includes fixes:
// * infinite loop ending in panic
// * closing a client twice
// * potentially blocked listen() from closing a connection during multiplex step.
package main
import (
"fmt"
"log"