Skip to content

Instantly share code, notes, and snippets.

View stuart-haas's full-sized avatar

Stuart Haas stuart-haas

  • @Scope-Dev-Team
  • United States
View GitHub Profile

(a gist based on the old toolmantim article on setting up remote repos)

To collaborate in a distributed development process you’ll need to push code to remotely accessible repositories.

This is somewhat of a follow-up to the previous article setting up a new rails app with git.

For the impatient

Set up the new bare repo on the server:

@ckunte
ckunte / mycip.py
Created February 8, 2011 17:17
Make your own cipher and use it to generate your custom password.
#!/usr/bin/env python
# encoding: utf-8
"""
Make your own cipher and use it to
generate your custom password.
1. Think of a phrase that you love.
2. Encode it with your custom cipher.
3. Use it as your password.
@rsanchez
rsanchez / ext.cartthrob_example_extension.php
Created June 21, 2011 14:32
An example extension for CartThrob
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Cartthrob_example_extension_ext
{
public $settings = array();
public $name = 'CartThrob Example Extension';
public $version = '1.0.0';
public $description = 'CartThrob Example Extension';
public $settings_exist = 'n';
public $docs_url = 'http://cartthrob.com/';
@chrisjlee
chrisjlee / helpers.css
Created September 23, 2011 14:10
CSS Helpers - Styles to put at the end of your stylesheet that accomplish common tasks
/*****************************************
Required: Do Not Modify
******************************************/
/**
* Clearfix Helpers 0.5.0
* by Chris J. Lee
*
* These are primarily tools to reduce
* the amount of style rewriting. These
var application_root = __dirname,
express = require("express"),
path = require("path"),
mongoose = require('mongoose');
var app = express.createServer();
// database
mongoose.connect('mongodb://localhost/ecomm_database');
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@coolaj86
coolaj86 / gist:2332953
Last active April 2, 2020 04:17
Dimensions for VistaPrint business cards
Standard
Bleed Margin: 90mm x 52mm
Content Ends: 87mm x 49mm
Imperial
Bleed Margin: 3.54in x 2.05in
Content Ends: 3.43in x 1.93in
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@orenitamar
orenitamar / country_codes.json
Created July 30, 2012 15:04
Two letter country code mapping, grouped by continent/region
{
"europe": {
"va": "vatican city",
"ch": "switzerland",
"ad": "andorra",
"ee": "estonia",
"is": "iceland",
"am": "armenia",
"al": "albania",
"cz": "czech republic",
@jeromecoupe
jeromecoupe / craftcms .gitignore
Last active September 21, 2020 10:38
craftcms .gitignore (craft 3)
# Craft
# --------------------------
/.env
/vendor/
# files generated by build process
/web/dist/
# user uplodaded files
/web/uploads/
# DB Dumps