Skip to content

Instantly share code, notes, and snippets.

View HarryRybacki-zz's full-sized avatar

Harry Rybacki HarryRybacki-zz

  • Red Hat
  • Raleigh, NC
View GitHub Profile
@tempusfrangit
tempusfrangit / Dockerfile
Last active September 10, 2018 23:25
Keystone Docker Dev
FROM ubuntu:16.04
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -yq dist-upgrade
RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq curl python3-dev python-software-properties curl apt-transport-https build-essential git
RUN curl https://bootstrap.pypa.io/get-pip.py | python3
RUN pip install bindep
RUN pip install tox
ADD ./${OS_PROJECT:-keystone}/bindep.txt /opt/bindep.txt
ADD ./${OS_PROJECT:-keystone}/requirements.txt /opt/requirements.txt
http://zzamboni.org/new/blog/moving-files-between-git-repositories-preserving-history/
http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/
10186 git clone https://github.com/openstack/tripleo-quickstart.git /tmp/tmp-repo
10187* history | grep filter-branch
10190* git remote remove origin
10191* git filter-branch --subdirectory roles/tripleo/overcloud -- --all
10192* git filter-branch --subdirectory-filter roles/tripleo/overcloud -- --all
10194 git remote add tmp-repo file:///tmp/tmp-repo
10195 git pull tmp-repo master
@bishboria
bishboria / springer-free-maths-books.md
Last active June 8, 2024 06:39
Springer made a bunch of books available for free, these were the direct links
@samchrisinger
samchrisinger / limits.sh
Last active August 29, 2015 14:19
Script for fixing "Too many open files" with Mongodb
#!/bin/bash
sudo launchctl limit maxfiles 8096 8096
sudo launchctl limit maxproc 8096 8096
ulimit -n 8096
ulimit -u 1024
@jzempel
jzempel / application:__init__.py
Created July 29, 2012 20:37
Flask with Celery 3.0
from blueprint import example
from extensions import mail
from flask import Flask
import settings
def create_app(settings=settings):
ret_val = Flask(__name__)
ret_val.config.from_object(settings)
# initialize extensions...
@raullenchai
raullenchai / pyAES.py
Created June 12, 2012 20:52
Python AES implementation (pasted from http://brandon.sternefamily.net/files/pyAES.txt)
#!/usr/bin/python2.5
# Copyright (c) 2007 Brandon Sterne
# Licensed under the MIT license.
# http://brandon.sternefamily.net/files/mit-license.txt
# Python AES implementation
import sys, hashlib, string, getpass
from copy import copy
from random import randint