Skip to content

Instantly share code, notes, and snippets.

View rubenerd's full-sized avatar

Ruben Schade rubenerd

View GitHub Profile
@jihan917
jihan917 / startnet.bat
Created January 9, 2013 22:35
Microsoft Network Client for DOS - script to start net
@echo off
rem config.sys should have "device=ifshlp.sys"
rem (and that alone suffices. --without protman.dos/pcntnd.dos/dis_pkt.dos)
PATH=C:\MSNET;%PATH%
net initialize
netbind
umb
Title: FreeBSD on the GPD Pocket
Tags: hardware freebsd drivers kernel gpdpocket
Date: 2017-08-22
Preview: FreeBSD on the GPD Pocket
Permalink: 0288
In the distant past before smart phones became identical black rectangles there
was a category of devices called [palmtops][0]. Palmtops were a class of PDA PC
thing that fit in the palm of your hand. Today the Psion 5 series of devices
most often capture peoples attention. Not only are they small and awesome, but
#!/usr/bin/env python
#################
## CREDENTIALS ##
#################
GH_PERSONAL_ACCESS_TOKEN = ''
BB_USERNAME = ''
BB_APP_PASSWORD = ''
BB_OAUTH_KEY = ''
@tomsquest
tomsquest / autoexec.bat
Created February 4, 2011 16:36
My old autoexec.bat and config.sys files used to have the maximum free memory : with/without CD-ROM, XMS, EMS)
@echo off
prompt $p$g
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\UTIL\AUTOEXEC\BAT
SET TEMP=C:\TEMP
SET TMP=C:\TMP
SET MOUSE=C:\UTIL\Autoexec\MOUSE
Loadhigh c:\windows\command\keyb fr,,C:\windows\command\keyboard.sys
Loadhigh doskey
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.30978870391845703</real>
<key>Green Component</key>
<real>0.30978870391845703</real>
@jpetazzo
jpetazzo / Sample result.txt
Created August 17, 2011 22:13
Compare the available nginx versions and their modules (according to debian packages descriptions)
nginx-full nginx-extras nginx-light
Access YES YES YES
Addition File AIO Mail Core - YES -
Addition Mail Core YES - -
Auth Basic YES YES YES
Auto Index YES YES YES
Browser YES YES -
Charset YES YES YES
Echo YES YES -
Embedded Lua - YES -
@theory14
theory14 / main.yaml
Created September 12, 2015 10:35
Ansible role for updating FreeBSD machines with freebsd-update and pkg
---
- name: Check status of jailing
shell: "sysctl security.jail.jailed | cut -d: -f2 | tr -d ' '"
register: is_jail
when: "ansible_os_family == 'FreeBSD' "
- name: Fetch and Install Updates
command: "{{ item }}"
when: "ansible_os_family == 'FreeBSD' and is_jail.stdout == '0'"
@alyssais
alyssais / vpn
Created May 8, 2018 17:12
A tiny command line interface to Viscosity
#!/usr/bin/env bash
run_list() {
osascript <<OSA
tell application "Viscosity"
repeat with theConnection in connections
set theName to name of theConnection
set theState to state of theConnection
log theName & ": " & theState
end repeat
@domdavis
domdavis / opml2md
Last active August 5, 2023 03:08
OPML to Markdown converter, based on https://gist.github.com/alecperkins/5671192 and fixed up to produce a nested list in Markdown.
"""
Based on https://gist.github.com/alecperkins/5671192
$ pip install opml
$ python opml2md.py some_outline.opml
-> some_outline.md
"""
import codecs
import opml
import sys
@spikegrobstein
spikegrobstein / nginx.conf
Last active September 22, 2023 04:19
nginx config for proxying requests for plex over a hostname-based virtualhost.
upstream plex-upstream {
# change plex-server.example.com:32400 to the hostname:port of your plex server.
# this can be "localhost:32400", for instance, if Plex is running on the same server as nginx.
server plex-server.example.com:32400;
}
server {
listen 80;
# server names for this server.