Skip to content

Instantly share code, notes, and snippets.

View behconsci's full-sized avatar
👨‍💻
coding the shit ouf of ideas

Doniyor Jurabayev behconsci

👨‍💻
coding the shit ouf of ideas
  • Humanity
  • Virgo Supercluster, Local Group, the Milky Way, ..., Earth
View GitHub Profile
@stephenhardy
stephenhardy / git-clearHistory
Created April 26, 2013 22:14
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
@ihor
ihor / install-rabbitmq-on-amazon-linux.sh
Last active June 22, 2024 15:39
Install RabbitMQ on Amazon Linux
# Modify /etc/yum.repos.d/epel.repo. Under the section marked [epel], change enabled=0 to enabled=1.
sudo yum install erlang --enablerepo=epel
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.1/rabbitmq-server-3.1.1-1.noarch.rpm
sudo rpm -Uvh rabbitmq-server-3.1.1-1.noarch.rpm
# Enable managament plugin
sudo rabbitmq-plugins enable rabbitmq_management
@vladimirtsyupko
vladimirtsyupko / gist:10964772
Created April 17, 2014 08:32
Git force pull to overwrite local files
git fetch --all
git reset --hard origin/master
git pull origin master
@AndreasDickow
AndreasDickow / imagetools.py
Created August 11, 2017 08:59
PIL EXIF Fix for all 9 orientations
EXIF_ORIENTATION = 0x0112
def _orientation(image):
ret = {}
try:
info = image._getexif()
if info:
for tag, value in info.items():
decoded = TAGS.get(tag, tag)