In iTerm2, in the menu bar go to Scripts > Manage > New Python Script
Select Basic. Select Long-Running Daemon
Give the script a decent name (I chose auto_dark_mode.py
)
Save and open the script in your editor of choice.
This totally happened, y'all can stop +1ing this now. GitHub Blog post. Direct link to settings where you can set this.
#Per-organization / per-repo email overrides - A feature suggestion
Here the concepts "organization" and "user" are interchangeable, I'm talking about an entity that owns a repo, whether it is jQuery or John Resig. I'll stick to using organization as it best represents my original use-case.
##TL;DR
This repo has some handy handy hooks to run bundle
or npm install
whenever you:
git checkout
a new branch with a different Gemfile or package.jsongit pull
a change to Gemfile or package.jsongit clone https://gist.github.com/5869846.git hooks && cd hooks && chmod +x install
``` | |
filter eventName="ConsoleLogin" | |
| stats count(*) as eventCount by userIdentity.userName, sourceIPAddress | |
| sort eventCount desc | |
filter not sourceIPAddress =~ /^(?i)123.123.123.123/ and userIdentity.userName =~/^(?i)\w/ | |
| stats count(*) as eventCount by eventName, userIdentity.userName, sourceIPAddress | |
| sort eventCount desc | |
filter eventName="ConsoleLogin" |
if [ -f "$rvm_path/scripts/rvm" ]; then | |
source "$rvm_path/scripts/rvm" | |
if [ -f ".rvmrc" ]; then | |
source ".rvmrc" | |
fi | |
if [ -f ".ruby-version" ]; then | |
rvm use `cat .ruby-version` | |
fi |
express = require 'express' | |
gracefullyExiting = false | |
app = express.createServer() | |
app.use (req, res, next) -> | |
return next() unless gracefullyExiting | |
res.setHeader "Connection", "close" | |
res.send 502, "Server is in the process of restarting." |
Data integrity is so important. We need your help to make sure we've got it.
You've received two different sets of data, each claiming to be the reliable source of truth. Write a ruby command line tool that can parse the two sets of data and output any discrepancies.
The data sits in two CSV files, each with three columns:
Account Email, YouTube Channel, Subscriber Count
You can assume the account emails are the same between files and reliable.
function traverse(obj,func, parent) { | |
for (i in obj){ | |
func.apply(this,[i,obj[i],parent]); | |
if (obj[i] instanceof Object && !(obj[i] instanceof Array)) { | |
traverse(obj[i],func, i); | |
} | |
} | |
} | |
function getPropertyRecursive(obj, property){ |
if [ -f ".rvmrc" ]; then | |
source ".rvmrc" | |
fi |
function Child() { | |
Parent.call(this); | |
} | |
extends(Child, Parent); |