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
server { | |
listen 80; | |
server_name watusi.inside.ap.org; | |
root /mnt/share_STG/rack_apps/watusi/current/public; | |
passenger_ruby /home/interact/.rvm/wrappers/ruby-1.9.3-p448/ruby; | |
passenger_enabled on; | |
rails_env production; | |
access_log /var/log/nginx/watsui.access.log; |
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 | |
pdf_files=(*.pdf) | |
n=1000 | |
count=0 | |
for ((i=0; i < ${#pdf_files[@]}; i+=n)); do | |
count=$((count+1)); | |
# UPDATE DIRECTORY NAME, AS NEEDED | |
pdfjam "${pdf_files[@]:i:n}" -o ../FINAL-COMBINED/inbox/"$i".pdf | |
; |
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 | |
# Quick-and-dirty script that moves HTML files produced by Thunderbird | |
# into year/month directories; | |
#TODO: Update script to be more memory-efficient | |
require 'fileutils' | |
# COMMENTING THIS OUT. WE NEED TO UPDATE IMPLEMENTATION | |
# TO ONLY CREATE FOLDERS FOR MONTHS WHERE EMAIL EXISTS#years = (2010..2014).to_a.collect { |year| year.to_s } | |
#months = (1..12).to_a.collect { |num| num.to_s.rjust(2,'0') }#years.each do |year| |
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
>>> import sys,pprint | |
>>> pprint.pprint(sys.path) | |
['', | |
'/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg', | |
'/Library/Python/2.7/site-packages/six-1.8.0-py2.7.egg', | |
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', | |
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', | |
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', | |
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', | |
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', |
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
# Made a series of db updates to repositories table so that values would match those of newly created repos | |
UPDATE `redmine_production`.`repositories` SET `root_url`='repositories/ap-deploy.git', `type`='Repository::Xitolite' WHERE `id`='92'; | |
UPDATE `redmine_production`.`repositories` SET `url`='repositories/ap-deploy.git' WHERE `id`='92'; | |
UPDATE `redmine_production`.`repositories` SET `identifier`='' WHERE `id`='92'; | |
UPDATE `redmine_production`.`repositories` SET `path_encoding`='' WHERE `id`='92'; |
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
redmine/current$ grep -r redcarpet * | |
Gemfile: # TODO: upgrade to redcarpet 3.x when ruby1.8 support is dropped | |
Gemfile: gem "redcarpet", "~> 2.3.0" | |
Gemfile.lock: redcarpet (2.3.0) | |
Gemfile.lock: redcarpet (~> 2.3.0) | |
lib/redmine.rb: require 'redcarpet' unless Object.const_defined?(:Redcarpet) | |
plugins/redmine_git_hosting/Gemfile:gem 'redcarpet', '~> 3.1.2' | |
plugins/redmine_git_hosting/Gemfile:# gem 'redcarpet', '~> 2.3.0' | |
plugins/redmine_git_hosting/gemfiles/rails3.gemfile:gem 'redcarpet', '~> 2.3.0' | |
plugins/redmine_git_hosting/gemfiles/rails4.gemfile:gem 'redcarpet', '~> 3.1.2' |
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
```bash | |
/home/git/.gitolite/keydir/ | |
|-- git.pub | |
`-- redmine_git_hosting | |
`-- redmine_stumgoren_25 | |
`-- redmine_stumgoren | |
`-- redmine_stumgoren_25.pub | |
``` |
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
# gitolite start | |
command="/home/git/bin/gitolite-shell git",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzySpK/jKX7gNSaa9BrXPXkQixDTOexHR6rpzTRjG2aeP2MB0haowKNEEqG0OzxCTPF4pET6fSqH6H502GnGn7/xUh5FgwQnZXe0CmExKbAlZRa3N1T2rKwHfjBmmBn6nr1izBLjMa8n5JGKZgiXx+n7fitQZejtq6UOkIbWg/kLh/YiIDYRXfAvbLmb5XjBkSc2+zLF+zlN4wgkixX9efz7NhFS+sncsWKxD9ph5I5Hk6RL83ohy/CYwg5sUUWoxDim5vr5+o8zAwg+KezL6gk5ktJiuuBzXZWE7kbXCuVSVcyWPjzo7YMsWMfsscfGZ6AY9NFZqRTsZAA8zbRmfqQ== interact@ctcinteract-admin01.ap.org# gitolite end | |
# ADDING BELOW MANUALLY TO GITOLITE SECTION ABOVE FIXES GIT CLONE/PUSH/PULL ACCESS | |
#command="/home/git/bin/gitolite-shell git",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArY17Lgg+4ik9me4V/cpOfn+//yXWUMneiS1TOvXEXYL2tiMDNtGO68sG6sbcmzD36O32Gtfk6mwAM2LSk971ZBBIMIpO1J9pNXJiBUmgSVwCiaU8ulQBQDVq0otDE8WkLBlsHbW73m1AXCvwW1fFFk2QTZ1AHjB747Iv94f0qB4ZK7c1mF08ZnWHs6ggsZIKy7FAUjqRGC2hDIKj0K82cipenKpr+fyRkzenTipoBOthXC6Cin |
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
2015-04-06.16:18:04 12304 ssh ARGV=git SOC=info FROM=127.0.0.1 | |
2015-04-06.16:18:04 12304 die unknown git/gitolite command: 'info' | |
2015-04-06.16:18:04 12334 ssh ARGV=git SOC=info FROM=127.0.0.1 | |
2015-04-06.16:18:04 12334 die unknown git/gitolite command: 'info' | |
2015-04-06.16:18:04 12407 ssh ARGV=git SOC=info FROM=127.0.0.1 | |
2015-04-06.16:18:04 12407 die unknown git/gitolite command: 'info' | |
2015-04-06.16:18:04 12432 ssh ARGV=git SOC=info FROM=127.0.0.1 | |
2015-04-06.16:18:04 12432 die unknown git/gitolite command: 'info' | |
2015-04-06.16:18:04 12457 ssh ARGV=git SOC=info FROM=127.0.0.1 | |
2015-04-06.16:18:04 12457 die unknown git/gitolite command: 'info' |
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
# -*- coding: utf-8 -*- | |
from bs4 import BeautifulSoup | |
import urllib2 | |
import csv | |
import re | |
# NOTE: using live URL sted of locally cached file | |
URL = "http://cpms.dfa.state.nm.us/doShowAppropriations.aspx?pid=10-1100" | |
page = urllib2.urlopen(URL) | |
html = page.read() |
OlderNewer