Skip to content

Instantly share code, notes, and snippets.

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 18, 2024 06:38
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

anonymous
anonymous / config.json
Created January 23, 2015 14:04
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#FF6600",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@douglasmiranda
douglasmiranda / option1.py
Last active April 25, 2024 09:10
Fix: Django Debug Toolbar not showing when using with Docker.
# YOU MAY WANT TO CHECK THIS OUT: https://github.com/douglasmiranda/ddpt/blob/master/{{cookiecutter.django_project_name}}/{{cookiecutter.django_project_name}}/config/local.py
# If you don't do this you will have to add the host IP in INTERNAL_IPS = ('127.0.0.1',)
# And it will change, then you will have to change INTERNAL_IPS again.
def show_toolbar(request):
if request.is_ajax():
return False
return True
@julionc
julionc / 00.howto_install_phantomjs.md
Last active November 6, 2024 15:45
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
print("hello world")
@robinsmidsrod
robinsmidsrod / ubuntu-live-1204-amd64-beta2.ipxe
Created April 23, 2012 10:30
Booting the Ubuntu 12.04 beta x64 LiveCD with iPXE
:ubuntu-live-1204-amd64-beta2
# See http://manpages.ubuntu.com/manpages/oneiric/man7/casper.7.html for casper cmdline details
echo Booting Ubuntu Live 12.04 beta2 x64 for ${initiator-iqn}
set base-url http://boot.smidsrod.lan/ubuntu-12.04-amd64-desktop-beta2
kernel ${base-url}/casper/vmlinuz
initrd ${base-url}/casper/initrd.lz
imgargs vmlinuz root=/dev/nfs boot=casper netboot=nfs nfsroot=10.1.1.10:/raid/boot/ubuntu-12.04-amd64-desktop-beta2 locale=en_US console-setup/layoutcode=no
boot || goto failed