Skip to content

Instantly share code, notes, and snippets.

@endolith
endolith / Has weird right-to-left characters.txt
Last active April 20, 2025 22:34
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@haschek
haschek / .jshintrc
Created May 4, 2012 16:08
JSHint Configuration, Strict Edition
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
@ryin
ryin / tmux_local_install.sh
Last active October 2, 2024 14:23
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.8
@willurd
willurd / web-servers.md
Last active April 27, 2025 23:19
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000

Contract Killer 3 (french version)

Date de Révision: 07/11/2012

Entre nous [la raison sociale de votre entreprise] et vous [la raison sociale de votre client]

Résumé:

Nous ferons toujours de notre mieux pour répondre à vos besoins et à vos attentes, mais il est important pour nous comme pour vous d’avoir une trace écrite des tenants et aboutissants de notre relation, et des éventualités en cas d’un quelconque désaccord. Vous ne trouverez ni termes légaux complexes, ni longs passages interminables et incompréhensibles dans ce contrat. Nous n’avons aucune volonté de vous piéger en vous faisant signer quoi que ce soit que vous seriez amené ensuite à regretter. Nous voulons juste ce qu’il y a de mieux pour les deux parties, maintenant et dans le futur.

@dr-dimitru
dr-dimitru / Social RESTful URLs snippet.md
Last active January 28, 2023 03:57
Social links, +1s and shares using only HTML (no JS)
@serverwentdown
serverwentdown / server.js
Last active January 29, 2019 20:18 — forked from mixonic/server.js
// Bug fixes for current versions.
//
// This server will start a bash shell and expose it
// over socket.io to a browser. See ./term.html for the
// client side.
//
// You should probably:
//
// npm install socket.io
@graphicbeacon
graphicbeacon / chat-server.js
Last active October 10, 2023 16:37
A simple TCP chat server with NodeJS, based on the example provided by creationix.
var net = require('net');
var sockets = [];
var port = 8000;
var guestId = 0;
var server = net.createServer(function(socket) {
// Increment
guestId++;
socket.nickname = "Guest" + guestId;
@joantune
joantune / post-update.sh
Last active August 29, 2015 14:05
Git post-update hook to deploy Play application on a Docker container
#!/usr/bin/env bash
. /home/deploy/.profile
set -e
workspace="/home/deploy/sandbox"
conf_files="/home/deploy/fb/conf"
repo_location="/home/deploy/feedburner"
project_name="feedburner"
@t-mart
t-mart / netrw quick reference.md
Last active April 27, 2025 18:49
A quick reference for Vim's built-in netrw file selector.
Map Action
<F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file
<del> Netrw will attempt to remove the file/directory
- Makes Netrw go up one directory
a Toggles between normal display, hiding (suppress display of files matching g:netrw_list_hide) showing (display only files which match g:netrw_list_hide)
c Make browsing directory the current directory
C Setting the editing window
d Make a directory