This file contains hidden or 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
var Nightmare = require('nightmare'); | |
var exec = require('child_process').exec; | |
// Receive arguments from the console. | |
var arguments = process.argv.slice(2); | |
console.log("Searching: " + arguments); | |
new Nightmare() | |
.goto('http://yahoo.com') | |
.type('input[title="Search"]', arguments) |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
var duration = 1000; // 1 sec. | |
document.addEventListener('DOMContentLoaded', function (event) { | |
navigator.vibrate(duration); | |
}); | |
</script> | |
</head> |
This file contains hidden or 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
source 'https://rubygems.org' | |
gem 'ppt', path: '/webs/ppt/gems/ppt' | |
gem 'pipeline.rb', github: 'botanicus/pipeline.rb', branch: 'master' ###### <= This is supposedly the problem. | |
group(:development, :test) do | |
gem 'pry' | |
end | |
group(:test) do |
This file contains hidden or 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
launch "iTerm" | |
tell application "iTerm" | |
activate | |
set myterm to (make new terminal) | |
tell myterm | |
-- SPLIT the terminal to 4 split windows. | |
This file contains hidden or 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
tell application "AppleScript Editor" | |
go fuck yourself | |
end tell |
This file contains hidden or 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
#!/opt/rubies/ruby-2.1.2/bin/ruby -i.bckp | |
# Usage: | |
# ./env-edit.rb [var] delete [optional file] | |
# ./env-edit.rb [var] [append|prepend|replace|remove] [value] [optional file] | |
# ./env-edit.rb PATH append /opt/rubies/rbx-2.2.6/bin/rbx | |
OPERATIONS = ['add', 'delete', 'append', 'prepend', 'replace', 'remove'] | |
variable, operation = ARGV.shift(2) |
This file contains hidden or 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
-- Find more at http://iterm.sourceforge.net/scripting.shtml | |
launch "iTerm" | |
tell application "iTerm" | |
activate | |
-- ssh in split panes to my varnish stack | |
set myterm to (make new terminal) | |
tell myterm |
This file contains hidden or 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 rackup -p 9999 | |
run Proc.new { |env| | |
value = env['QUERY_STRING'].split('&').last | |
response = Rack::Response.new(["Demo app"], 200, Hash.new) | |
if value | |
puts "~ SET #{value}" | |
response.set_cookie('session-id', {value: value, domain: '101ideas.cz', path: '/', expires: Time.now+24*60*60}) |
This file contains hidden or 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 ruby | |
# encoding: utf-8 | |
# Usage: | |
# nef2jpg.rb DSC_5069.NEF | |
# nef2jpg.rb DSC_50??.NEF | |
# nef2jpg.rb . | |
# settings | |
PROCESSES = 4 |
This file contains hidden or 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
# encoding: utf-8 | |
require "pry" | |
require "dm-core" | |
require "dm-migrations" | |
DataMapper::Logger.new(STDOUT, :debug) | |
DataMapper.setup(:default, "mysql://localhost/test") | |
DataMapper::Model.raise_on_save_failure = true |