Skip to content

Instantly share code, notes, and snippets.

View billsuxx's full-sized avatar

David Fodor billsuxx

View GitHub Profile
<?php
/**
* Procedural drop in replacement for legacy projects using the MySQL function
*
* @author Sjoerd Maessen
* @version 0.1
*/
// Make sure the MySQL extension is not loaded and there is no other drop in replacement active
if (!extension_loaded('mysql') && !function_exists('mysql_connect')) {
/System/Library/Automator/Combine\ PDF\ Pages.action/Contents/Resources/join.py --output all.pdf *.pdf
@billsuxx
billsuxx / mixins.less
Created November 2, 2016 15:41
generateCssProperty with less
.generateCssProperty(@property,@value,@valueMobile,@breakpoint: 'sm') {
@mediaquery: 'screen-@{breakpoint}';
-:~";@{property}: @{value};";
@media(max-width: @@mediaquery) {
-:~";@{property}: @{valueMobile};";
}
}
[4329900.340193] usb 1-3: new high-speed USB device number 3 using ehci_hcd
[4329900.473157] usb 1-3: New USB device found, idVendor=0bda, idProduct=8179
[4329900.473170] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[4329900.473181] usb 1-3: Product: 802.11n NIC
[4329900.473187] usb 1-3: Manufacturer: Realtek
[4329900.473193] usb 1-3: SerialNumber: 00E04C0001
@billsuxx
billsuxx / Dockerfile
Last active August 4, 2016 14:45
docker file for flexget on libreelect
FROM container4armhf/armhf-alpine
MAINTAINER scottanyo@gmail.com
RUN apk add --update g++ \
gcc \
libffi \
libffi-dev \
libxml2 \
libxml2-dev \
@billsuxx
billsuxx / gist:05ef06fbd63298f6e0bdc76bc0b48992
Created April 11, 2016 19:18
remove directory from commit
git rm -r --cached .idea
@billsuxx
billsuxx / gist:cee58458ce2e5bb61f6a
Created March 1, 2016 09:46
Set backspace for go to the parent directory in mc. (Ubuntu)
cd ./config/mc
cp /etc/mc/mc.keymap .
mcedit mc.keymap
# CdParentSmart = backspace
@billsuxx
billsuxx / flexget.service
Created December 31, 2015 16:27 — forked from morfie/flexget.service
/lib/systemd/system/flexget.service
[Unit]
Description=Flexget Daemon
After=network.target
[Service]
Type=simple
User=osmc
UMask=000
ExecStart=/usr/local/bin/flexget daemon start
ExecStop=/usr/local/bin/flexget daemon stop
# stop apache
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
brew install \
mc \
git \
homebrew/php/php55-opcache \
php55-apcu \
php55-memcache \
php55-memcached \
PHP_AUTOCONF="/usr/local/bin/autoconf"
export PS1='\[\033[1;31m\]\u\[\033[0m\]\[\033[1;37m\]@\[\033[0m\]\[\033[1;34m\]\h\[\033[0m\] \[\033[1;33m\]\d \A\[\033[0m\] \[\033[1;32m\]\w\[\033[0m\] \[\033[1;31m\]\$\[\033[0m\] '
# ----------------------
# Git Aliases
# ----------------------
alias ga='git add'
alias gaa='git add .'