Skip to content

Instantly share code, notes, and snippets.

@nickludlam
nickludlam / gist:6384227
Created August 29, 2013 22:33
Server time dilation monitor for Arma
/*********************************************************#
# @@ScriptName: timeDilationMonitor.sqf
# @@Author: Nick 'Bewilderbeest' Ludlam <[email protected]>
# @@Create Date: 2013-08-29 21:49:20
# @@Modify Date: 2013-08-29 23:16:00
# @@Function: Measures the server lag and presents an API to
# attempt to compensate for late timekeeping
#*********************************************************/
#define MEASURED_SLEEP_DURATION 1
@nickludlam
nickludlam / gist:9689491
Created March 21, 2014 16:02
keybase.md
### Keybase proof
I hereby claim:
* I am nickludlam on github.
* I am nickludlam (https://keybase.io/nickludlam) on keybase.
* I have a public key whose fingerprint is ED5A 9CCC 0A52 8719 C186 299B 2061 AB6D 6497 9884
To claim this, I am signing this object:
@nickludlam
nickludlam / gist:11229375
Created April 23, 2014 19:35
steamworks-vr-api build output
1>------ Build started: Project: vrtest_api, Configuration: Debug Win32 ------
2>------ Build started: Project: vrserver, Configuration: Debug Win32 ------
3>------ Build started: Project: vrclient, Configuration: Debug Win32 ------
4>------ Build started: Project: nointerfacedll (Test), Configuration: Debug Win32 ------
3> Running Protocol Buffer Compiler on vr_messages.proto...
1> Running VPC CRC Check - vrtest_api.vpc
2> Running Protocol Buffer Compiler on vr_messages.proto...
4> Running VPC CRC Check - nointerfacedll.vpc
4> Access is denied.
4> nointerfacedll.cpp
@nickludlam
nickludlam / gist:135820ca9d8b0ad121ea
Created May 1, 2014 11:00
The @micropython REPL help text read directly from its serial interface
Micro Python build ca045d9 on 2014-04-21; PYBv1.0 with STM32F405RG
Type "help()" for more information.
>>>
>>> help()
Welcome to Micro Python!
For online help please visit http://micropython.org/help/.
Quick overview of commands for the board:
pyb.info() -- print some general information
@nickludlam
nickludlam / gist:0b6a36d1facea1d33c12
Created July 2, 2014 12:57
Accessing V1 projects using the V2 Berg Cloud Python API
# LittleCounter - A simple demonstration of how you use the BERG Cloud Linux
# client libraries to fetch and send data to BERG Cloud. For
# more info see http://bergcloud.com/
#
# This example code is in the public domain.
#
# https://github.com/bergcloud/devshield-raspberrypi
from bergcloud import *
import time
@nickludlam
nickludlam / gist:d69fcd1eeca0e41c7c01
Last active August 29, 2015 14:05
Overwolf for Elite: Dangerous
1. Grab the latest Overwolf from their website.
2. Open AppData\Local\Overwolf\GamesList.7804102.xml
3. Paste this at the bottom, *above* the </ArrayOfGameInfo> tag:
<GameInfo>
<ID>105222</ID>
<GameTitle>Elite Dangerous</GameTitle>
<LuancherNames>
<string>EliteDangerous.exe</string>
</LuancherNames>
@nickludlam
nickludlam / wrtnode_dmesg.txt
Created October 26, 2014 23:22
Dmesg output from a WRTNode boarf
[ 0.000000] Linux version 3.10.44 (noel@na) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r41508) ) #20 Wed Aug 13 21:00:28 UTC 2014
[ 0.000000] Board has DDR2
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: Ralink MT7620N ver:2 eco:6
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is WRTNODE
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
@nickludlam
nickludlam / wrtnode_packages.txt
Created October 26, 2014 23:25
WRTNode list of installed packages
root@OpenWrt:~# opkg list
alsa-lib - 1.0.27.2-1
alsa-utils - 1.0.27.2-1
base-files - 155-r41508
block-mount - 2014-06-22-e0430f5c62f367e5a8e02755412977b02c3fc45e
busybox - 1.22.1-2
bzip2 - 1.0.6-1
curl - 7.36.0-1
dnsmasq - 2.71-3
dropbear - 2014.63-1
@nickludlam
nickludlam / gist:23190c588df0eb93e84e
Created January 22, 2015 15:19
NodeJS mini-app for querying MongoDB
var express = require('express')
, mongoskin = require('mongoskin')
, bodyParser = require('body-parser')
var path = require('path');
var app = express()
app.set('views', path.join(__dirname, 'views'));
app.use(express.static(path.join(__dirname, 'public')));
app.use(bodyParser())
@nickludlam
nickludlam / gist:4d798bb5d59792b3a379
Created April 16, 2015 22:51
Multiple level dropdown
<div class="container">
<div class="row">
<h2>Multi level dropdown menu in Bootstrap 3</h2>
<hr />
<div class="dropdown dropdown-select">
<a id="dropdown-content" role="button" data-toggle="dropdown" class="btn btn-primary dropdown-text" data-target="#">
Dropdown <span class="caret"></span>
</a>
<input type="hidden" name='ddname' />
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dropdownMenu">