This file contains hidden or 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
const std = @import("std"); | |
usingnamespace @cImport({ | |
@cInclude("sqlite3.h"); | |
}); | |
const Error = error{ | |
CantOpen, | |
Error, | |
Busy, | |
Done, |
This file contains hidden or 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
killall python3 | |
wget 'https://raw.githubusercontent.com/Neilpang/acme.sh/master/acme.sh' -O acme.sh | |
chmod +x acme.sh | |
./acme.sh --issue -d $DOMAIN --standalone -d www.$DOMAIN --home ./ | |
cp $DOMAIN/$DOMAIN.cer ./crt.crt | |
cp $DOMAIN/$DOMAIN.key ./key.key | |
cp $DOMAIN/fullchain.cer ./chain.crt |
This file contains hidden or 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
DOMAIN=$1 | |
wget 'https://raw.githubusercontent.com/Neilpang/acme.sh/master/acme.sh' -O acme.sh | |
chmod +x acme.sh | |
./acme.sh --issue -d $DOMAIN --standalone -d www.$DOMAIN --home ./ | |
cp $DOMAIN/$DOMAIN.cer ./crt.crt | |
cp $DOMAIN/$DOMAIN.key ./key.key | |
cp $DOMAIN/fullchain.cer ./chain.crt |
# ./compile
...
Compiling bytecount v0.2.0
Compiling ripgrep v0.7.1 (file:///xxxx/ripgrep)
error[E0432]: unresolved import `simd::x86::avx`
--> /xxxx/.cargo/registry/src/github.com-1ecc6299db9ec823/bytecount-0.2.0/src/lib.rs:15:16
|
15 | use simd::x86::avx::{LowHigh128, u8x32};
| ^^^ Could not find `avx` in `x86`
This file contains hidden or 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/env python2 | |
import os | |
import sys | |
import commands | |
import time | |
import threading | |
origin_x = 100 | |
origin_y = 600 |
This file contains hidden or 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
# UUID | |
import uuid | |
get_uuid = lambda:uuid.uuid4() | |
# get_id, string_to_id | |
toid = lambda data: ''.join(['_', k.lower()][k in '0123456789-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'] for k in data) | |
# subfolder distribution | |
import os |
This file contains hidden or 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/env python2 | |
# There should be a standard way of doing this. For now a hack. | |
import gevent | |
import inspect | |
def one(): | |
print '1' |
This file contains hidden or 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/env python2 | |
import BaseHTTPServer | |
import SocketServer | |
from StringIO import StringIO | |
import random | |
import urllib2 as urllib | |
import shutil | |
class Main(BaseHTTPServer.BaseHTTPRequestHandler): |
This file contains hidden or 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
/** | |
* lobste.rs | |
* Font colors and fonts | |
*/ | |
li .details .link a{ | |
/*color:#19449c !important;*/ | |
} | |
li .details .link a:visited{ |
NewerOlder