Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
require 'formula' | |
class Huggle3 < Formula | |
homepage 'https://en.wikipedia.org/wiki/Wikipedia:Huggle' | |
head 'https://github.com/huggle/huggle3-qt-lx.git' | |
sha1 '15072960560b963ab317b2088ff8951f8c5287ae' | |
depends_on 'qt' | |
def install |
# -*- coding: utf-8 -*- | |
from django.views.generic import ListView | |
class SortableListView(ListView): | |
allowed_sort_fields = () | |
sort_default = None | |
sort_key = 'sort' | |
sort_field_splitter = '-' | |
sort_ascending_postfix = 'up' | |
sort_descending_postfix = 'down' |
#!/usr/bin/env python | |
# pylint: disable=W0622 | |
# Copyright (c) 2006 Allan Saddi <[email protected]> | |
# Copyright (c) 2011 Vladimir Rusinov <[email protected]> | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions | |
# are met: |
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
@black: #002b36; | |
@grayDarker: #586e75; | |
@grayDark: #657b83; | |
@gray: #839496; | |
@grayLight: #93a1a1; | |
@grayLighter: #eee8d5; | |
@white: #fdf6e3; | |
@blue: #2aa198; | |
@blueDark: #268bd2; |
brew update | |
brew versions FORMULA | |
cd `brew --prefix` | |
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
brew install FORMULA | |
brew switch FORMULA VERSION | |
git checkout -- Library/Formula/FORMULA.rb # reset formula | |
## Example: Using Subversion 1.6.17 | |
# |
Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
.DS_Store | |
*.log | |
tmp/ |
#!/bin/bash | |
cat .gitignore | egrep -v "^#|^$" | while read line; do | |
if [ -n "$line" ]; then | |
OLD_IFS=$IFS; IFS="" | |
for ignored_file in $( git ls-files "$line" ); do | |
git rm --cached "$ignored_file" | |
done | |
IFS=$OLD_IFS | |
fi |