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
#!/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:
@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
@tjjh89017
tjjh89017 / index.js
Created August 22, 2014 05:48 — forked from edokeh/index.js
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \