##Где трепаться?
http://telegram.me/klavaorgwork - Телеграм, вопросы разработки
##Железо
####Приобретение свитчей
| # Установка minikube c kvm2 на Arch Linuc (Ctlos) | |
| # | |
| # Поставить нужные пакеты: | |
| yay -S minikube kubectl docker-machine-driver-kvm2 libvirt qemu-headless iptables-nft | |
| # Делаем чтоб libvirt работал: | |
| sudo systemctl enable libvirtd.service | |
| sudo usermod -a -G libvirt $(whoami) | |
| sudo chown -R ":libvirt" /var/run/libvirt |
| /* | |
| MCP4922 test | |
| Steve Woodward, 2010 | |
| most code borrowed from | |
| http://mrbook.org/blog/2008/11/22/controlling-a-gakken-sx-150-synth-with-arduino/ | |
| connections | |
| ==================================================== | |
| +5v > 4922 pin 1 |
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "github.com/jessevdk/go-flags" | |
| "github.com/rs/zerolog/log" | |
| "os" | |
| "strconv" | |
| "strings" |
| #! /bin/bash | |
| set -e | |
| moc-gather-info () | |
| { | |
| local key val | |
| while read -r key val ; do | |
| eval "Moc${key%:}='${val//\'}'" | |
| done < <( mocp --info ) | |
| } |
| #!/bin/bash | |
| PORT=6432 | |
| # Create a ramfs | |
| if [ -f /tmp/pg_on_ram ] | |
| then | |
| echo "/tmp/pg_on_ram already exists" | |
| exit 1 | |
| fi |
| #!/bin/sh | |
| # Check if an IP address is listed on one of the following blacklists | |
| # The format is chosen to make it easy to add or delete | |
| # The shell will strip multiple whitespace | |
| BLISTS=" | |
| bl.score.senderscore.com | |
| bl.mailspike.net | |
| bl.spameatingmonkey.net | |
| b.barracudacentral.org |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project version="4"> | |
| <component name="ProjectCodeStyleSettingsManager"> | |
| <option name="PER_PROJECT_SETTINGS"> | |
| <value> | |
| <option name="RIGHT_MARGIN" value="150" /> | |
| <PHPCodeStyleSettings> | |
| <option name="ALIGN_KEY_VALUE_PAIRS" value="true" /> | |
| <option name="ALIGN_PHPDOC_PARAM_NAMES" value="true" /> | |
| <option name="ALIGN_PHPDOC_COMMENTS" value="true" /> |
| # -*- coding: utf-8 -*- | |
| # Simple example which uses a pool of workers to carry out some tasks. | |
| # | |
| # Notice that the results will probably not come out of the output | |
| # queue in the same in the same order as the corresponding tasks were | |
| # put on the input queue. If it is important to get the results back | |
| # in the original order then consider using `Pool.map()` or | |
| # `Pool.imap()` (which will save on the amount of code needed anyway). |
##Где трепаться?
http://telegram.me/klavaorgwork - Телеграм, вопросы разработки
##Железо
####Приобретение свитчей
| {-# LANGUAGE OverloadedStrings #-} | |
| {-# LANGUAGE ScopedTypeVariables #-} | |
| module Main where | |
| import Control.Monad.IO.Class (liftIO) | |
| import Network.HTTP.Types | |
| import Network.Wai.Middleware.RequestLogger | |
| import Network.Wai.Middleware.Static |