I hereby claim:
- I am exenon on github.
- I am xaviernunn (https://keybase.io/xaviernunn) on keybase.
- I have a public key ASA7BlDwxvlOvRN20Imtbx1vs_-I1QYryBHXeBqDzKgJ7go
To claim this, I am signing this object:
| {"version": 1, "uid": 8141406623784815812, "layout": [[[-1, "KC_NO", "KC_NO", "KC_ENTER", -1, "KC_UP", "KC_LEFT", "TG(5)"], [-1, "RALT(KC_SPACE)", "KC_LALT", "KC_LGUI", "MO(4)", "KC_BSPACE", -1, -1], ["KC_B", "KC_V", "KC_C", "KC_X", "KC_Z", "KC_ESCAPE", -1, -1], ["KC_G", "LSFT_T(KC_F)", "LCTL_T(KC_D)", "LALT_T(KC_S)", "LGUI_T(KC_A)", "KC_LSHIFT", -1, -1], ["KC_T", "KC_R", "KC_E", "KC_W", "KC_Q", "KC_TAB", -1, -1], ["KC_5", "KC_4", "KC_3", "KC_2", "KC_1", "KC_EQUAL", -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1], [-1, "KC_GRAVE", "KC_NO", "KC_SPACE", -1, "KC_DOWN", "KC_RIGHT", "MO(1)"], [-1, "MO(3)", "MO(2)", "KC_NO", "KC_NO", "KC_LBRACKET", -1, -1], ["KC_N", "KC_M", "KC_COMMA", "KC_DOT", "KC_SLASH", "KC_RBRACKET", -1, -1], ["KC_H", "RSFT_T(KC_J)", "RCTL_T(KC_K)", "RALT_T(KC_L)", "RGUI_T(KC_SCOLON)", "KC_QUOTE", -1, -1], ["KC_Y", "KC_U", "KC_I", "KC_O", "KC_P", "KC_BSLASH", -1, -1], ["KC_6", "KC_7", "KC_8", "KC_9", "KC_0", "KC_MINUS", -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1]], [[-1, "KC_NO", "KC_NO", "KC_ENTER", |
| /* Copyright 2015-2021 Jack Humbert | |
| * | |
| * This program is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation, either version 2 of the License, or | |
| * (at your option) any later version. | |
| * | |
| * This program is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| # -*- coding: utf-8 -*- | |
| #test on python 3.4 ,python of lower version has different module organization. | |
| import http.server | |
| from http.server import HTTPServer, BaseHTTPRequestHandler | |
| import socketserver | |
| PORT = 8080 | |
| Handler = http.server.SimpleHTTPRequestHandler |
| # Generate a passphrase | |
| openssl rand -base64 48 > passphrase.txt | |
| # Generate a Private Key | |
| openssl genrsa -aes128 -passout file:passphrase.txt -out server.key 2048 | |
| # Generate a CSR (Certificate Signing Request) | |
| openssl req -new -passin file:passphrase.txt -key server.key -out server.csr \ | |
| -subj "/C=FR/O=krkr/OU=Domain Control Validated/CN=*.krkr.io" |
| #!/bin/sh | |
| git filter-branch --env-filter ' | |
| OLD_EMAIL="your-old-email@example.com" | |
| CORRECT_NAME="Your Correct Name" | |
| CORRECT_EMAIL="your-correct-email@example.com" | |
| if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] | |
| then | |
| export GIT_COMMITTER_NAME="$CORRECT_NAME" | |
| export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL" |
| # to run: | |
| # > elixir --no-halt udp_server.exs | |
| # to test: | |
| # > echo "hello world" | nc -u -w0 localhost:2052 | |
| # > echo "quit" | nc -u -w0 localhost:2052 | |
| # Let's call our module "UDPServer" | |
| defmodule UDPServer do | |
| # Our module is going to use the DSL (Domain Specific Language) for Gen(eric) Servers | |
| use GenServer |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| module Main exposing (..) | |
| import Html exposing (Html, button, div, text, ul, li, input) | |
| import Html.Events exposing (onClick, onInput) | |
| import Html.Attributes exposing (placeholder, value) | |
| import List exposing (map, length) | |
| main = | |
| Html.beginnerProgram { model = model, view = view, update = update } |
| """ | |
| Add copy to clipboard from IPython! | |
| To install, just copy it to your profile/startup directory, typically: | |
| ~/.ipython/profile_default/startup/ | |
| Example usage: | |
| %clip hello world | |
| # will store "hello world" |
I hereby claim:
To claim this, I am signing this object: