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
using System; | |
using System.IO; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.IO.Ports; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Diagnostics; | |
using System.Windows.Forms; | |
using System.Text.RegularExpressions; |
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
set nocompatible " be iMproved | |
filetype off " required! | |
"set rtp+=~/.vim/bundle/vundle/ | |
"call vundle#rc() | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle |
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
Host HEROKU.USERNAME | |
HostName heroku.com | |
IdentityFile ~/.ssh/id_rsa | |
IdentitiesOnly yes | |
Host home | |
HostName XXX.XXX.XXX.XXX | |
Port XXXX | |
LocalForward 127.0.0.1:5900 127.0.0.1:5900 |
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
jQuery('.outdated-diff-comment-container').each(function(e){jQuery(this).addClass('open')}) |
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
#Adding external services report to track FIRST hydra request | |
# Adding concept to DependencyDetection to ban some dependencies that were added | |
# | |
module DependencyDetection | |
module_function | |
@banned_dependencies = [] | |
def flag_banned_dependency(dependency) | |
@banned_dependencies << dependency |
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
select id, category, price, actual_weight , round(avg(actual_weight) over(partition by category rows between 2 preceding and 2 following),2),sum(actual_weight) over(partition by category rows between 2 preceding and 2 following), status from (select id, primary_category_id_reference as category, round(price_cents/100.0, 2) as price, weight as actual_weight, status from order_items where status between 5 and 8 and created_at > '2013-04-01' order by category, price_cents desc limit 1000) a; |
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
jQuery("input[name='reportID']").each(function(i){if(i>=4){jQuery.ajax({ type: "POST", url: "https://www.amazon.com/gp/b2b/reports/delete-report", data: "reportID=" + this.value + "&delete-report.x=6&delete-report.y=7"})};}) |
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
[alias] | |
fetch-tags = fetch --tags origin | |
co = checkout | |
ci = commit | |
stat = status | |
lg = log -p | |
br = branch | |
resolved = add | |
update = remote update | |
amend = commit --amend |
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
for i in server_name; do cat ~/.ssh/id_rsa.pub | ssh username@$i.hostname.com "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"; done |
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 ruby | |
DEFAULT_ASSIGN_TO = "efrankfurt" | |
REPO = "BayRu/bayru_rails" | |
def get_branch | |
branch = `git branch`.split("\n").map(&:strip).select{|c| c =~ /^\*/}.first.gsub(/[\*\s]*/, '') | |
end | |
def determine_pull_request(client) |