Skip to content

Instantly share code, notes, and snippets.

@swilla
swilla / awesome-php.md
Created September 25, 2012 13:22 — forked from ziadoz/awesome-php.md
Awesome PHP Libraries

Awesome PHP Libraries

A list of amazingly awesome PHP libraries that you should be using:

@swilla
swilla / Default (Linux).sublime-keymap
Created November 15, 2012 12:47 — forked from coldnebo/Default (Linux).sublime-keymap
simple scripts to prettify your xml and json in sublime text 2
[
{ "keys": ["ctrl+shift+x"], "command": "tidy_xml" },
{ "keys": ["ctrl+shift+j"], "command": "prettify_json" }
]
<!DOCTYPE html>
<html>
<head>
<title>Tournament Bracket Generator</title>
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://underscorejs.org/underscore-min.js"></script>
<script>
$(document).on('ready', function() {
var knownBrackets = [2,4,8,16,32], // brackets with "perfect" proportions (full fields, no byes)
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
@swilla
swilla / gist:5214093
Created March 21, 2013 15:49
Radius search
$params = array();
$params['range'] = 10; //Miles
$params['zip'] = 19711; //Zip Code
//Get Lat,Lon from specified zip
$query = $this->db->query("SELECT lat,lon FROM default_zip_code WHERE zip_code=".$params['zip']);
if ($query->num_rows() > 0)
{

Awesome PHP Libraries

A list of amazingly awesome PHP libraries that you should consider using (and some other shiny extras).

### Keybase proof
I hereby claim:
* I am swilla on github.
* I am swilla (https://keybase.io/swilla) on keybase.
* I have a public key whose fingerprint is E5FE 6219 4FD2 333D 09B7 C6E4 6123 C3B2 9D64 510E
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am swilla on github.
  • I am swilla (https://keybase.io/swilla) on keybase.
  • I have a public key ASDds_0Dlh9aE3DxPzNKQLk4V_kjxiOJTDyLptGPHv9VqAo

To claim this, I am signing this object:

@swilla
swilla / clean-up-boot-partition-ubuntu.md
Created April 22, 2019 01:42 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r