Skip to content

Instantly share code, notes, and snippets.

Travis Paul travispaul

Block or report user

Report or block travispaul

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@munificent
munificent / generate.c
Last active Aug 11, 2019
A random dungeon generator that fits on a business card
View generate.c
#include <time.h> // Robert Nystrom
#include <stdio.h> // @munificentbob
#include <stdlib.h> // for Ginny
#define r return // 2008-2019
#define l(a, b, c, d) for (i y=a;y\
<b; y++) for (int x = c; x < d; x++)
typedef int i;const i H=40;const i W
=80;i m[40][80];i g(i x){r rand()%x;
}void cave(i s){i w=g(10)+5;i h=g(6)
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u
@jperkin
jperkin / pkgin-refresh.md
Last active Apr 9, 2018
pkgin refresh changes for testing
View pkgin-refresh.md

Introduction

pkgsrc does things a bit different to most other package managers. When a package is rebuilt using our bulk build mechanism, every other package that depends on it is also rebuilt. So for example, if we upgrade OpenSSL from 1.0.2m to 1.0.2n then every package that uses OpenSSL (and every package that depends on those packages, and so on..) is rebuilt.

We do this to ensure consistency and avoid any nasty surprises. Just because an upstream thinks the ABI is identical it doesn't mean that is true, and you cannot rely on this behaviour. By rebuilding everything that could be affected we have confidence that at least the changes have gone through a build test, and we're not just hoping for the best.

This has served us well in the past and shown up issues that other package managers have been unaware of.

Issues

View gist:f3bb48a12f93548196e3d5bd644bc31d
壹多媒體娛樂服務股份有限公司 壹網樂/網樂通, https://www.nextvod.com.tw/ #nextvod #nextv
H/W
STMicroelectronics STx7105 (Renesas SuperH Core)
VIA VT6113 (Ethernet)
NANYA NT5TU64M16GG-AC (DRAM DDR2 64Mx16 PC800 BGA) * 2
Samsung NCDOM08GMS-MLC (USB DOM 8GB)
Winbond 25Q80 1MB Spi Flash (Onboard Flash)
Console Pin headers
@bcantrill
bcantrill / dtrace-on-rust
Last active Jul 8, 2019
DTrace on Rust. This shows running dtrace(1M) on a simple Rust program. Rust is running in a 64-bit LX-branded zone on SmartOS, an illumos derivative. Running stock (alpha) Rust and latest SmartOS.
View dtrace-on-rust
root@1eec2cd3-2cba-e416-e1b6-845b715b736c:~# uname -a
Linux 1eec2cd3-2cba-e416-e1b6-845b715b736c 3.13.0 BrandZ virtual linux x86_64 x86_64 x86_64 GNU/Linux
root@1eec2cd3-2cba-e416-e1b6-845b715b736c:~# rustc -Vv
rustc 1.0.0-nightly (44a287e6e 2015-01-08 17:03:40 -0800)
binary: rustc
commit-hash: 44a287e6eb22ec3c2a687fc156813577464017f7
commit-date: 2015-01-08 17:03:40 -0800
host: x86_64-unknown-linux-gnu
release: 1.0.0-nightly
root@1eec2cd3-2cba-e416-e1b6-845b715b736c:~# cat hello.rs
@johnbender
johnbender / prefs.js
Created Feb 23, 2013
Set up Chrome Secure Shell to handle solarized terminal colors
View prefs.js
// Disable bold.
term_.prefs_.set('enable-bold', false)
// Use this for Solarized Dark
term_.prefs_.set('background-color', "#002b36");
term_.prefs_.set('foreground-color', "#839496");
term_.prefs_.set('color-palette-overrides', [
'#073642',
'#dc322f',
@ck-on
ck-on / ocp.php
Last active Aug 13, 2019
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)#ocp #php #opcache #opcode #cache #zend #optimizerplus #optimizer+
View ocp.php
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.7
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.1.7 2015-09-01 regex fix for PHP7 phpinfo
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter
@filewalkwithme
filewalkwithme / sample_wol.lua
Created Jun 4, 2012
Lua Wake-On-Lan Script
View sample_wol.lua
function split(str, pat)
local t = {}
local fpat = "(.-)" .. pat
local last_end = 1
local s, e, cap = str:find(fpat, 1)
while s do
if s ~= 1 or cap ~= "" then
table.insert(t,cap)
end
last_end = e+1
You can’t perform that action at this time.