Skip to content

Instantly share code, notes, and snippets.

@janmoesen
janmoesen / .bash_profile
Created August 19, 2011 06:01
Temporary .bash_profile
# ============== shell
# Case-insensitive globbing.
shopt -s nocaseglob;
# Do not overwrite files when redirecting using ">", ">&" or "<>".
# Note that you can still override this with ">|".
set -o noclobber;
# UTF-8 all the way.
export LC_ALL='en_GB.UTF-8';
@ManuelBlanc
ManuelBlanc / InstallSublime.md
Last active February 20, 2017 14:40
Instalador de Sublime Text 3 para los laboratorios de la EPS

Instalador de Sublime Text 3

Este script establece Sublime Text 3 como editor por defecto del sistema. Comprueba si esta instalado en ~/UnidadH/sublime_text_3, y en caso instalado lo descarga e instala ahi. Hay dos modos:

Para uso frecuente

Descarga este script a tu UnidadH y dale permisos de ejecuccion:

cd ~/UnidadH

@Youka
Youka / mem2func.lua
Last active January 30, 2023 07:33
Run machine code with LuaJIT (Windows x86)
-- Load foreign-function-interface handle
local ffi = require("ffi")
-- Shortcut FFI C namespace
local C = ffi.C
-- Load Windows kernel32 DLL
local kernel32 = ffi.load("kernel32")
-- Add C definitions to FFI for usage descriptions of components
ffi.cdef([[
// Redefinitions for WinAPI conventions
typedef void VOID;
@ningunaparte
ningunaparte / d3.locale.ES.js
Created April 22, 2015 14:26
How to format D3.js dates and numbers to spanish - Localizar al español fechas y números
// https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.js
// SAMPLE https://jsfiddle.net/ningunaparte/9gm68vmn/
var nowDate = new Date();
// ES LOCATION
// d3.locale Spanish Spain / Español
// https://github.com/mbostock/d3/wiki/Localization
var es_ES = {
@sclu1034
sclu1034 / mod.lua
Last active October 15, 2018 09:04
-- The file that defines `MyModView`
dofile("scripts/mods/my_mod/view/my_mod_view")
local view_data = {
-- Any name may be chosen, but it has to be unique among all registered views
view_name = "my_mod_view",
view_settings = {
init_view_function = function (ingame_ui_context)
return MyModView:new(ingame_ui_context)
end,
@Shazbot
Shazbot / sigcheck.py
Last active September 2, 2019 21:44
Script that compares function signatures inside lua files to those in the Vermintide 2 Source Code
# Pass the mod folder as script argument: python3 sigcheck.py /c/mods/SpawnTweaks
# Put comments inside lua files in the format of
# CHECK followed by the function signature in a new line
# e.g. to check if HordeSpawner.spawn_unit was changed:
# -- CHECK
# -- HordeSpawner.spawn_unit = function (self, hidden_spawn, breed_name, goal_pos, horde)
import os
from os import path
import mmap