Skip to content

Instantly share code, notes, and snippets.

# Single-line version:
(?i)\b((?:https?:(?:/{1,3}|[a-z0-9%])|[a-z0-9.\-]+[.](?:com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|Ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)/)(?:[^\s()<>{}\[\]]+|\([^\s()]*?\([^\s()]+\)[^\s()]*?\)|\([^\s]+?\))+(?:\([^\s()
# IMPORTANT SETUP INSTRUCTIONS:
#
# 1. Go to http://www.dropbox.com/developers/apps (log in if necessary)
# 2. Select "Create App"
# 3. Select the following settings:
# * "Dropbox API app"
# * "Files and datastores"
# * "(No) My app needs access to files already on Dropbox"
# * "All file types"
# * (Choose any app name)
Aloi-Mini:syr_gecko Chris$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
ctaloi/python latest e90639605957 11 minutes ago 644.6 MB
<none> <none> 87a9652f36f2 13 minutes ago 644.6 MB
ubuntu latest ef83896b7fb9 6 days ago 192.7 MB
ubuntu 14.04 e54ca5efa2e9 12 days ago 276.5 MB
dockerfile/python latest f86d6993fc7b 6 weeks ago 643.8 MB
Aloi-Mini:syr_gecko Chris$ cat Dockerfile
# 2014-07-01 13:06:09 @ctaloi
noc@syr-switchboard:~/docker/switchboard$ sudo docker run -it --rm --name app --link meteor:web ctaloi/python env
HOME=/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=4416b4f15c68
TERM=xterm
WEB_PORT=tcp://172.17.0.2:3000
WEB_PORT_3000_TCP=tcp://172.17.0.2:3000
WEB_PORT_3000_TCP_ADDR=172.17.0.2
WEB_PORT_3000_TCP_PORT=3000
WEB_PORT_3000_TCP_PROTO=tcp

ILOM ( Integrated Lights out Manager)

The Sun Fire X64 family of servers implement a technology called ILOM - Integrated Lights Out Manager

ILOM uses a hierarchical namespace It contains a predefined tree /SP namespace manages the ILOM.
e.g. to manage users and clock settings.
The SP namespace is generic over all platforms using the ILOM.

The /SYS namespace manages the host system.

@ctaloi
ctaloi / nxlog
Created November 15, 2014 01:39
NXLOG Config to fork Syslogs to localhost and PaperTrail
## This is a sample configuration file. See the nxlog reference manual about the
## configuration options. It should be installed locally and is also available
## online at http://nxlog.org/nxlog-docs/en/nxlog-reference-manual.html
## Please set the ROOT to the folder your nxlog was installed into,
## otherwise it will not start.
# Exec parse_syslog_ietf();
#define ROOT C:\Program Files\nxlog
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
# A little Meteor CheatSheet about Iron-Router. (updated on a weekly basis)
# Check our Studio: https://gentlenode.com/
meteor add iron:router
meteor update iron:router
# Iron Router > Configuration
@ctaloi
ctaloi / gist:7541a509fcd9b2eef4e2
Created February 10, 2015 17:56
How do I loop through an each - adding a break (row) every x?
Template.gallery.helpers({
getPictures: function() {
return Pictures.find({}, {
sort: {
createdAt: -1
}
});
// What I have
// If getPicture is contains 20 pictures, I get 20 rows
import os
from progressbar import ProgressBar, Percentage, Bar, ETA
print "----------------- Icon Generator ------------------"
print "Usage: icon-generator.py"
print "See files_ios { } in icon-generator.py"
print "icon-ios.png and icon-android.png"
print "---------------------------------------------------"
input_ios = './icon-ios.png'