Skip to content

Instantly share code, notes, and snippets.

@dominicusin
dominicusin / .procmailrc
Created March 23, 2018 00:08 — forked from nonoo/.procmailrc
Procmail config and PHP script for sending email source address and subject to given callsigns through APRS-IS.
#LOGFILE=/home/nonoo/procmail.log
#VERBOSE=YES
:0
* ^List-ID: <aprs.nonoo.hu>$
| /home/nonoo/bin/mail2aprs.php
:0
* ^List-ID: <aprs.nonoo.hu>$
/dev/null
:0:
! [email protected]
# This assumes your gateway is an OpenWRT box at 192.168.1.1,
# your lan is 192.168.1.0/24,
# and your OpenWRT stock chains are intact.
# It is different than the built in /etc/config/firewall rules in that it allows you to address
# your linux box at example.com, whether your request originates from within your lan, or from outside.
WIN_XP_HOST=192.168.1.184
LINUX_HOST=192.168.1.202
WWW_NAME=example.com
@dominicusin
dominicusin / reinstall-dkms-modules-pluszfs.sh
Created March 18, 2018 16:41 — forked from Trucido/reinstall-dkms-modules-pluszfs.sh
ugly hacky script to rebuild all dkms modules plus manually force zfs if it's intree for debian/ubuntu
#!/usr/bin/env bash
# rebuild/reinstall all dkms modules.
# double check there's no others missing too afterwards.
#template(){
#KVER=x.x.x-arch
#ZVER=x.x.x.x-x
#dkms status | sed s/,//g | awk '{print "--force -m",$1,"-v",$2}' | while read line; do ls /var/lib/initramfs-tools | xargs -n 1 dkms build --force $line -k; done
#dkms status | sed s/,//g | awk '{print "--force -m",$1,"-v",$2}' | while read line; do ls /var/lib/initramfs-tools | xargs -n 1 dkms install --force $line -k; done
#dkms build --force -m spl -v $ZVER -k $KVER
@dominicusin
dominicusin / zfsinstall-1-setup.sh
Created March 14, 2018 18:32 — forked from johnramsden/zfsinstall-1-setup.sh
Install scripts for installing Arch Linux on ZFS. Not runnable, just listed commands.
#!/bin/bash
# Check before running, may need intervention
# Pass in the following to the script, or hardcode it.
# Uncomment if hardcoding input.
BOOT_PARTITION="/dev/sdg1"
DISK_1="ata-SanDisk_SDSSDXPS480G_152271401093"
DISK_2="ata-SanDisk_SDSSDXPS480G_154501401266"
POOL="vault"
with import <nixpkgs> {};
let
platform = {
uboot = null;
endian = "big";
name = "yun";
kernelArch = "mips";
gcc = { abi = "32"; } ;
bfdEmulation = "elf32btsmip";
kernelHeadersBaseConfig = "ath79_defconfig";
@dominicusin
dominicusin / hexlet-principles.md
Created January 17, 2018 16:51 — forked from yantonov/hexlet-principles.md
Hexlet programming principles
  • Принципы программирования Хекслета
  1. Язык — это инструмент
  2. Программирование — это не язык
  3. Понимание принципов важнее знания инструментов
  4. Паттерны — это не принципы программирования
  5. Написание кода — не цель
  6. Удаление кода лучше его написания
  7. Читаемый код важнее быстрого
  8. Любое решение имеет плюсы
@dominicusin
dominicusin / programming-principles.md
Last active January 17, 2018 16:53 — forked from yantonov/hexlet-principles.md
Принципы programming

Язык — это инструмент Программирование — это не язык Понимание принципов важнее знания инструментов Паттерны — это не принципы программирования Написание кода — не цель Удаление кода лучше его написания Читаемый код важнее быстрого Любое решение имеет плюсы Уровень мышления определяет уровень решений

@dominicusin
dominicusin / CV.hs
Created January 17, 2018 15:03 — forked from denisshevchenko/CV.hs
Моё резюме, написанное на Haskell
{-
Денис Шевченко, 2015
-}
module Main where
import Control.Monad.Writer.Lazy
import Data.Functor ((<$>))
import Data.List (dropWhileEnd)
import Data.Char (isSpace)
A. Create Installation DVD ISO Via Dism:
1. Extract Win 10 Enterprise version of the mirror sources folder install.wim to D drive temp directory
2. In the temp directory to create WimMount folder, and execute the following command to mount the wim file
Dism /Mount-Wim /WimFile:D:\temp\install.wim /Index:1 /MountDir:D:\temp\WimMount
3. Show the current version
Dism /Image:D:\temp\WimMount /Get-CurrentEdition
4. Show current version
Dism /Image:D:\temp\WimMount /Get-TargetEditions