Skip to content

Instantly share code, notes, and snippets.

View levifig's full-sized avatar
👀

Levi Figueira levifig

👀
View GitHub Profile
@levifig
levifig / rclone_backup.sh
Last active July 30, 2021 00:11 — forked from tdtgit/rclone_backup.sh
Rclone VPS Backup Script
#!/bin/bash
#v=1.1
TIMESTAMP=$(date +"%F-%H-%M")
SECONDS=0
BACKUP_DIR="/root/backup/$TIMESTAMP"
MYSQL=/usr/bin/mysql
MYSQL_USER=root
MYSQL_PASSWORD=YOURMYSQLPASSWORDHERE
MYSQLDUMP=/usr/bin/mysqldump
@levifig
levifig / proxmox_lxc_nfs_server.md
Created September 21, 2018 06:38 — forked from rwenz3l/proxmox_lxc_nfs_server.md
Install a NFS Server inside a LXC Container on Proxmox 5.1

Installing NFS inside LXC Container on Proxmox 5.1

Host Setup:

Create LXC Container as usual, but do not start it yet.

# Install NFS-Kernel on Host
apt install nfs-kernel-server
Verifying that "levifig.id" is my Blockstack ID. https://onename.com/levifig
@levifig
levifig / digital_ocean_setup.md
Created May 27, 2016 04:51 — forked from ChuckJHardy/digital_ocean_setup.md
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions
@levifig
levifig / gist:c2b107114f047f16b759d523c87687fa
Created April 28, 2016 11:55 — forked from scmx/upgrade-install-ruby-2-1-2-ubuntu-12-04.md
Upgrade/Install ruby 2.1.2 #ubuntu #12.04 #14.04
# Reference http://stackoverflow.com/a/18490935/2037928
# Login as root
# Install needed packages
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
# Download appropriate ruby version https://www.ruby-lang.org/en/downloads/
@levifig
levifig / README.md
Last active August 29, 2015 14:20 — forked from oodavid/README.md

Backup MySQL to Amazon S3

This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)

Sister Document - Restore MySQL from Amazon S3 - read that next

1 - Install s3cmd

this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc

### Keybase proof
I hereby claim:
* I am levifig on github.
* I am levifig (https://keybase.io/levifig) on keybase.
* I have a public key whose fingerprint is 5CC6 28F0 61B8 0B4D 44D3 498C D834 4ED0 94DD FCC9
To claim this, I am signing this object:
@levifig
levifig / Molokai.itermcolors
Created October 14, 2012 05:15
iTerm Molokai Colorscheme - Black background
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.0</real>
@levifig
levifig / Molokai.itermcolors
Created October 14, 2012 05:08 — forked from netmute/Molokai.itermcolors
iTerm Molokai Colorscheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.48771023750305176</real>
<key>Green Component</key>
<real>0.48781105875968933</real>