This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import collections | |
import csv | |
import datetime | |
import io | |
import pathlib | |
import re | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+------------------------------------------------------------------------------------------------------| | |
| HOST + DEVICES + COMMENTS/DESCRIPTION | | |
+------------------------------------------------------------------------------------------------------+ | |
| 100 | NET | | | |
| | em1: 10.100.10.100 <-+ | LAN addr; bridged over 2 physical NICs | | |
| | docker0: 172.17.42.1 | | default docker bridge | | |
| | lo: 127.0.0.1 | | | | |
| +---> br0: 10.100.100.2 +--+ | bridge spanning 10.100.100.1/28, OSPF over L3 | | |
| | | | note that the first and last addresses are | | |
| | | | taken by the gateway. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# While implementing fork-rate monitoring as per | |
# http://word.bitly.com/post/74839060954/ten-things-to-monitor | |
# we discovered that we had Perl processes that were making large numbers | |
# of execve syscalls. Investigating further it appears Perl uses execvp | |
# from glibc which results in an execve syscall for each entry in the path | |
# when using `backticks`, sytem or open(FH, "exe|") etc. | |
# Compare this to bash that appears to avoid execvp and instead iterates | |
# $PATH using stat and a single execve syscall. | |
## PERL ## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install the Symbola font | |
sudo apt-get install ttf-ancient-fonts | |
# get the ibus emoji input source | |
git clone https://github.com/lalomartins/ibus-uniemoji.git | |
cd ibus-uniemoji | |
sudo make install | |
# enable the ibus emoji input | |
ibus-setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export DISPLAY=:0.0 | |
source $(ls -rt ~/.dbus/session-bus/* | tail -1) | |
export DBUS_SESSION_BUS_ADDRESS | |
export XDG_SESSION_COOKIE=$(< ~/.xdg_cookie) | |
SS_ACTIVE_THRESHOLD=3600 | |
SCREENSAVER_ACTIVE=$(qdbus org.gnome.ScreenSaver /ScreenSaver org.gnome.ScreenSaver.GetActiveTime) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usage=`cat <<EOF | |
listIUs.sh <url> | |
e.g: | |
listIUs.sh http://download.scala-ide.org/nightly-update-master-2.8.0.final | |
EOF | |
` | |
if [[ -z $1 ]]; then | |
echo $usage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# eclipse | |
repoUrls=http://download.eclipse.org/releases/indigo,http://download.eclipse.org/eclipse/updates/3.7,http://download.eclipse.org/eclipse/updates/3.6,http://download.eclipse.org/eclipse/updates/3.5,http://download.eclipse.org/eclipse/updates/3.4 | |
repoUrls=$repoUrls,http://www.eclipse.org/modeling/emf/updates/,http://download.eclipse.org/modeling/emf/updates/releases/ | |
repoUrls=$repoUrls,http://download.eclipse.org/birt/update-site/2.6 | |
repoUrls=$repoUrls,http://download.eclipse.org/webtools/repository/indigo | |
repoUrls=$repoUrls,http://download.eclipse.org/tools/gef/updates/releases/ | |
repoUrls=$repoUrls,http://download.eclipse.org/technology/dltk/updates | |
repoUrls=$repoUrls,http://download.eclipse.org/tools/cdt/releases/indigo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Copyright 2006 Doug Hellmann. | |
# | |
# | |
# All Rights Reserved | |
# | |
# Permission to use, copy, modify, and distribute this software and | |
# its documentation for any purpose and without fee is hereby | |
# granted, provided that the above copyright notice appear in all |