Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
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
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Created: 2010/12/05 | |
// Updated: 2018/09/12 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
// |
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 csv | |
from github2.client import Github | |
# api settings for github | |
git_username = 'your_git_username' | |
git_api_token = 'your_git_api_token' | |
git_repo = 'username/repo_name' | |
# import all issues as this story type | |
pivotal_story_type = 'Bug' |
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
CREATE TABLE errorLog ( | |
Timestamp, | |
IP, | |
Line, | |
ErrorMessage, | |
URL, | |
Cookies, | |
UserAgent, | |
Plugins, |
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
This playbook has been removed as it is now very outdated. |
This combines the instructions on a few different tutorials:
- Tabula EC2 AMI quickstart - A nice illustrated How-To for a basic EC2 setup, including permissions setup. The instructions apply to a specific demo app but apply to any EC2 usage
- Code by Zack » Getting RVM set up on Amazon EC2 - How to install the latest stable version of Ruby (1.9.3p392) with RVM
- Code by Zack » Setting up Passenger with rvm on Ubuntu - Installing Passenger and using it to set up nginx. The instructions at the end of Zack's guide on creating an init script apply to Ubuntu only.
- [Slicehost Articles: Cen
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
sudo apt-get update | |
sudo apt-get install libfreetype6 libfreetype6-dev libfontconfig | |
# /etc/apt/sources.list should contain these: | |
# deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse | |
# deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse | |
# deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse | |
# deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse | |
sudo echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections |
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
/* | |
* Basic implementation of methods needed to receive swiped credit card data with javascript. | |
* | |
* NOTE: PCI compliance specifies that card data must never be stored in an unencrypted manner, and | |
* only certain pieces of card data can be stored persistently. Ensure that output logging is NOT | |
* stored persistently when using this file, as it contains console.log messages that are intended | |
* to educate the user, and these messages contain data that may compromise your PCI compliance posture. | |
* | |
* If you choose to use any of this code with real credit card data, it is your responsibility | |
* to remove all log statements, output, or other code that may serve to persist offending information. |
Update: feeling adventurous? Clone or fork the xkcd clock! If you just want to see it in action or get a glimpse of how it works, keep reading.
The date in [xkcd's comic number 1340][1] [does not change][2].
OlderNewer