Skip to content

Instantly share code, notes, and snippets.

View lexfrei's full-sized avatar
🎯
Overloaded

Aleksei Sviridkin lexfrei

🎯
Overloaded
View GitHub Profile
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: driver.longhorn.io
creationTimestamp: "2021-07-30T14:37:49Z"
finalizers:
- kubernetes.io/pv-protection
- external-attacher/driver-longhorn-io
name: pvc-ecb51876-eac3-40d1-949a-14b2a03b3508
@lexfrei
lexfrei / main.go
Last active November 28, 2020 23:10
package main
import (
"log"
"os"
cloudflare "github.com/cloudflare/cloudflare-go"
)
func main() {
version: "3.7"
volumes:
traefik_data: {}
ghost_data: {}
commento_postgres_data: {}
networks:
internet: {}
traefik:
# Domain to be added to your DHCP-clients hostname
:local topdomain;
:set topdomain "local";
# Use ttl to distinguish dynamic added DNS records
:local ttl;
:set ttl "00:29:59";
# Set variables to use
:local hostname;
lex@localhost:~$ upower -d
Device: /org/freedesktop/UPower/devices/line_power_AC0
native-path: AC0
power supply: yes
updated: Tue 04 Jun 2019 10:20:16 AM MSK (474 seconds ago)
has history: no
has statistics: no
line-power
warning-level: none
online: yes

В этом задании мы пишем аналог unix pipeline, что-то вроде:

grep 127.0.0.1 | awk '{print $2}' | sort | uniq -c | sort -nr

Когда STDOUT одной программы передаётся как STDIN в другую программу

Но в нашем случае эти роли выполняют каналы, которые мы передаём из одной функции в другую.

Само задание по сути состоит из двух частей

CPU: Intel Core i7-4820K (Ivy Bridge-E, S1)
3700 MHz (37.00x100.0) @ 3911 MHz (39.00x100.3)
Motherboard: ASUS X79-DELUXE
Chipset: Intel C600/X79 (Patsburg)
Memory: 32768 MBytes @ 802 MHz, 11-11-11-28
- 4096 MB PC12800 DDR3 SDRAM - Kingston 99U5474-023.A00LF
- 4096 MB PC12800 DDR3 SDRAM - Kingston 99U5474-023.A00LF
- 4096 MB PC12800 DDR3 SDRAM - Kingston 99U5474-023.A00LF
- 4096 MB PC12800 DDR3 SDRAM - Kingston 99U5474-023.A00LF
- 4096 MB PC12800 DDR3 SDRAM - Kingston 99U5474-023.A00LF
***RB**R
B**R***B
***RB**R
B**R***B
***RB**R
B**R***B
***RB**R
B**R***B
@lexfrei
lexfrei / price.js
Last active September 1, 2018 15:59
function priceToRub(usdPrice, currency, marks, name) {
Utilities.sleep(200)
if (name == "" ) {
return
}
var rubPrice = usdPrice * currency
if (isRu(name) && isFoil(marks)) {
--- C13
EVASIVE MANEUVERS uwg https://magic.wizards.com/en/content/evasive-maneuvers-commander-2013-card-set-archive
MIND SEIZE ubr https://magic.wizards.com/en/content/mind-seize-commander-2013-card-set-archive
--- C14 https://magic.wizards.com/en/articles/archive/arcana/commander-2014-edition-decklists-2014-10-31
PEER THROUGH TIME u ^
SWORN TO DARKNESS b ^
BUILT FROM SCRATCH r ^
GUIDED BY NATURE g ^