This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat" | |
set PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\Llvm\bin | |
llvm-rc.exe helloworld.rc | |
clang.exe -Oz -Wall -Wextra -falign-functions=1 -falign-loops=1 -flto -fno-asynchronous-unwind-tables -fno-ident -fno-stack-protector -fno-unwind-tables -fuse-ld=lld -mwindows helloworld.c helloworld.res -o helloworld.exe -nostdlib -Wl,/SUBSYSTEM:WINDOWS,/ALIGN:16,/FILEALIGN:16 -lcomctl32 -lkernel32 -luser32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/busybox sh | |
# 1) Download a prebuilt BusyBox binary here: | |
# https://busybox.net/downloads/binaries/ | |
# | |
# 2) Prepare your kernel | |
# cp /boot/vmlinuz vmlinuz | |
# | |
# 3) Copy the files | |
# install -Dm0755 busybox-x86_64 initramfs/bin/busybox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* [wxMaxima batch file version 1] [ DO NOT EDIT BY HAND! ]*/ | |
/* [ Created with wxMaxima version 13.04.2 ] */ | |
/* [wxMaxima: input start ] */ | |
FlashRot:matrix( | |
[ cos(rotY)*cos(rotZ), cos(rotY)*sin(rotZ), sin(rotY), 0], | |
[-sin(rotZ), cos(rotZ), 0, 0], | |
[-sin(rotY)*cos(rotZ), -sin(rotY)*sin(rotZ), cos(rotY), 0 ], | |
[trX, trY, 0, 1]); | |
/* [wxMaxima: input end ] */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import colour | |
import numpy | |
import readline | |
def convert(XYZ100): | |
XYZ100 = numpy.asarray(XYZ100) | |
XYZ1 = XYZ100 * 0.01 | |
D50 = colour.CCS_ILLUMINANTS['CIE 1931 2 Degree Standard Observer']['ICC D50'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import json | |
import netaddr | |
def main(): | |
# Download from https://api.steampowered.com/ISteamApps/GetSDRConfig/v1?appid=730 | |
with open('network_config.json', 'r', encoding='utf-8') as f: | |
network_config = json.load(f) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Convert a pixel art to SVG file | |
# Copyright (C) 2021 Star Brilliant | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204 | |
adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration file for dnsmasq. | |
# | |
# Format is one option per line, legal options are the same | |
# as the long options legal on the command line. See | |
# "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details. | |
# Listen on this specific port instead of the standard DNS port | |
# (53). Setting this to zero completely disables DNS function, | |
# leaving only DHCP and/or TFTP. | |
#port=5353 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import itertools | |
import os | |
import unicodedata | |
# pip3 install -U PyYAML | |
import yaml | |
# Windows disallows the following characters in filenames: "*/:<>?\| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BIRD 2.0 utility for DN42 related operations | |
# To be used with: | |
# include "bird-dn42-util.conf"; | |
# in bird.conf main configuration file. | |
function reset_origin (int transit; int origin) | |
{ | |
bgp_path.empty; | |
bgp_path.prepend(origin); | |
bgp_path.prepend(transit); |
NewerOlder