Skip to content

Instantly share code, notes, and snippets.

View eshleebien's full-sized avatar

Esh Romero eshleebien

View GitHub Profile
rds-modify-db-parameter-group {param-group-name} \
--parameters="name=character_set_server, value=utf8, method=pending-reboot" \
--parameters="name=collation_server, value=utf8_general_ci, method=pending-reboot" \
--parameters="name=tmp_table_size, value={DBInstanceClassMemory/16}, method=pending-reboot" \
--parameters="name=max_heap_table_size, value={DBInstanceClassMemory/16}, method=pending-reboot" \
--parameters="name=query_cache_type, value=1, method=pending-reboot" \
--parameters="name=query_cache_size, value=131072, method=pending-reboot" \
--parameters="name=table_open_cache, value=2500, method=pending-reboot" \
--parameters="name=join_buffer_size, value={DBInstanceClassMemory/64}, method=pending-reboot" \
--parameters="name=thread_cache_size, value={DBInstanceClassMemory/12582880}, method=pending-reboot" \
@eshleebien
eshleebien / my.cnf
Created April 30, 2015 04:30
my mysql configuration
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
[mysqld]
collation-server = utf8_unicode_ci
@eshleebien
eshleebien / vimrc configuration
Last active June 26, 2018 07:32
vimrc configuration
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#begin()
" Let Vundle manage Vundle
Plugin 'gmarik/vundle'
Plugin 'tpope/vim-sensible'
Plugin 'tpope/vim-surround'
@eshleebien
eshleebien / goto_rewrite_rules.py
Last active September 16, 2015 03:18
Retrieve all rewrite rules in goto.tm .htaccess
import fileinput
import datetime
import pymongo
import time
import re
from pymongo import MongoClient
content = []
new_rules = []
@eshleebien
eshleebien / Positive.cpp
Created August 31, 2015 11:56
Leki's assignment?
//
// main.cpp
// Positive
//
// Created by Eshlee Romero on 8/31/15.
// Copyright (c) 2015 Eshlee Romero. All rights reserved.
//
#include <iostream>
#include<curses.h>
@eshleebien
eshleebien / Flames.cpp
Last active September 3, 2015 16:33
Leki's notes
// Inlude libraries
#include<stdio.h>
#include<ctype.h>
#include<string.h>
/*
* global variables
*/
char f[]="\aYou two are just Friends! (Friends)",
l[]="\ayou two are Lovers! (Lovers)",
@eshleebien
eshleebien / .magic.php
Last active September 8, 2015 10:42
Run this from app/lang/en directory
<?php
ini_set('memory_limit', '-1');
$_SERVER['HTTP_HOST'] = 'insert_url_here';
// Clean up
unlink ('all.php');
unlink('keys_of_duplicates.php');
// Initialize
<?php return array (
'totalnetworkstats' => 'Total Network statistics',
'hereareyourchannels' => 'Here are your channels',
'date' => 'The :attribute is not a valid date.',
'gain' => 'Gain',
'loss' => 'Loss',
'and' => 'and',
'notrend' => 'No trend',
'country' => 'Country',
'source' => 'Source',
<?php return array (
0 => 'and',
1 => 'js#and',
2 => 'views',
3 => 'partnerstats#views',
4 => 'insights#views',
5 => 'ainvites#views',
6 => 'partnerbtn#views',
7 => 'leaderboards#views',
8 => 'tweak#views',
@eshleebien
eshleebien / workers.py
Last active September 23, 2015 07:39
python multiprocessing
import multiprocessing
import queue
import threading
import time
# from threads import client
# from config import config
# from util import sqs
max_thread_count = 3