Skip to content

Instantly share code, notes, and snippets.

View fchevitarese's full-sized avatar

Frederico Rodrigues Chevitarese fchevitarese

  • Vila Velha
  • 17:34 (UTC -03:00)
View GitHub Profile
@fchevitarese
fchevitarese / mongodb-s3-backup.sh
Created March 29, 2018 15:36 — forked from eladnava/mongodb-s3-backup.sh
Automatically backup a MongoDB database to S3 using mongodump, tar, and awscli (Ubuntu 14.04 LTS)
#!/bin/sh
# Make sure to:
# 1) Name this file `backup.sh` and place it in /home/ubuntu
# 2) Run sudo apt-get install awscli to install the AWSCLI
# 3) Run aws configure (enter s3-authorized IAM user and specify region)
# 4) Fill in DB host + name
# 5) Create S3 bucket for the backups and fill it in below (set a lifecycle rule to expire files older than X days in the bucket)
# 6) Run chmod +x backup.sh
# 7) Test it out via ./backup.sh
@fchevitarese
fchevitarese / boto_dynamodb_methods.py
Created May 25, 2018 02:50 — forked from martinapugliese/boto_dynamodb_methods.py
Some wrapper methods to deal with DynamoDB databases in Python, using boto3.
# Copyright (C) 2016 Martina Pugliese
from boto3 import resource
from boto3.dynamodb.conditions import Key
# The boto3 dynamoDB resource
dynamodb_resource = resource('dynamodb')
def get_table_metadata(table_name):
@fchevitarese
fchevitarese / autoexec.cfg
Created January 30, 2019 12:56 — forked from oswaldoacauan/autoexec.cfg
CS:GO - Useful binds
// Some useful binds for CS:GO
// ===================
// Launch Options: -console -novid -high -tickrate 128 -freq 144 +exec autoexec.cfg
// by Lamarkz
// Show damage given in the console
// ===================
developer "1"
con_filter_text "Damage given"
con_filter_text_out "Player:"