Skip to content

Instantly share code, notes, and snippets.

@computercolin
computercolin / ascii_emoji.md
Last active September 16, 2018 21:58
ascii emoji

Action

shrug ¯\_(ツ)_/¯
dancing ヾ(-_- )ゞ
dancing ┌(ㆆ㉨ㆆ)ʃ
listening to headphones ◖ᵔᴥᵔ◗ ♪ ♫
doing magic ╰(•̀ 3 •́)━☆゚.*・。゚
exorcism ح(•̀ж•́)ง †
point right (☞゚ヮ゚)☞
@computercolin
computercolin / 2014-11 Zwiebel AirFiber v2.2beta3 Performance Issue Testing
Created December 1, 2014 07:29
2014-11 Zwiebel AirFiber v2.2beta3 Performance Issue Testing
== Nov 2014 AirFiber 24 v2.2beta3 half-duplex performance issue testing ==
Firmware version 2.0 gives iperf TCP ~230Mbps Tx, ~297Mbps Rx.
Upon upgrading to v2.2beta3, link droped to ~110Mbps Tx, ~92Mbps Rx.
!
== Setup:
[Edgemax-linux-router 1] -- [AF1-master] -- [AF2-slave] -- [Edgemax-linux-router 2]
Half-duplex link, signal strength ~-60dBm, GUI shows 380Mbps capacity Rx and Tx
1.2km, AF24 at full modulation (64QAM 2x2)
@computercolin
computercolin / 2014-08 Zwiebel ToughSwitch, NanoLoco Performance Testing
Last active August 29, 2015 14:04
2014-08 ToughSwitch and Nanostation Loco performance testing
Colin Zwiebel
2014-08 ToughSwitch and Nanostation Loco performance testing
== Test Setup ==
ERlite-1 == DUT (switch) == Nanostation Loco M5 == Nanostation Loco M5 == ERlite-2
- All ports were set at auto-negotiate, so DUT connected to ERlite-1 at 1000M and NanoLoco at 100M.
- All tests were iperf TCP unidirectional (manually run each direction) with 4 streams (-P 4)
first: iperf -c 192.168.1.204 -P 4
next: iperf -c 192.168.1.201 -P 4
@computercolin
computercolin / readme.md
Created July 17, 2014 14:03
Replacement vyatta-cron readme

vyatta-cron

Vyatta cron configuration templates and scripts

Depends on cron package (installed by default).

Configuration commands:

system

@computercolin
computercolin / gist:2963287
Created June 21, 2012 01:13
Mikrotik Bandwidth Limiting (simple queue) Radius Attribute
Mikrotik-Rate-Limit = "384k/1536k 0/0 0/0 0/0 96k/384k"
--- background.html Thu Apr 5 21:54:06 2012
+++ background_fixed.html Sat Apr 7 01:05:15 2012
@@ -165,7 +165,7 @@
if (xhr.responseText){
- var matches = /span id="messagesCountValue">([0-9]+)<\/span/.exec(xhr.responseText);
+ var matches = /messagesCountValue">([0-9]+)<\/span/.exec(xhr.responseText);
if (matches instanceof Array) {
handleSuccess(matches[1]);
#!/bin/sh
JAVA="java -server -Xmx1024M -jar"
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
case "$1" in
start)
cd $SCRIPT_DIR
$JAVA gitblit.jar
;;
@computercolin
computercolin / cacti.conf
Created January 30, 2012 05:03
Sample Ubuntu/Debian Cacti Apache2 Config
Alias /cacti /usr/share/cacti
<Directory /usr/share/cacti>
Options +FollowSymLinks
AllowOverride None
order allow,deny
allow from all
AddType application/x-httpd-php .php
@computercolin
computercolin / gist:1585533
Created January 9, 2012 23:10
Install VirtualBox Guest Additions - Ubuntu 10.04 guest
sudo apt-get install build-essentials linux-headers-`uname -r`
sudo mount /dev/cdrom /mnt/cdrom
sudo /mnt/cdrom/VBoxLinuxAdditions.run
@computercolin
computercolin / gist:1577948
Created January 8, 2012 10:32
Error Directories Bug Fix
diff --git a/Makefile b/Makefile
index f8909e8..8884bef 100644
--- a/Makefile
+++ b/Makefile
@@ -67,12 +67,12 @@ check_settings:
.SILENT:
create_dirs:
-# if test -d $(HTTPD_MEDIA_DIR) ; then echo 'HTTP DIR OK'; else mkdir -p $(HTTPD_MEDIA_DIR); fi
- - mkdir -p $(HTTPD_REP_DIR)