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
  • 11:10 (UTC -04:00)
View GitHub Profile
@andre3k1
andre3k1 / LICENSE
Created March 14, 2025 18:19 — forked from yanofsky/LICENSE
A script to download all of a user's tweets into a csv
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@andre3k1
andre3k1 / Correct_GnuPG_Permission.sh
Created February 17, 2023 18:13 — forked from oseme-techguy/Correct_GnuPG_Permission.sh
This fixes the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error while using Gnupg .
#!/usr/bin/env bash
# To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error
# Make sure that the .gnupg directory and its contents is accessibile by your user.
chown -R $(whoami) ~/.gnupg/
# Also correct the permissions and access rights on the directory
chmod 600 ~/.gnupg/*
chmod 700 ~/.gnupg

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@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 \;
#!/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
<?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