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
; Light and heavy solid lines | |
; | |
; 2500 ─ BOX DRAWINGS LIGHT HORIZONTAL | |
; 2501 ━ BOX DRAWINGS HEAVY HORIZONTAL | |
; 2502 │ BOX DRAWINGS LIGHT VERTICAL | |
; 2503 ┃ BOX DRAWINGS HEAVY VERTICAL | |
; | |
; Light and heavy dashed lines | |
; | |
; 2504 ┄ BOX DRAWINGS LIGHT TRIPLE DASH HORIZONTAL |
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
// * compile without optimization | |
// * run an inferior shell | |
// * type limit -d 2048 to restrict the data segment to 2 megs | |
// * ./a.out | |
// * profit! | |
#include <sys/resource.h> | |
#include <cstdint> | |
#include <iostream> |
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 <stdio.h> | |
#include <time.h> | |
const int kSamples = 16; | |
int main(int argc, char* argv[]) { | |
struct timespec t[kSamples]; | |
for (int i = 0; i < kSamples; ++i) { | |
clock_gettime(CLOCK_REALTIME, &t[i]); | |
} |
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
Ugly hack to run chrome in a memory-limited cgroup so it does not kill your workstation | |
when it tries to consume all available memory. | |
Put this in /usr/local/bin/cchrome, add that to whatever menu system you are using. | |
You can verify it worked by running: | |
grep memory `ps ax | grep chrome | grep -v grep | awk '{printf "/proc/%s/cgroup\n", $1}'` | |
This has only been tested on kubuntu desktop. Obviously, if you have not enabled | |
passwordless-sudo for yourself, create and chmod the cgroup directory from some |
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
[ | |
{ | |
"name": "Stick", | |
"author": "JI", | |
"switchMount": "cherry", | |
"switchBrand": "cherry", | |
"switchType": "MX1A-L1Nx", | |
"pcb": true | |
}, | |
[ |
OlderNewer