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 | |
### | |
# | |
# Change Tor exit node | |
# | |
# Sometimes when using Tor you'd like to change the IP address that | |
# servers see when you connect (that is, change your Tor exit node). | |
# This happens automatically from time to time, but this shell script | |
# lets you force it. | |
# |
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
### | |
# | |
# tmux magic for OpenRC | |
# | |
# These functions do some tmux magic to let you run non-daemon programs | |
# (e.g. ones with ncurses interface) as daemons in tmux sessions. | |
# You just run `/etc/init.d/<service> start/stop` or add the service | |
# to a runlevel and later you can do `/etc/init.d/<service> attach` to | |
# see its console. Type `Ctrl+b d` to detach (in the default tmux configuration). | |
# We execute tmux with `-L`, so those sessions are not visible in the |
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 | |
# SPDX-FileCopyrightText: 2019 Kirill Elagin <https://kir.elagin.me/> | |
# SPDX-License-Identifier: MPL-2.0 | |
### | |
# | |
# Monitor signal strength (RSSI) of a Wi-Fi network on Linux. | |
# | |
# Given an SSID, the script outputs the signal strength of the |
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
%%% | |
% | |
% Homework template for pandoc | |
% | |
% You'll need XeLaTeX. | |
% You'll need PT fonts (or change them). | |
% | |
% Usage: | |
% pandoc --latex-engine=xelatex --listings --template=<path to this file> <input.pd> -o <output.pdf> | |
% |
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
> module Huffman where | |
> import Control.Arrow | |
> import Data.List | |
> import qualified Data.Map as M | |
> import Data.Function | |
This typeclass is supposed to make life _a bit_ easier. |
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
#!/usr/bin/env bash | |
# SPDX-FileCopyrightText: 2021 Kirill Elagin <https://kir.elagin.me/> | |
# SPDX-License-Identifier: CC0-1.0 | |
### | |
# | |
# Find available appointments at Quest Diagnostics labs. | |
# | |
# This quick-and-dirty script queries their appointment scheduling API |
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
#!/usr/bin/env sh | |
# Display information about internal layout of a FAT32 filesystem. | |
# | |
# Script directly reads data from FAT32 header. This might be useful | |
# for aligning fs structures to speed up flash drive access. | |
# | |
# http://kirelagin.ru/p/gist/3730254 | |
# | |
# -- Kirill Elagin <kirelagin@gmail.com> |
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
#!/usr/bin/env python | |
import sys | |
import os.path | |
import ldap | |
import ldap.dn | |
import ldap.filter | |
import ldap.modlist | |
SERVER_URI = 'ldap://127.0.0.1' |
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
airplane balloon: | |
Уважаемые пассажиры, наш полёт проходит на высоте десять тысяч ёлок. | |
Уважаемые пассажиры, если вы посмотрите направо — увидите ёлку. | |
Капитан, ель прямо по курсу! | |
Сегодня мы будем пролетать над четырьмя странами и елью | |
В течение полёта вам будут предложены напитки, завтрак и вид на ель. | |
cm1: | |
сантиметр |
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 | |
# SPDX-FileCopyrightText: 2018 Kirill Elagin <https://kir.elagin.me/> | |
# SPDX-License-Identifier: MPL-2.0 | |
### | |
# | |
# Mirror a tmux session in two terminals. | |
# | |
# This script is ideal for all kinds of demonstrations, lectures, talks, etc. |
NewerOlder