Skip to content

Instantly share code, notes, and snippets.

View JccSanabria's full-sized avatar

Jonathan Calderon Centeno JccSanabria

  • Claro/PRT
  • Guaynabo, PR
View GitHub Profile
@naaman
naaman / delete-heroku-apps.sh
Last active March 5, 2021 20:57
[WARNING THIS WILL HARD DELETE YOUR APPS. YOU COULD LOSE DATA. MAKE SURE YOU KNOW WHAT YOURE DOING!!!!!!!!!!] Delete all heroku apps from bash terminal -- no script file required
for app in $(heroku apps); do heroku apps:destroy --app $app --confirm $app; done
@haoch
haoch / django_orm_sequence_id.py
Created November 2, 2012 10:31
django pull id from oracle sequence id
''' Django ORM don't support to pull id from sequence by default.'''
def update_id(func):
'''A decorator for pulling a data object's ID value out of a
user-defined sequence. This gets around a limitation in
django whereby we cannot supply our own sequence names.'''
def decorated_function(*args):
# Grab a reference to the data object we want to update.
data_object = args[0]
@Cheaterman
Cheaterman / .gitignore
Last active March 29, 2024 03:56
Kivy Login example
*.pyc
@fernandoaleman
fernandoaleman / install-rabbitmq-centos-7.md
Last active April 22, 2024 19:00
Install RabbitMQ on CentOS 7

Install RabbitMQ on CentOS 7

sudo yum -y install epel-release
sudo yum -y update

Install Erlang

Download repository