Skip to content

Instantly share code, notes, and snippets.

View bitmorse's full-sized avatar
👋

Sam Sulaimanov bitmorse

👋
View GitHub Profile
@defulmere
defulmere / settings.py
Last active November 14, 2024 02:00
How to override an old sqlite3 module with pysqlite3 in django settings.py
# ⚠️ USE AT YOUR OWN RISK
# first: pip install pysqlite3-binary
# then in settings.py:
# these three lines swap the stdlib sqlite3 lib with the pysqlite3 package
__import__('pysqlite3')
import sys
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
DATABASES = {
==========================
How Software Companies Die
==========================
- Orson Scott Card
The environment that nurtures creative programmers kills management and
marketing types - and vice versa.
Programming is the Great Game. It consumes you, body and soul. When
you're caught up in it, nothing else matters. When you emerge into
@arrawatia
arrawatia / install_emacs.sh
Last active April 5, 2018 22:21
emacs 24.4 on ubuntu 10.04
#!/bin/bash
cd /tmp && \
mkdir emacs-src && cd emacs-src && \
wget http://mirror.team-cymru.org/gnu/emacs/emacs-24.4.tar.gz && \
tar xvf emacs-24.4.tar.gz && \
sudo apt-get -yy install build-essential && \
sudo apt-get -yy build-dep emacs24 && \
cd emacs-24.4 && \
./configure && \
make && \
@hlung
hlung / How to connect PS3 controller to a Mac or PC.md
Last active July 22, 2024 21:41
How to connect PS3 controller to a Mac or PC

How to connect PS3 controller to a Mac or PC

This is how you connect PS3 controller to Mac OSX, PC, etc. when previously connected to a PS3. You will need a Mini USB cable. Overcome your laziness, get up of your chair, and go get one!

A big misconception is that keep holding PS button will reset the controller's pairing. It DOES NOT! From my testings, the controller keeps paring with the last machine it was CONNECTED VIA A USB CABLE.

Here are the steps: