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
[list] | |
format = columns |
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
#!/usr/bin/env python | |
import os | |
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "projectname.settings") | |
import django # noqa | |
django.setup() |
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
# Configuration file for jupyter-notebook. | |
#------------------------------------------------------------------------------ | |
# Application(SingletonConfigurable) configuration | |
#------------------------------------------------------------------------------ | |
## This is an application. | |
## The date format used by logging formatters for %(asctime)s | |
#c.Application.log_datefmt = '%Y-%m-%d %H:%M:%S' |
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
#!/usr/bin/env bash | |
# Create a postgres database, user, and password for a local dev app | |
psql << EOF | |
CREATE DATABASE $1; | |
CREATE USER $1 WITH PASSWORD '$1'; | |
ALTER ROLE $1 SET client_encoding to 'utf8'; | |
ALTER ROLE $1 SET default_transaction_isolation TO 'read committed'; | |
ALTER ROLE $1 SET timezone to 'UTC'; | |
GRANT ALL PRIVILEGES on DATABASE $1 to $1; |
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 database DATABASENAME; | |
grant usage on *.* to USERNAME@localhost identified by 'PASSWORD'; | |
grant all privileges on DATABASENAME.* to USERNAME@localhost ; |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\9bis.com\KiTTY\Sessions\Default%20Settings] | |
"Colour0"="77,77,76" | |
"Colour1"="234,234,234" | |
"Colour2"="250,250,250" | |
"Colour3"="0,0,0" | |
"Colour4"="214,214,214" | |
"Colour5"="214,214,214" | |
"Colour6"="142,144,140" |
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
<?php | |
/************************************************************************** | |
LICENCE | |
- You may copy and redistribute this file under the conditions: | |
1. The file is credited to lucb1e | |
2. The file remains unmodified, including this licence | |
- You may modify and redistribute this file under these conditions: | |
(This includes porting to another language.) |
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 urllib2 | |
import base64 | |
from django.utils import simplejson | |
def get_file_contents(user, repo, path): | |
url = "https://api.github.com/repos/%s/%s/contents/%s" % (user, repo, path) | |
try: | |
response = urllib2.urlopen(url) | |
except urllib2.HTTPError: |
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
startup_message off | |
shell "/bin/bash" | |
caption always "%{= kB}%-Lw%{=s kB}%50>%n%f* %t %{-}%+Lw%<" |
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
#!/usr/bin/env python | |
# Rerformat comments for transition from Vanilla1 to Vanilla 2 | |
import re | |
import MySQLdb | |
from BeautifulSoup import BeautifulSoup | |
connection = MySQLdb.connect(user='root',db='newforum', use_unicode=True) | |
select_cursor = connection.cursor() |