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/ruby | |
def fix_keymap(km_str) | |
km_str.gsub!(/LALT\(LCTL\(LGUI\(LSFT\((.*?)\)\)\)\)/,'HYPR(\1)') | |
km_str.gsub!(/LGUI\(LSFT\((.*?)\)\)/,'SGUI(\1)') | |
km_str.gsub!(/LALT\(LCTL\((.*?)\)\)/,'LCA(\1)') | |
km_str.gsub!(/LCTL\(LGUI\(LSFT\((.*?)\)\)\)/,'LCGS(\1)') | |
km_str.gsub!(/LCTL\(LSFT\((.*?)\)\)/,'LCS(\1)') | |
km_str.gsub!(/MT\(MOD_HYPR, (.*?)\)/,'HYPR_T(\1)') | |
km_str.gsub!(/MT\(MOD_MEH, (.*?)\)/,'MEH_T(\1)') |
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/perl | |
open(FILE,$ARGV[0]) || die "Can't open the file [$!]\n"; | |
local $/; | |
$keymap = <FILE>; | |
close(FILE); | |
$keymap =~ s/LALT\(LCTL\(LGUI\(LSFT\((.*?)\)\)\)\)/HYPR($1)/g; | |
$keymap =~ s/LGUI\(LSFT\((.*?)\)\)/SGUI($1)/g; | |
$keymap =~ s/LALT\(LCTL\((.*?)\)\)/LCA($1)/g; | |
$keymap =~ s/LCTL\(LGUI\(LSFT\((.*?)\)\)\)/LCGS($1)/g; | |
$keymap =~ s/LCTL\(LSFT\((.*?)\)\)/LCS($1)/g; |
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
// | |
// Goroutines.swift | |
// TestGoer | |
// | |
// Created by Doug Marcey on 6/11/14. | |
// Copyright (c) 2014 Doug Marcey. All rights reserved. | |
// | |
import Foundation |
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 | |
sudo rpm -Uvh http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-7.noarch.rpm | |
sudo yum clean all | |
sudo yum install -y puppet | |
remove="" | |
if rpm -Vi Percona-Server-shared-51; then | |
remove="${remove} Percona-Server-shared-51" | |
fi |
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 | |
sudo rpm -Uvh http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-7.noarch.rpm | |
sudo rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/epel-release-6-5.noarch.rpm | |
sudo rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-11.ius.centos6.noarch.rpm | |
sudo yum clean all | |
remove="" | |
if rpm -Vi Percona-Server-shared-51; then | |
remove="${remove} Percona-Server-shared-51" | |
fi |
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
class hbs::solr { | |
service { "tomcat6": | |
name => "tomcat6", | |
ensure => running, | |
enable => true, | |
require => Package["tomcat6"], | |
} | |
package { ['tomcat6', 'tomcat6-webapps', 'tomcat6-admin-webapps', 'wget']: |
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
class hbs::nginxdrupal ( | |
$hostname = $fqdn | |
){ | |
$loggingoffallow = { | |
log_not_found => "off", | |
access_log => "off", | |
allow => "all" | |
} | |
$denyall = { |
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
class hbs::nginxnode ( | |
$hostname = $fqdn | |
){ | |
nginx::resource::upstream { 'hbsnode': | |
ensure => present, | |
members => [ | |
'localhost:4000' | |
], | |
require => Nginx::Resource::Vhost[$hostname] | |
} |
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
class hbs::nginxdrupal ( | |
$hostname = $fqdn | |
){ | |
$loggingoffallow = { | |
log_not_found => "off", | |
access_log => "off", | |
allow => "all" | |
} | |
$denyall = { |
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 node | |
var path = require("path"), | |
fs = require("fs"), | |
dsv = require("dsv"), | |
optimist = require("optimist"), | |
queue = require("queue-async"), | |
topojson = require("topojson"), | |
jsts = require("jsts"), | |
d3 = require("d3"); |