Skip to content

Instantly share code, notes, and snippets.

View wwalker's full-sized avatar

Wayne Walker wwalker

View GitHub Profile
@wwalker
wwalker / .bashrc.git
Last active August 27, 2015 20:00
my git bash setup
optionally_source () {
if [[ -f $1 ]]
then
. $1
fi
}
optionally_source /usr/share/doc/git/contrib/completion/git-prompt.sh
optionally_source /usr/share/doc/git/contrib/completion/git-completion.bash
<VirtualHost 67.222.146.70:80>
SuexecUserGroup "#534" "#525"
ServerName darlantus.com
ServerAlias www.darlantus.com
DocumentRoot /var/www/home/brownbaglaunch/domains/darlantus.com/public_html
ErrorLog /var/log/virtualmin/darlantus.com_error_log
CustomLog /var/log/virtualmin/darlantus.com_access_log combined
ScriptAlias /cgi-bin/ /home/brownbaglaunch/domains/darlantus.com/cgi-bin/
<Directory /home/brownbaglaunch/domains/darlantus.com/public_html>
Options ExecCGI Indexes Includes SymLinksifOwnerMatch
IDIR =../include
CC=gcc
CFLAGS=-I$(IDIR)
ODIR=obj
LDIR =../lib
LIBS=-lm
_DEPS = 7230run.h
IDIR =../include
CC=gcc
CFLAGS=-I$(IDIR)
ODIR=../obj
LDIR =../lib
LIBS=-lm
_DEPS = 7230run.h
sub whatsit {
my $b = shift;
if (scalar(@$b) == 0) { return "EmptyList\n"; }
if (@$b[0] == undef) { return "UndefPassedIn\n"; }
if (scalar(@$b) > 0) { return "ArrayWithElements\n"; }
}
@a = ();
print whatsit(\@a);
Script started on Fri 09 May 2014 01:10:51 AM UTC
x27]0;deploy@prod-api-redis-s9-i-aeb692ff: ~x07deploy@prod-api-redis-s9-i-aeb692ff:~$ redis-cli
redis 127.0.0.1:6379> slowlog 100
(error) ERR Unknown SLOWLOG subcommand or wrong # of args. Try GET, RESET, LEN.
redis 127.0.0.1:6379> x27[0Gredis 127.0.0.1:6379> slowlog 100x27[0Kx27[0Gx27[33Cx27[0Gredis 127.0.0.1:6379> slowlog 100x27[0Kx27[0Gx27[32Cx27[0Gredis 127.0.0.1:6379> slowlog 100x27[0Kx27[0Gx27[31Cx27[0Gredis 127.0.0.1:6379> slowlog 100x27[0Kx27[0Gx27[30Cx27[0Gredis 127.0.0.1:6379> slowlog 100x27[0Kx27[0Gx27[29Cx27[0Gredis 127.0.0.1:6379> slowlog 100x27[0Kx27[0Gx27[28Cx27[0Gredis 127.0.0.1:6379> slowlog 100x27[0Kx27[0Gx27[27Cx27[0Gredis 127.0.0.1:6379> slowlog 100x27[0Kx27[0Gx27[26Cx27[0Gredis 127.0.0.1:6379> slowlog 100x27[0Kx27[0Gx27[25Cx27[0Gredis 127.0.0.1:6379> slowlog 100x27[0Kx27[0Gx27[26Cx27[0Gredis 127.0.0.1:6379> slow log 100x27[0Kx27[0Gx27[27C
(error) ERR unknown command 'slow'
redis 127.0.0.1:6379> x27[0Gredis 127.0.0.1:6379> slow log 100x27[0
This file has been truncated, but you can view the full file.
1 " SELECT id, name\x7a FROM tags\x7a WHERE tags.id IN (7, 7, 7, 7, 7, 7, 7, 7, 7)\x7a"
1 "DELETE FROM `article_partners` WHERE ((article_id = 7)) "
1 "DELETE FROM `group_subscriptions` WHERE (`group_subscriptions`.`device_id` = 'APA7bE7dSwBfM7VL7Ct--taggy-thingy' AND `group_subscriptions`.`device_type` = 'Android GCM') "
1 "DELETE FROM `group_subscriptions` WHERE (`group_subscriptions`.`device_id` = 'APA7bEGecjF--taggy-thingy' AND `group_subscriptions`.`device_type` = 'Android GCM') "
1 "DELETE FROM `group_subscriptions` WHERE (`group_subscriptions`.`device_id` = 'APA7bEwOrMI--taggy-thingy' AND `group_subscriptions`.`device_type` = 'Android GCM') "
1 "DELETE FROM `group_subscriptions` WHERE (`group_subscriptions`.`device_id` = 'APA7bFCWP--taggy-thingy' AND `group_subscriptions`.`device_type` = 'Android GCM') "
1 "DELETE FROM `group_subscriptions` WHERE (`group_subscriptions`.`device_id` = 'APA7bFWf7_e--taggy-thingy' AND `group_subscriptions`.`dev
$ cat .br/aws.yml
---
environment: production
:aws_access_key_id: AKIAI4YKSOAUXYS2OGZA
:aws_secret_access_key: XXXXXXXXXXXXXXXXXXXXXXXXXXXx
{
"Records": [
{
"eventName": "DescribeInstanceHealth",•
"eventTime": "2014-06-16T00:04:34Z",•
"userIdentity": {
"userName": "brprod"
}
},
{
☺ [wwalker@ut:~]
$ mkdir test.sysbench
☺ [wwalker@ut:~]
$ cd !$
cd test.sysbench
☺ [wwalker@ut:~/test.sysbench]
$ history | grep sysbench
6 sysbench --num-threads=16 --test=fileio --file-total-size=1G --file-fsync-all --file-test-mode=rndrw prepare
7 sysbench --num-threads=16 --test=fileio --file-total-size=1G --file-fsync-all --file-test-mode=rndwr run
8 sysbench --num-threads=64 --test=fileio --file-total-size=1G --file-fsync-all --file-test-mode=rndrw prepare