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
.content .page-body .chapter .imgContainer { | |
height: auto !important; | |
} |
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
#[macro_use] | |
extern crate criterion; | |
use criterion::Criterion; | |
use std::ops::Index; | |
struct SerS { | |
kind: u8, | |
ptr: *const u8, |
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
from bs4 import BeautifulSoup | |
import requests | |
import sys | |
import os | |
from subprocess import call | |
import tempfile | |
if len(sys.argv) < 3: | |
print('Usage: $0 transmission_host urls...') | |
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
#!/bin/bash | |
tehStart=0 | |
tehEnd=0 | |
LSIC_SPREAD=${LSIC_SPREAD:-50} | |
case "$#" in | |
"0" ) | |
cat <<EOF | |
Usage: |
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/bash | |
for year in `seq 2009 2012`; do | |
echo "Processing year $year..." | |
LISTFILE="list-$year" | |
PACKFILE="logs-$year.tar.xz" | |
find . -name "$year-*" | sort >$LISTFILE | |
echo "Found $( cat $LISTFILE | wc -l ) files" | |
tar -c -T $LISTFILE | pv -c -N tar -pterab -s $( cat $LISTFILE | xargs du -bs | awk '{s+=$1} END {print s}' ) | xz | pv -c -N xz -trab >$PACKFILE | |
done |