git lb
31 minutes ago: fun-branch
2 days ago: remove-things
3 days ago: staging
6 days ago: remove-bugs
Courtesy of https://ses4j.github.io/2020/04/01/git-alias-recent-branches/
| *.pyc | |
| *~ | |
| .env/ | |
| static/ | |
| data/ | |
| *_pb2.py |
| // Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
| // jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
| // author: Pawel Kozlowski | |
| var myApp = angular.module('myApp', []); | |
| //service style, probably the simplest one | |
| myApp.service('helloWorldFromService', function() { | |
| this.sayHello = function() { | |
| return "Hello, World!" |
| // $ npm install node-phantom nodemailer moment lodash | |
| // Modules definitions | |
| var phantom = require('node-phantom') | |
| , nodemailer = require("nodemailer") | |
| , moment = require('moment') | |
| , _ = require('lodash') | |
| // Email stuff | |
| var smtpTransport = nodemailer.createTransport("SMTP",{ | |
| service: "Gmail" |
git lb
31 minutes ago: fun-branch
2 days ago: remove-things
3 days ago: staging
6 days ago: remove-bugs
Courtesy of https://ses4j.github.io/2020/04/01/git-alias-recent-branches/
| function isEmail(email){ | |
| return /^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/.test(email); | |
| } |
| #!/bin/bash | |
| if [ ! -n "$1" ] | |
| then | |
| echo "Usage: `basename $0` hostname" | |
| exit $E_BADARGS | |
| fi | |
| HOSTNAME=$1 | |
| DOMAIN=$(echo show Setup:/Network/BackToMyMac | scutil | sed -n 's/.* : *\(.*\).$/\1/p') |
| brew update | |
| brew versions FORMULA | |
| cd `brew --prefix` | |
| git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
| brew install FORMULA | |
| brew switch FORMULA VERSION | |
| git checkout -- Library/Formula/FORMULA.rb # reset formula | |
| ## Example: Using Subversion 1.6.17 | |
| # |
| This is a Python script to extract GNOME/GTK's color scheme and apply it to Wine, so that the themes (approximately) match. | |
| Instructions: | |
| 1. Set your Gnome theme as you would like it | |
| 2. Run with a command like "python wine_colors_from_gtk.py" | |
| 3. Restart any apps running in Wine. They should match the Gnome theme colors now. | |
| Better description with screenshots here: http://www.endolith.com/wordpress/2008/08/03/wine-colors/ | |
| This is also stored on https://code.launchpad.net/~endolith/+junk/wine-color-scraper |