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/sh | |
# https://helloacm.com | |
H=`stty size | awk '{print $1}'` | |
W=`stty size | awk '{print $2}'` | |
for i in $(seq 1 $H) | |
do | |
for j in $(seq 1 $W) | |
do |
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 os import makedirs, get_terminal_size | |
from subprocess import call | |
from typing import Optional | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from os import environ | |
environ['TERMINAL_IMAGES_COLS_PER_INCH']= str(256 / (598 / 25.4)) |
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
{ pkgs ? import <nixpkgs> {} | |
, stdenv ? pkgs.stdenv | |
} : | |
let | |
self = pkgs.python36Packages; | |
inherit (self) buildPythonPackage fetchPypi; | |
browsermob-proxy = | |
with pkgs; | |
let |
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
{ pkgs ? import <nixpkgs> {} } : | |
with pkgs; | |
let | |
inherit (pkgs) fetchgitLocal; | |
fetchgit = pkgs.callPackage ./fetchgit.nix { | |
git = gitMinimal; | |
cacert = cacert; | |
}; |
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
{ pkgs ? import <nixpkgs> {} } : | |
with pkgs; | |
let | |
inherit (pkgs) fetchgitLocal; | |
fetchgit = pkgs.callPackage ./fetchgit.nix { | |
git = gitMinimal; | |
cacert = cacert; | |
}; |
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
\documentclass{article} | |
\usepackage[T1]{fontenc} | |
\usepackage[utf8]{inputenc} | |
\usepackage{amsmath,amssymb} | |
\usepackage[russian,english]{babel} | |
\usepackage{minted} | |
\renewcommand{\MintedPygmentize}{/nix/store/9r8n35slzprv3q4hfdnc0fz3r70z2y64-python3.7-Pygments-2.7.2/bin/pygmentize} | |
\usepackage[rerun=always, pygopt={texcomments=true}]{pythontex} | |
%\newcommand{\pymultiply}[2]{\py{#1*#2}} |
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
execve("/usr/bin/lepton", ["lepton", "hello.nw"], 0x7ffe1f8f9f20 /* 72 vars */) = 0 | |
[ Process PID=4034 runs in 32 bit mode. ] | |
brk(NULL) = 0x9636000 | |
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7f53000 | |
access("/etc/ld-nix.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/run/opengl-driver/lib/tls/i686/sse2/libm.so.6", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
stat64("/run/opengl-driver/lib/tls/i686/sse2", 0xffc8da30) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/run/opengl-driver/lib/tls/i686/libm.so.6", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
stat64("/run/opengl-driver/lib/tls/i686", 0xffc8da30) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/run/opengl-driver/lib/tls/sse2/libm.so.6", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory) |
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
[14:38:23.500][t:26681][p:26675][pjsip][trace] Processing incoming message: Request msg INVITE/cseq=102 (rdata0x7f3b800027d8) | |
[14:38:23.500][t:26681][p:26675][pjsip][debug] RX 858 bytes Request msg INVITE/cseq=102 (rdata0x7f3b800027d8) from UDP 127.0.0.1:5060: | |
INVITE sip:127.0.0.1:5062 SIP/2.0 | |
Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK20be39f2 | |
Max-Forwards: 70 | |
From: "dongle0" <sip:[email protected]>;tag=as6cae3846 | |
To: <sip:127.0.0.1:5062> | |
Contact: <sip:[email protected]:5060> | |
Call-ID: [email protected] | |
CSeq: 102 INVITE |
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
map <c-d> scrollPageDown | |
map <c-в> scrollPageDown | |
map <c-u> scrollPageUp | |
map <c-г> scrollPageUp | |
map <a-q> previousTab | |
map <a-й> previousTab | |
map <a-w> nextTab | |
map <a-ц> nextTab |
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 <errno.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <termios.h> | |
#include <unistd.h> | |
int set_interface_attribs(int fd, int speed) | |
{ |