Skip to content

Instantly share code, notes, and snippets.

@tjjh89017
tjjh89017 / Monaco for Powerline.md
Created September 12, 2023 17:48 — forked from lujiacn/Monaco for Powerline.md
Powerline-patched Monaco for Windows and OSX

Powerline-patched Monaco for Windows and OSX

This font is manually patched with Fontforge. It includes the glyphs from DejaVu Sans Mono for Powerline.

I recommend DirectWrite-patched VIM builds. I'm using KaoriYa's build (http://www.kaoriya.net/software/vim/)

Usage

Add the following lines to your .vimrc/_vimrc:

@tjjh89017
tjjh89017 / sierrakeygen.py
Created November 2, 2022 10:09 — forked from jkinred/sierrakeygen.py
Sierra Keygen
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# (c) B.Kerler 2019 under MIT license
# If you use my code, make sure you refer to my name
# If you want to use in a commercial product, ask me before integrating it
import serial
import sys
import argparse
from binascii import hexlify, unhexlify
#!/bin/bash
### Workaround
OLDCONFIG="$(find /oem -name "*99_custom.yaml.*" | sort | head -n1)"
cp /oem/99_custom.yaml /oem/99_custom.yaml.XXX
cp "${OLDCONFIG}" "/oem/99_custom.yaml"
### End Workaround
#!/usr/bin/env python3
import subprocess
# Need VPN to get this image
image = 'registry.suse.de/suse/containers/suse-microos/5.2/containers/suse/sle-micro-rancher/5.2:latest'
def get_zypper_packages(dockerfile):
with open(dockerfile, 'r') as f:
EFI stub: Booting Linux Kernel...
EFI stub: EFI_RNG_PROTOCOL unavailable, no randomness supplied
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services and installing virtual address map...
L3c Cache: 8MB
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x500f0000]
[ 0.000000] Linux version 4.15.0-20-generic (buildd@bos02-arm64-029) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-16ubuntu3)) #21-Ubuntu SMP Tue Apr 24 06:16:20 UTC 2018 (Ubuntu 4.15.0-20.21-generic 4.15.17)
[ 0.000000] Machine model: APM X-Gene Mustang board
[ 0.000000] earlycon: uart8250 at MMIO32 0x000000001c020000 (options '')
[ 0.000000] bootconsole [uart8250] enabled
@tjjh89017
tjjh89017 / README.md
Created August 3, 2020 10:36 — forked from rafaelfess/README.md
EdgeOS: Scheduled PPPoE reconnect configuration #EdgeRouter

EdgeOS: Scheduled PPPoE reconnect configuration

It will restart the PPPoE connection every day at 7a.m

The benefit to using the task-scheduler is that your commands get saved in config folder which ensures that they get copied over during firmware upgrades.

Creating the script file

cd /config/user-data && sudo mkdir scripts && sudo chown root scripts && cd scripts
interfaces {
ethernet eth0 {
address 140.131.179.251/23
address 2001:288:1009:1178::251/64
duplex auto
hw-id 00:50:56:90:ac:be
ipv6 {
dup-addr-detect-transmits 1
router-advert {
cur-hop-limit 64
TUI
-
1. 顯示全部的種子狀態,包含進度條與速度
2. 無須任何參數
-
CLI
-
rm -f /var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.pyc
sed -i "/data\['pci_passthrough_/d" /var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py
sed -i "/self._get_pci_passthrough_devices()/d" /var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py
1. HP DL380E
https://goods.ruten.com.tw/item/show?21733926629628
缺 HDD
缺 TRAY
缺 DDR3 REG ECC
缺 RAID Card
$4800
2. RAID Card
https://item.taobao.com/item.htm?spm=a1z09.2.0.0.4eda2e8d2vyezX&id=543326996277&_u=tvpdkjvf6d4