Skip to content

Instantly share code, notes, and snippets.

View kuk's full-sized avatar

Alexander Kukushkin kuk

View GitHub Profile
@kuk
kuk / tests
Created December 18, 2010 18:29
6
4
1 2 3 6
8
2
5 4
1000
@kuk
kuk / install.pl
Created August 14, 2011 13:55
Installer for my perl scripts
#!/usr/bin/env perl
use strict;
use warnings;
use Data::Dumper;
use Getopt::Long;
use Digest::MD5 'md5_hex';
$ENV{DEBUG} = 0;
1000
3 4 6 6 6 8 10
2 2 5 5 5 9 15
1 1 2 4 7 9 4
2 4 4 7 7 7 58
3 5 8 8 8 9 9
3 3 3 7 7 7 3
1 3 5 5 7 9 17
1 1 3 3 3 5 4
3 4 5 5 5 8 17
@kuk
kuk / lab3_report.org
Created November 3, 2011 10:05
os adm lab3 report start

1

1

1

mount -o remount,rw /boot

2

Appended “edd=off” to title of first entery

3

Copied first entery modified title, appended “single”

4

Generated md5 with /sbin/grub-md5-.. . Added password –md5 <hash> to common params

@kuk
kuk / test_tickets.txt
Created November 5, 2011 15:51
Ticker solver
1000
3 4 6 6 6 8 10
2 2 5 5 5 9 15
1 1 2 4 7 9 4
2 4 4 7 7 7 58
3 5 8 8 8 9 9
3 3 3 7 7 7 3
1 3 5 5 7 9 17
1 1 3 3 3 5 4
3 4 5 5 5 8 17
#!/usr/bin/env python
import os
import fcntl
import errno
import sys
import time
import shlex
import signal
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import re
import sys
from subprocess import Popen, PIPE
from multiprocessing import Pool
PDS_BASE = 'http://aws-publicdatasets.s3.amazonaws.com/'
WARC_PATHS = {
'2014-12': 'common-crawl/crawl-data/CC-MAIN-2014-52/warc.paths.gz',
'2015-07': 'common-crawl/crawl-data/CC-MAIN-2015-32/warc.paths.gz'
This file has been truncated, but you can view the full file.
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [