This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| [user] | |
| name = [name for commits] | |
| email = [email for commits] | |
| [github] | |
| user = [GH username] | |
| token = [API token from https://github.com/account/admin] | |
| [color] | |
| ui = auto | |
| interactive = auto | |
| [push] |
| #!/usr/bin/env bash | |
| # PARAMETERS | |
| # ---------- | |
| # PHP | |
| # --- | |
| PHP_TIMEZONE="UTC" | |
| PHP_DIRECTORY="/etc/php5ts" | |
| PHP_VERSION="5.6.5" |
| #!/bin/bash | |
| # | |
| # The MIT License (MIT) | |
| # | |
| # Copyright (c) 2014 Mathias Leppich <[email protected]> | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| #!/bin/bash | |
| ######################################### | |
| # | |
| # This script enables apache virtual hosts | |
| # by creating symlinks in | |
| # | |
| # /etc/apache2/sites-enabled | |
| # | |
| # that point to vhost conf files in | |
| # |
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Http\Response; | |
| use Symfony\Component\DomCrawler\Crawler; | |
| class PjaxMiddleware |
| #!/bin/bash | |
| #================================================================ | |
| # Let's Encrypt renewal script for Apache on Ubuntu/Debian | |
| # @author Erika Heidi<[email protected]> | |
| # Usage: ./le-renew.sh [base-domain-name] | |
| # More info: http://do.co/1mbVihI | |
| #================================================================ | |
| domain=$1 | |
| le_path='/opt/letsencrypt' | |
| le_conf='/etc/letsencrypt' |
| crontab() { | |
| crontab_usage() { | |
| echo 'Usage:' >&2 | |
| echo ' $ crontab -[elr]' >&2 | |
| echo ' $ crontab ~/crons # to update your crons' >&2 | |
| } | |
| if [ $# -eq 1 ]; then | |
| if [ "$*" = '-' ]; then # worse than crontab -e | |
| crontab_usage |
| You'll find that getting QT to play nicely on Lion is less than intuitive and painful much less getting all of the Eric IDE pre-requisites working, as well. In a effort to ease your pains, here's the steps that I went through: | |
| btw, these instructions are assuming you have an Intel Mac (I doubt Lion supports PowerPC, though). | |
| Xcode | |
| - What developer hasn't installed Xcode on his Mac, yet?!? | |
| - Xcode has the build tools that everything needs so you'll need this. | |
| Python | |
| - I think the OS X version of Python will work but I used python2.7 from Homebrew |
| #!/usr/bin/env python3 | |
| # Simple python code to show how easy it is to generate | |
| # a Bitcoin address using Python. | |
| # Does not store or export the private key! | |
| # Implemented according to https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses | |
| import ecdsa |