This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get the IP address of the client. | |
* | |
* @author Arno Moonen <[email protected]> | |
* @version 0.1-201112231035 | |
* @param boolean $get_all Set to true to get an array containing all the IP addresses found. | |
* @return mixed Depending on the value of $get_all the return value will be either a string or an array | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'Form/form_div_layout.html.twig' %} | |
{# | |
Extends from Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig | |
Overrides the form_errors block so it no longer uses transchoice (which | |
was causing a problem). | |
#} | |
{% block form_errors %} | |
{% spaceless %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Easy Git Export Command | |
# Copyright (C) 2013, Arno Moonen <[email protected]> | |
# | |
# Example usage (from within a Git repository, when using the alias): | |
# git-export ~/Desktop | |
# -> Creates the exported archive on your desktop. | |
# git-export | |
# -> Creates the exported archive one level up in your path. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2013, Arno Moonen <[email protected]> | |
* | |
* Permission is hereby granted, free of charge, to any person | |
* obtaining a copy of this software and associated documentation | |
* files (the "Software"), to deal in the Software without | |
* restriction, including without limitation the rights to use, copy, | |
* modify, merge, publish, distribute, sublicense, and/or sell copies | |
* of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#usage "en: <b>Calculate the price of a dual-layer PCB if you order them at OSH Park.</b>" | |
"<p>Usage: run oshprice</p>" | |
"<p>Author: <author>Arno Moonen <[email protected]></author><br />" | |
"Version: <em>201405042026</em></p>" | |
// THIS PROGRAM IS PROVIDED AS IS AND WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED | |
void main() { | |
if(!board) { | |
// No board |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python < <(curl -s https://bootstrap.pypa.io/get-pip.py) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env | |
# Still a work in progress... | |
sudo apt-get remove -y --auto-remove --purge libx11-* | |
sudo apt-get autoremove -y --purge | |
# Run raspi config to disable boot via GUI | |
sudo raspi-config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NXP LPC1549 (based on lpc1xxx.cfg) | |
set _CHIPNAME lpc1549 | |
set _WORKAREASIZE 0x9000 | |
set _CHIPSERIES lpc1500 | |
set _BANKSIZE 0x40000 | |
source [find target/swj-dp.tcl] | |
if { [info exists CCLK] } { | |
# Allow user override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib2 | |
import re | |
import collections | |
from pushbullet.pushbullet import PushBullet | |
from time import sleep | |
base_url = 'http://192.168.1.1/' | |
pushbullet_key = 'YOUR_KEY' | |
# Set-up basic authentication |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# General options | |
# | |
# The type of line endings | |
newlines = crlf # auto/lf/crlf/cr | |
# The original size of tabs in the input | |
input_tab_size = 3 # number |
OlderNewer