Skip to content

Instantly share code, notes, and snippets.

@lenciel
lenciel / _syntax.diff
Last active August 29, 2015 14:01
diff before and after gist render sass fix
diff --git a/46501e4:sass/partials/_syntax.scss b/02b0441:sass/partials/_syntax.scss
index 137d475..5465286 100644
--- a/46501e4:sass/partials/_syntax.scss
+++ b/02b0441:sass/partials/_syntax.scss
@@ -22,10 +22,6 @@
@include border-radius(0);
}
-.line-data {
- font-size: 13px;
@lenciel
lenciel / sentry.conf.py
Created September 4, 2014 14:37
sentry configuration file
# This is the configuration file for sentry used by lenciel@gmail.com.
# It's actually nothing special but a django settings file so you may put items like "ALLOWED_HOSTS" in it.
from sentry.conf.server import *
import os.path
CONF_ROOT = os.path.dirname(__file__)
DATABASES = {
@lenciel
lenciel / supervisord
Created September 4, 2014 14:41
/etc/init.d/ script for supervisor on ubuntu
#! /bin/sh
# Makre sure you have the correct path set for:
# DAEMON=/usr/local/bin/supervisord
# SUPERVISORCTL=/usr/local/bin/supervisorctl
#
#
### BEGIN INIT INFO
# Provides: supervisor
# Required-Start: $remote_fs $network $named
@lenciel
lenciel / test.html
Created July 25, 2012 03:01
Test the gist bookmarklet
A Sample Post
Hello there! This is a sample post for gist.io, a super-lightweight writing soapbox for hackers.
Now look up. Further. Above the post title. See that grey text with the gist ID?
Now back to me. That grey text is a link! Open that sucker in a new tab to see the source for this post. Also, I'm on a horse.
This is a major heading
@lenciel
lenciel / gist:3462897
Last active October 9, 2015 07:38 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@lenciel
lenciel / gist:3726049
Created September 15, 2012 02:06
Check and lock your password on Mac OSX

Check and lock your password on Mac OSX

Check, check

In the terminal, type:
security dump-keychain -d ~/Library/Keychains/login.keychain

If your passwords starts printing out right away, that means anyone using your computer can see all your passwords.

If you’ve seen enough passwords, type Control+C in your terminal to stop it.

@lenciel
lenciel / gist:3958996
Created October 26, 2012 14:03
Line ending on different os.

Running a python script using:

python <file_name>.py

is always ok but trying to run it directly:

./<file_name>.py

You might see error messages. This is because each OS/system uses a different line termination character:

@lenciel
lenciel / gist:4105165
Created November 18, 2012 13:07
Workflow of panes in sublime text2
[
{
"keys": ["super+alt+left"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.33, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
@lenciel
lenciel / gist:4105402
Created November 18, 2012 13:56
Running Pow with ApacheNew
$ curl get.pow.cx/uninstall.sh | sh #if you have pow installed
$ echo 'export POW_DST_PORT=88' >> ~/.powconfig
$ sudo curl https://raw.github.com/gist/1058580/zzz_pow.conf -o /private/etc/apache2/other/zzz_pow.conf
$ sudo apachectl restart
$ curl get.pow.cx | sh
@lenciel
lenciel / AndroidManifest
Created December 19, 2012 06:40
Make my Android app installed by default to the device’s external storage
<android xmlns:android="http://schemas.android.com/apk/res/android">
<tool-api-level>8</tool-api-level>
<manifest android:installLocation="preferExternal">
<uses-sdk android:minSdkVersion="7" />
</manifest>
</android>