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
" everything needs to be unicode. EVERYTHING | |
set encoding=utf8 | |
" always join with just one space, even between sentences | |
set nojoinspaces | |
" don't move the cursor to the start of the line when changing buffers | |
set nostartofline | |
" Yeah, we like |
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
#include <iostream> | |
#include <iomanip> | |
#include <ctime> | |
#include <cstdint> | |
uint64_t unixtime(const char* ts) { | |
std::tm tm; | |
tm.tm_year = (ts[0] - '0') * 10 + (ts[1] - '0'); | |
if (tm.tm_year < 70) tm.tm_year += 2000; | |
tm.tm_mon = (ts[2] - '0') * 10 + (ts[3] - '0'); |
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 file is NOT licensed under the GPLv3, which is the license for the rest | |
# of YouCompleteMe. | |
# | |
# Here's the license text for this file: | |
# | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any |
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
# astylerc | |
align-pointer=name | |
align-reference=name | |
max-code-length=120 | |
break-after-logical | |
indent=spaces=2 | |
style=google | |
# Padding | |
pad-header |
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/local/lib/python2.7/site-packages/trac/web/api.py 2014-04-07 11:34:10.326789939 +0200 | |
+++ /usr/local/lib/python2.7/site-packages/trac/web/api.py 2014-06-19 12:52:08.690985738 +0200 | |
@@ -577,7 +577,7 @@ | |
self.send_header('Last-Modified', last_modified) | |
use_xsendfile = getattr(self, 'use_xsendfile', False) | |
if use_xsendfile: | |
- self.send_header('X-Sendfile', os.path.abspath(path)) | |
+ self.send_header('X-Accel-Redirect', os.path.abspath(path)) | |
self.end_headers() |
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
#include "time.h" | |
#include "math.h" | |
#include "assert.h" | |
#include <string> | |
// After http://ideone.com/hbWgE | |
int num_tests = 5000000; | |
unsigned duck(unsigned x, unsigned y) { |
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
#!/bin/sh | |
PATH=/var/www | |
USER=ftp | |
GROUP=www | |
# do an early exit if another find command is already running | |
/bin/ps axc | /usr/bin/awk '{ print $5 }' | /usr/bin/grep -q find | |
if [ $? -eq 0 ]; then | |
exit; |
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 file is NOT licensed under the GPLv3, which is the license for the rest | |
# of YouCompleteMe. | |
# | |
# Here's the license text for this file: | |
# | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any |
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
# For nginx. Requires OpenSSL 1.0.1j | |
ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH+aRSA+RC4:EECDH:EDH+aRSA:RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!CAMELLIA; | |
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; | |
ssl_prefer_server_ciphers on; |
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
<?php | |
(new SoapClient('https://soap.nimta.com?wsdl'))->sendSMSes(array( | |
'username' => 'USERNAME', | |
'password' => 'PASSWORD', | |
'gatewayClass' => 'A', | |
'messages' => array( | |
array( | |
'message' => 'Hello World!', | |
'charge' => 0, | |
'delayed' => false, |
OlderNewer