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
/** | |
* Scripts for pages alike https://eve-marketdata.com/pi.php?step=PIPlanner2&type_name=Broadcast+Node&solarsystem_name=Resbroko | |
*/ | |
var dict = { | |
'Aqueous Liquids': ['Barren', 'Gas', 'Ice', 'Oceanic', 'Storm', 'Temperate'], | |
'Autotrophs': ['Temperate'], | |
'Base Metals': ['Ice', 'Oceanic', 'Temperate'], | |
'Reactive Metals': ['Ice', 'Oceanic', 'Temperate'], // FIXME | |
'Carbon Compounds': ['Barren', 'Oceanic', 'Temperate'], | |
'Complex Organisms': ['Oceanic', 'Temperate'], |
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 | |
# (c) Copyright 2019 oadhesiv | |
# MIT license | |
# rgbg vavg hxenqra f tvgn, fzryb fgni zvahf fbebx qin | |
ping -c 2 -b $(ip -o -4 addr show dev en0 | awk '{print $6}') | |
arp -i en0 -n | grep . | awk '{print $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
#!/bin/bash | |
### Читаем: | |
### https://wiki.archlinux.org/index.php/Simple_stateful_firewall | |
### https://www.booleanworld.com/depth-guide-iptables-linux-firewall/ | |
### https://javapipe.com/blog/iptables-ddos-protection/ | |
### Подготовка. | |
# ulogd! |
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
## Common | |
export EDITOR='subl -w' | |
export LC_ALL='en_US.UTF-8' | |
## ZSH | |
# Virtualenv support | |
function virtual_env_prompt () { | |
REPLY=${VIRTUAL_ENV+(${VIRTUAL_ENV:t}) } | |
} | |
grml_theme_add_token virtual-env -f virtual_env_prompt '%F{magenta}' '%f' |
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
package main | |
import "fmt" | |
// Небольшой disclamier. | |
// Это решение создано так, как будто бы, я бы пошел на алгоритмическую секцию. | |
// Однако усложняющим фактором было то, что не было человека, с которым можно было бы обсудить решение. | |
// Теперь постфактум я посмотрел решение на Leetcode, | |
// узнал о https://en.wikipedia.org/wiki/Kadane%27s_algorithm |