Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am akosednar on github.
  • I am akosednar (https://keybase.io/akosednar) on keybase.
  • I have a public key ASAjIgTJij66GEJRQxFJ0Q3yi96ryje-VFC8P3JA6GbBVgo

To claim this, I am signing this object:

@akosednar
akosednar / guide.md
Last active August 29, 2015 14:03
Codewall provisioning script didnt run

The issue is having to do with bundler not being installed/available to the provisioning script. As a result of this, everything is messed up when the vm is setup.

If the vagrant provisioning script does not run try the following:

  1. Start with a fresh vagrant box (so vagrant destroy your current if one is already up) and then start it with vagrant up
  2. Login to the box with vagrant sshand run rvm install 2.1.0
  3. After, run the following commands found below (which is basically the provisioning script). I ran them line by line but it might work if you just run it as a bash file.
export DEBIAN_FRONTEND=noninteractive
@akosednar
akosednar / open-congress-state-sync.rb
Last active August 29, 2015 14:00
Contact-Congress Form Test & Issue Sync
#
# Name: Contact-Congress Form Test & Issue Sync
# Description: Keeps the form test status and issue states for [Open Congress](http://theunitedstates.io/contact-congress/) in sync
# Author: Anthony Kosednar (@akosednar)
# License: [CC0 1.0 Universal (C0 1.0) Public Domain Dedication](http://creativecommons.org/publicdomain/zero/1.0/)
#
# Usage Notes:
# - Required Gem: github_api gem
# - Required Actions: Setup two ENV variables: GITHUB_USERNAME , and GITHUB_PERSONAL_ACCESS_TOKEN (Tokens can be created here: https://github.com/settings/applications)
#
sudo apt-get update && apt-get install git-core curl build-essential openssl libssl-dev
git clone https://github.com/joyent/node.git
cd node
# 'git tag' shows all available versions: select the latest stable.
git checkout enter-a-version
# Configure seems not to find libssl by default so we give it an explicit pointer.
# Optionally: you can isolate node by adding --prefix=/opt/node
@akosednar
akosednar / pgp-noc
Created July 29, 2012 03:55
PGP Public key
Key ID: D1EFB149
Key type: RSA
Key size: 2048
Fingerprint: 5CBA 3A61 D424 39C5 031D 93D6 F6F4 8AF5 D1EF B149
User ID: noc@lockerhub.com
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBFAUsGwBCADqCLXjZsc7gEm4G/CqJBziQKcp0jyXROAgZFPGIgqkepOUHiT5
42syDavmNQfh0NpJCi+tJEE3/QWPBzfzhT3otRolZbrKJNJfYVROprLD2sl/9F4R
@akosednar
akosednar / .htaccess
Created December 23, 2011 09:49
Force SSL Apache
<IfModule mod_rewrite.c>
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>