Skip to content

Instantly share code, notes, and snippets.

View lae's full-sized avatar
☠️
untreated medical emergency sena please assist

lae

☠️
untreated medical emergency sena please assist
View GitHub Profile
packages-sync:~$ ls /mnt/ceph/packages/ubuntu/ubuntu/dists/bionic-updates/ -ltr
total 7130
drwxr-xr-x 1 archvsync archvsync 5 Oct 24 2017 restricted
drwxr-xr-x 1 archvsync archvsync 1 Oct 25 2017 by-hash
drwxr-xr-x 1 archvsync archvsync 6 May 11 05:13 universe
drwxr-xr-x 1 archvsync archvsync 6 Jun 28 10:58 multiverse
drwxr-xr-x 1 archvsync archvsync 9 Jul 9 17:13 main
-rw-r--r-- 1 archvsync archvsync 4098384 Jul 13 04:40 Contents-amd64.gz
-rw-r--r-- 1 archvsync archvsync 3024215 Jul 13 05:26 Contents-i386.gz
-rw-r--r-- 1 archvsync archvsync 819 Jul 13 20:26 Release.gpg
[lae@haruka ~]$ mkvirtualenv electrum-3.2.3-test
Using base prefix '/usr'
New python executable in /home/lae/.virtualenvs/electrum-3.2.3-test/bin/python
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /home/lae/.virtualenvs/electrum-3.2.3-test/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/lae/.virtualenvs/electrum-3.2.3-test/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/lae/.virtualenvs/electrum-3.2.3-test/bin/preactivate
virtualenvwrapper.user_scripts creating /home/lae/.virtualenvs/electrum-3.2.3-test/bin/postactivate
virtualenvwrapper.user_scripts creating /home/lae/.virtualenvs/electrum-3.2.3-test/bin/get_env_details
(electrum-3.2.3-test) [lae@haruka ~]$ cd /tmp
@lae
lae / asic.txt
Created October 3, 2018 00:20 — forked from monacoinproject/asic.txt
ASICについて
MonacoinprojectはASICを否定しません。
ASICは消費電力、ネットハッシュの確保(=攻撃コストの増加)という点で有効です。
(同じようなことを2014年にもどこかで書いた記憶が・・・)
先のアルゴリズム変更は遅延を解消することが目的で、"結果的"にscrypt-ASICが使えなくなったという事です。
もっとも当時のscryptはSHA256に次ぐ採用率の高いアルゴリズムであったので、他のコインへの流用は十分可能だったと思います。
将来的にLyra2REv2でも遅延・寡占が問題になった場合はアルゴリズムの変更が検討されるでしょう。
ASICの首を絞めるのはASICによって遅延を引き起こす一部のユーザーにあります。
逆に遅延も無く、高いネットハッシュが安定して続くのであればアルゴリズムの変更はありません。
---
- hosts: localhost
connection: local
tasks:
- debug:
var: ansible_ssh_user
- debug:
message: "{{ item }}"
with_items:
- "{{ ansible_ssh_user }}"
[lae@yuzu netbox]$ sudo lxc-create --name c7 --template centos -- --release 7
Host CPE ID from /etc/os-release:
Checking cache download in /var/cache/lxc/centos/x86_64/7/rootfs ...
Cache found. Updating...
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
* base: sjc.edge.kernel.org
* extras: mirror.sjc02.svwh.net
* updates: mirror.sjc02.svwh.net
No packages marked for update
Dec 06 09:55:19 lilienne audit[16313]: ANOM_ABEND auid=1017 uid=1017 gid=1017 ses=2 pid=16313 comm="Chrome_~dThread" exe="/usr/lib/firefox/firefox" sig=11 res=1
Dec 06 09:55:19 lilienne audit[2741]: ANOM_ABEND auid=1017 uid=1017 gid=1017 ses=2 pid=2741 comm="Chrome_~dThread" exe="/usr/lib/firefox/firefox" sig=11 res=1
Dec 06 09:55:19 lilienne audit[2808]: ANOM_ABEND auid=1017 uid=1017 gid=1017 ses=2 pid=2808 comm="Chrome_~dThread" exe="/usr/lib/firefox/firefox" sig=11 res=1
Dec 06 09:55:19 lilienne audit[9717]: ANOM_ABEND auid=1017 uid=1017 gid=1017 ses=2 pid=9717 comm="Chrome_~dThread" exe="/usr/lib/firefox/firefox" sig=11 res=1
Dec 06 09:55:19 lilienne audit[5043]: ANOM_ABEND auid=1017 uid=1017 gid=1017 ses=2 pid=5043 comm="Chrome_~dThread" exe="/usr/lib/firefox/firefox" sig=11 res=1
Dec 06 09:55:19 lilienne kernel: Chrome_~dThread[16315]: segfault at 0 ip 00007f4937d9cbcb sp 00007f4930642b00 error 6 in libxul.so[7f4937d93000+3c3f000]
Dec 06 09:55:19 lilienne kernel: Code: 15 05 48 8d 15 b6 55 d3 03 48 89 1
@lae
lae / readme.adoc
Last active January 28, 2020 19:06
minecraft watcher

Minecraft Watcher

Periodically checks a Minecraft server for changes in online players, logs those changes, and sends desktop notifications (using libnotify) for those changes.

Setup

The following setup assumes python-gobject (Python 3) is installed by your package manager. This dependency can be satisified by pip install PyGObject from within the venv, but compile issues might occur (and is outside the scope of this article).

@lae
lae / backup.sh
Created June 13, 2020 21:15
minecraft server differential backup
#!/usr/bin/env bash
# Runs a backup of the Hololive Fan Minecraft server and stores it offsite.
# Bits and pieces from https://github.com/nicolaschan/minecraft-backup (MIT License)
ROOT=/home/lae/.hololive-mc
MCROOT=$ROOT/data
WORLD=world
SAVEROOT=$ROOT/backups
OFFSITE_SAVEROOT="[email protected]:/mnt/umaru/backups/hololive-mc"
SSH_ARGS="-i $ROOT/backup.key"
@lae
lae / gist:61adb314aa3866546e1c6ee3b880a004
Created September 5, 2020 18:34
E301-9D-8CN4 VFIO related specs
IOMMU Group 0:
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
IOMMU Group 1:
00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge [1022:1453]
IOMMU Group 10:
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B [1022:1454]
IOMMU Group 11:
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 59)
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
IOMMU Group 12:
@lae
lae / gist:7d63de94e55b9c1a680adb0c8934111d
Created September 7, 2020 22:41
arch glibc updates
[lae@lilienne ~]$ grep glibc /var/log/pacman.log
[2019-05-27 11:14] [ALPM] installed glibc (2.29-1)
[2019-06-19 08:17] [ALPM] upgraded glibc (2.29-1 -> 2.29-2)
[2019-06-29 00:28] [ALPM] upgraded glibc (2.29-2 -> 2.29-3)
[2019-07-25 01:35] [ALPM] upgraded glibc (2.29-3 -> 2.29-4)
[2019-10-17 00:34] [ALPM] upgraded glibc (2.29-4 -> 2.30-1)
[2019-11-10T02:33:24-0800] [ALPM] upgraded glibc (2.30-1 -> 2.30-2)
[2019-11-21T15:11:27+0900] [ALPM] upgraded glibc (2.30-2 -> 2.30-3)
[2020-01-08T00:38:05-0800] [ALPM] installed lib32-glibc (2.30-3)
[2020-02-15T16:30:26-0800] [ALPM] upgraded glibc (2.30-3 -> 2.31-1)