Skip to content

Instantly share code, notes, and snippets.

@gabamnml
gabamnml / gist:4532176
Created January 14, 2013 18:30
socket.io config for production
io.configure('production', function(){
console.log("Running Socket.io in production mode");
io.enable('browser client minification'); // send minified client
io.enable('browser client etag'); // apply etag caching logic based on version number
io.enable('browser client gzip'); // gzip the file
io.set('log level', 1); // reduce logging
io.set('transports', [ // enable all transports (optional if you want flashsocket)
'websocket'
, 'flashsocket'
, 'htmlfile'
@vemacs
vemacs / Tutorial.md
Last active July 29, 2022 10:00
Instructions for setting up a Spigot server using mark2 on a fresh Ubuntu Server 14.04 LTS install.

This guide is outdated

Please check out the official installation guide here: https://github.com/mark2devel/mark2/blob/master/INSTALL.md

Prerequisites

  • a vswap OpenVZ VPS or a KVM/Xen/VMware VPS with Ubuntu Server 14.04 LTS installed (architecture doesn't matter), or a dedicated server
  • patience and a willingness to learn
  • approximately 10 minutes of time
@aras-p
aras-p / preprocessor_fun.h
Last active November 15, 2024 09:22
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@JanPokorny
JanPokorny / neomacro.user.js
Last active January 1, 2016 13:19
TagPro Neomacro UserScript by Popcorn. Description in a comment in the code below ↓
/*
* TagPro Neomacro | UserScript by Popcorn.
* ========================================
* Are you tired of overly complex chat macro systems? Have you forgotten whether you bound "Yes" to I or U?
* This is Neomacro -- TagPro macro system that uses arrow keys, ctrl and 0 (zero) (you use WASD to control
* the game, don't you?) to create powerful and easy-to-remember macro codes.
*
* 1.0 update: Redesigned some macros, be sure to take a look.
* 1.1 update: Simplified code, added more comments
* 1.2 update: Goodbye, backspace and ctrl+something!
@robot56
robot56 / gist:8628336
Last active January 4, 2016 13:29
JSON list of REGEXs used for matching card names.
{
"items": {
"6.3": {
"x64": {
"^(ATI|AMD) Radeon (HD.|)(5|6|7)\\d\\d0": {
"latestDriver": "https:\/\/support.amd.com\/en-us\/download\/desktop?os=Windows+8.1+-+64",
"name": "AMD Radeon HD Series"
},
"^(ATI|AMD) Mobility Radeon (HD.|)(5|6|7|8)\\d00": {
"latestDriver": "https:\/\/support.amd.com\/en-us\/download\/mobile?os=Windows+8.1+-+64",
@nolanlawson
nolanlawson / completion-for-gradle.md
Last active September 25, 2024 12:51
Gradle tab completion for Bash. Works on both Mac and Linux.

Gradle tab completion script for Bash

A tab completion script that works for Bash. Relies on the BSD md5 command on Mac and md5sum on Linux, so as long as you have one of those two commands, this should work.

Usage

$ gradle [TAB]

Common App & Stanford Essays

The following are my responses to the main Common App essay and the Stanford application questions. You're welcome to read them to try and understand how I got "in" to Stanford, or just for fun. Whatever you choose to try and take away from these essays, I hope you get something out of them. Or nothing at all, that works too. Enjoy.

A Brief Note

There's no secret formula. There are a lot of people more qualified than me that got denied. Even though they may have been more qualified, I beat them when it came to the essays. The most important part of your application is your essays, so I would encourage you to spend a lot of time on them. Spend time reflecting on who you are and how you can use your essays to communicate that. The readers of the over 40,000 Stanford applicants know a fake essay from a mile away. If you want to have a chance at admission, your essays need to be 100% authentic you, not 90% authentic you and 10% your mom/tutor/fake self.

If you plan to apply, I

@rikukissa
rikukissa / .gitignore
Last active December 17, 2015 17:18
Darker theme for Shout. Has a bit more eye-friendly color scheme and hides some IMO unnecessary features such as "Leave" and "Submit" buttons.
.DS_Store
@pingbird
pingbird / gist:974e3fb00b9064371981
Last active August 22, 2024 16:25
Fancy lua serialization
--[[
Fancy lua serialization by PixelToast, public domain
serializes a value into a fancy and human readable format
example:
> cserialize({key="value",table={list={1,2,"three"},d="alphabetical order",c=1,b=2,a=3}})
┌─────────────────────────────────────────┐
│"key" = "value" │
│ ┌─────────────────────────────┐│

OldRoot

Chapter 1: Seeding

It all started on July 11th, 2014. User /u/LewisGreen submitted this post to /r/Minecraft. LewisGreen got a private message from /u/OldRoot, containing an image link and the text "This is the beginning. Those who are pure will see what hides in the darkness". The image was a very dark screenshot of Minecraft in the forest, with a silhouette of a character in the background. /u/-Neroren- started the hunt. He brightened the image, revealing a transparent link to a SoundCloud track called "it has begun". It was a .wav sound file, which when run through spectrogram software revealed a message. "silentraven"