Skip to content

Instantly share code, notes, and snippets.

Avatar
👁️
Focusing

Gustavo Zapico gzapico

👁️
Focusing
View GitHub Profile
@gzapico
gzapico / post_install.sh
Last active December 20, 2022 22:58 — forked from paulness/post_install.sh
Ubuntu post installation script for installing software of your choice
View post_install.sh
#!/bin/bash
curl_check ()
{
echo "Checking for curl..."
if command -v curl > /dev/null; then
echo "Detected curl..."
else
echo "Installing curl..."
apt-get install -q -y curl
@gzapico
gzapico / blockstack.md
Last active March 3, 2018 12:23
blockstack.md
View blockstack.md
@gzapico
gzapico / mysqlbackup.sh
Created June 21, 2017 16:18
MySQL bash script for backups
View mysqlbackup.sh
#!/bin/sh
DBSERVER=
DATABASE=
FILE=${DATABASE}-`date +"%Y%m%d"`
USER=
PASS=
unalias rm 2> /dev/null
rm ${FILE} 2> /dev/null
rm ${FILE}.gz 2> /dev/null
@gzapico
gzapico / keybase.md
Created June 1, 2017 09:46
keybase.md
View keybase.md

Keybase proof

I hereby claim:

  • I am gzapico on github.
  • I am gzapico (https://keybase.io/gzapico) on keybase.
  • I have a public key whose fingerprint is B823 F95A 297B AC35 5F09 3704 D842 E750 1678 71D9

To claim this, I am signing this object:

@gzapico
gzapico / twitter_cleaner.rb
Last active October 31, 2019 09:30
twitter_cleaner.rb
View twitter_cleaner.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'twitter'
require 'json'
require 'faraday'
# things you must configure
PATH_TO_DROPBOX = "/Users/your_name/Dropbox/backup/tweets/" # you need to create this folder
TWITTER_USER = "your_twitter_username"