Search Engine | Shortcut | Link |
---|---|---|
Amazon Aurora User Guide | aurora | https://www.google.com/search?q=site%3Ahttps%3A%2F%2Fdocs.aws.amazon.com%2FAmazonRDS%2Flatest%2FAuroraUserGuide+%s |
AWS CLI Search | awscli | https://awscli.amazonaws.com/v2/documentation/api/latest/search.html?q=%s&check_keywords=yes&area=default |
MySQL 5.7 Manual | my57 | https://www.google.com/search?q=site%3Ahttps%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.7%2Fen%2F+%s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
net.core.somaxconn = 32768 | |
net.ipv4.conf.all.send_redirects = 1 | |
net.ipv4.ip_nonlocal_bind = 1 | |
net.ipv4.tcp_abort_on_overflow = 0 | |
net.ipv4.tcp_fin_timeout = 10 | |
net.ipv4.tcp_keepalive_time = 300 | |
net.ipv4.tcp_max_orphans = 262144 | |
net.ipv4.tcp_max_syn_backlog = 16384 | |
net.ipv4.tcp_max_tw_buckets = 262144 | |
net.ipv4.tcp_mem = 200000 280000 300000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this is a sample of output: | |
root@percona-db-2:~# iperf -s -u -B 226.94.1.1 -i 1 | |
------------------------------------------------------------ | |
Server listening on UDP port 5001 | |
Binding to local address 226.94.1.1 | |
Joining multicast group 226.94.1.1 | |
Receiving 1470 byte datagrams | |
UDP buffer size: 122 KByte (default) | |
------------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"github.com/go-sql-driver/mysql" | |
"log" | |
"net/http" | |
"strings" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onLoad() { | |
tinymce.on('AddEditor', function(e) { | |
e.editor.settings.block_formats = 'Paragraph=p;Preformatted=pre;Quote=blockquote;Heading 1=h1;Heading 2=h2;Heading 3=h3;None=removeformat'; | |
e.editor.settings.forced_root_block = false; | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOT FOR PRODUCTION, JUST FOR LOCAL RACKS!!!!! | |
# I use this convox.yml to setup local gen2 rack services. | |
# NOT for apps that have their own resources defined, these are resources are shared across multiple apps | |
# In production, these are either non-convox SaaS (e.g., I use Elastic cloud for my prod elasticsearch) | |
# *or* I set them up with `convox resources create` (e.g., my shared redis) | |
# This config is just a handy way to have local dev services running that my local convox rack can use. | |
resources: | |
# Any resources here exposed locally as <resourcename>.resource.<appname>.convox | |
redis: | |
type: redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set global slow_query_log = OFF; | |
set global long_query_time = 0; | |
set global log_slow_verbosity = full; | |
set global slow_query_log_timestamp_always = ON; | |
set global slow_query_log_timestamp_precision=microsecond; | |
set global slow_query_log_use_global_control="log_slow_filter,log_slow_rate_limit,log_slow_verbosity,long_query_time"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use Text::CSV; | |
use Data::Dumper; | |
my $headers = <STDIN>; | |
my $csv = new Text::CSV; | |
print "Last, First, Mobile, \"Phone (work)\", \"Email (work)\", \"Skype (work)\"\n"; |
I hereby claim:
- I am jayjanssen on github.
- I am perconajayj (https://keybase.io/perconajayj) on keybase.
- I have a public key ASD73ASV9xg29hDRfIRC_K8LFE6ilm4-ylbyr2C3d3moVAo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Semaphore = function(callback, context) { | |
this.semaphore = 0; | |
this.callback = callback; | |
this.context = context || this; | |
}; | |
Semaphore.prototype.increment = function() { | |
this.semaphore++; | |
}; |
NewerOlder