Skip to content

Instantly share code, notes, and snippets.

Avatar
🇺🇦
#StandWithUkraine

Levi Figueira levifig

🇺🇦
#StandWithUkraine
View GitHub Profile
@levifig
levifig / rclone_backup.sh
Last active Jul 30, 2021 — forked from tdtgit/rclone_backup.sh
Rclone VPS Backup Script
View rclone_backup.sh
#!/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 Sep 21, 2018 — forked from rwenz3l/proxmox_lxc_nfs_server.md
Install a NFS Server inside a LXC Container on Proxmox 5.1
View proxmox_lxc_nfs_server.md

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
View gist:e328e4c085721a9cf89e7b1cd03f4f7f
Verifying that "levifig.id" is my Blockstack ID. https://onename.com/levifig
@levifig
levifig / digital_ocean_setup.md
Created May 27, 2016 — forked from ChuckJHardy/digital_ocean_setup.md
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions
View digital_ocean_setup.md

DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3

Create a Droplet

SSH into Root

$ ssh root@123.123.123.123

Change Root Password

@levifig
levifig / gist:c2b107114f047f16b759d523c87687fa
Created Apr 28, 2016 — forked from scmx/upgrade-install-ruby-2-1-2-ubuntu-12-04.md
Upgrade/Install ruby 2.1.2 #ubuntu #12.04 #14.04
View gist:c2b107114f047f16b759d523c87687fa
# 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/
View 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

View gist:0f72e6262353f0920828
### 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:
View frontendDevlopmentBookmarks.md
@levifig
levifig / Molokai.itermcolors
Created Oct 14, 2012
iTerm Molokai Colorscheme - Black background
View Molokai.itermcolors
<?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 Oct 14, 2012 — forked from netmute/Molokai.itermcolors
iTerm Molokai Colorscheme
View Molokai.itermcolors
<?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>