Given that your key has expired.
$ gpg --list-keys
$ gpg --edit-key KEYID
Use the expire command to set a new expire date:
# Use this script to test that your Telegram bot works. | |
# | |
# Install the dependency | |
# | |
# $ gem install telegram_bot | |
# | |
# Run the bot | |
# | |
# $ ruby bot.rb | |
# |
// This is a test where I was trying to isolate how much we lost to `reflect` | |
// with channel operations in a tight loop. | |
// | |
// PREAMBLE | |
// We do a lot of processing of stream data where ordering with respect to a | |
// shard indicator like user ID matters. We've done this a few times where we | |
// implement fanout based on hashing into an slice/array of channels, and it's | |
// lightning fast but it ends up leaving a lot of boilerplate in your code. | |
// | |
// So I started writing a library that would do the non-critical boilerplate |
# Generate a new pgp key: (better to use gpg2 instead of gpg in all below commands) | |
gpg --gen-key | |
# maybe you need some random work in your OS to generate a key. so run this command: `find ./* /home/username -type d | xargs grep some_random_string > /dev/null` | |
# check current keys: | |
gpg --list-secret-keys --keyid-format LONG | |
# See your gpg public key: | |
gpg --armor --export YOUR_KEY_ID | |
# YOUR_KEY_ID is the hash in front of `sec` in previous command. (for example sec 4096R/234FAA343232333 => key id is: 234FAA343232333) |
BenchmarkSend/128-24 200000 5788 ns/op | |
BenchmarkSend/128#01-24 1000000 2053 ns/op | |
BenchmarkSend/256-24 100000 10465 ns/op | |
BenchmarkSend/256#01-24 500000 3311 ns/op | |
BenchmarkSend/512-24 100000 18025 ns/op | |
BenchmarkSend/512#01-24 200000 6123 ns/op | |
BenchmarkSend/1024-24 30000 36596 ns/op | |
BenchmarkSend/1024#01-24 100000 11584 ns/op | |
BenchmarkSend/2048-24 20000 64805 ns/op | |
BenchmarkSend/2048#01-24 50000 22978 ns/op |
import ( | |
"mime" | |
"net/http" | |
"strings" | |
) | |
// Determine whether the request `content-type` includes a | |
// server-acceptable mime-type | |
// | |
// Failure should yield an HTTP 415 (`http.StatusUnsupportedMediaType`) |
This is way more complicated than it should be. The following conditions need to be met :
In this particular case, I'm interested in bringing in the 'default' template of jsdoc as a sub-directory in my project so I could potentially make changes to the markup it genereates while also being able to update from upstream if there are changes. Ideally their template should be a separate repo added to jsdoc via a submodule -- this way I could fork it and things would be much easier.... but, it is what it is.
After much struggling with git, subtree and git-subtree, I ended up finding this http://archive.h2ik.co/2011/03/having-fun-with-git-subtree/ -- it basically sets up separate branches from tracking remote, the particular sub-directory, and uses git subtree contrib module to pull it all togther. Following are
Magic numbers are the first bits of a file which uniquely identify the type of file. This makes programming easier because complicated file structures need not be searched in order to identify the file type.
For example, a jpeg file starts with ffd8 ffe0 0010 4a46 4946 0001 0101 0047 ......JFIF.....G ffd8 shows that it's a JPEG file, and ffe0 identify a JFIF type structure. There is an ascii encoding of "JFIF" which comes after a length code, but that is not necessary in order to identify the file. The first 4 bytes do that uniquely.
This gives an ongoing list of file-type magic numbers.
ccache is a compiler cache. It speeds up recompilation of C/C++ code by caching previous compilations and detecting when the same compilation is being done again. This often results in a significant speedup in common compilations, especially when switching between branches. This page is about using ccache on Mac with clang and ninja build system. If you want to use Xcode, please refer to the old CCacheMac page.
In order to use ccache with clang, you need to use the current git HEAD, since the most recent version (3.1.9) doesn't contain the patch needed for using chromium style plugin.
To install ccache with [homebrew](http://mxcl.