Skip to content

Instantly share code, notes, and snippets.

View andre3k1's full-sized avatar
🏠
Working from home

Andre Garrigo andre3k1

🏠
Working from home
  • Miami, Florida, USA
  • 20:38 (UTC -04:00)
View GitHub Profile
@andre3k1
andre3k1 / flac_to_mp3_converter.sh
Last active August 29, 2015 14:18 — forked from awnion/flac2mp3.sh
Convert lossless FLAC audio files to lossy 320kbps MP3 files, preserving ID3 meta tag info.
#!/bin/bash
# You need ffmpeg and lame utils, which you can install with homebrew: $ brew install ffmpeg lame
# Tip – Try adding this one liner to your bash profile as an alias.
find . -name "*.flac" -exec ffmpeg -i {} -acodec libmp3lame -ab 320k {}.mp3 \;
<?php
include("lib/http.php");
include("lib/parse.php");
$product_array = array();
$product_count = 0;
# Download the target web page
$target = "http://www.webbotsspidersscreenscrapers.com/buyair/";
[
{
"key": "group_543eec205dd50",
"title": "Sponsors Options",
"fields": [
{
"key": "field_543eec40c0b04",
"label": "Top Banner Sponsors",
"name": "top_banner_sponsors",
"prefix": "",
@andre3k1
andre3k1 / sunrise-calendar-icons.txt
Created January 27, 2015 21:43
An unofficial list of available icons in the Sunrise calendar app. Found any others? Let me know. http://support.sunrise.am/article/36-event-icons
airplane
airport
bank
beer
bicycle
boat
breakfast
bus
buy
cab
#!/bin/bash
function actual_path() {
if [ [ -z "$1" ] -a [ -d $1 ] ]; then
echo $(cd $1 && test `pwd` = `pwd -P`)
return 0
else
return 1
fi
}

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@andre3k1
andre3k1 / Open iTerm2 tab from Finder
Last active March 1, 2023 17:01 — forked from eric-hu/Open iterm tab here
Open iTerm2 tab from Finder here
#####
## Open iTerm2 tab from Finder
##
## Adapted from these sources:
## http://peterdowns.com/posts/open-iterm-finder-service.html
## https://gist.github.com/cowboy/905546
## Modified to work with files as well, cd-ing to their container folder
##
## Usage Instructions:
## 1) Open Automator
$ brew install mysql
==> Installing mysql dependency: openssl
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/openssl-1.0.1j.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.1j.mavericks.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl/certs
<?php
/**
* This script is for easily deploying updates to Github repos to your local server. It will automatically git clone or
* git pull in your repo directory every time an update is pushed to your $BRANCH (configured below).
*
* Read more about how to use this script at http://behindcompanies.com/2014/01/a-simple-script-for-deploying-code-with-githubs-webhooks/
*
* INSTRUCTIONS:
* 1. Edit the variables below
* 2. Upload this script to your server somewhere it can be publicly accessed
@andre3k1
andre3k1 / post-receive
Last active August 29, 2015 14:08
Push GitHub changes to Apache Web Server
#!/bin/bash
#
# This "post-receive" script receives from stdin three arguments in the form:
# <oldrev> <newrev> <refname>
#
while read oldrev newrev ref
do
branch=`echo $ref | cut -d/ -f3`
if [ "master" == "$branch" ]; then
git --work-tree=/var/www/default/public_html/ checkout -f $branch