Skip to content

Instantly share code, notes, and snippets.

# Custom pacman
nano /etc/pacman.conf
#Color -> Color
ILoveCandy
ParallelDownloads = 15
# Install yay
su
pacman -Syu base-devel nano git sudo go zsh htop
exit
@P0SlX
P0SlX / convert1.sh
Last active July 27, 2022 12:44 — forked from zengxinhui/convert2arch_arm.sh
Replace Oracle Cloud Linux with Arch Linux ARM remotely
Refs:
1. http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
2. https://dl-cdn.alpinelinux.org/alpine/v3.13/releases/aarch64/alpine-virt-3.13.5-aarch64.iso
3. https://wiki.alpinelinux.org/wiki/Replacing_non-Alpine_Linux_with_Alpine_remotely
4. https://wiki.archlinux.org/index.php/installation_guide#Configure_the_system
5. https://archlinuxarm.org/platforms/armv8/generic
Requirement:
Console access.
@P0SlX
P0SlX / postman-pre-request.js
Last active April 20, 2022 12:12 — forked from bcnzer/postman-pre-request.js
Postman pre-request script to automatically get a bearer token from Auth0 and save it for reuse
let getToken = true;
if (pm.collectionVariables.get('accessTokenExpiry') > (new Date()).getTime()){
getToken = false;
}
if (getToken) {
const echoPostRequest = {
url: pm.collectionVariables.get('accessTokenURL'),
method: 'POST',
@P0SlX
P0SlX / rockpro64-auto-fan.py
Created December 11, 2021 23:21
PINE64 ROCKPro64 PWM fan auto control
# Florian SAVOURÉ
# 12/12/2021
#
# This is an old script I wrote for my NAS
# I have an old fan hooked up to the PWM fan header
# This script aims to control the airflow in the case when needed
# It kicks up the fan when 45⁰C is reached and increment the speed according to the CPU temp
#
# I do not guarantee that it will work on other SoC (because of the path)
# But it will on this board with Armbian 21 at least.
@P0SlX
P0SlX / createRomApple1.py
Last active July 8, 2020 16:22
Convert 6502 ascii opcodes into a binary file
#
# Florian SAVOURÉ
# 02/06/2020
#
# This little code can translate ascii opcodes
# like D8 58 A0 7F 8C 12 D0 A9 into a binary file
# that can be used in the Apple I.
# You can use it for whatever you want idc,
# I made it in 10 minutes so if I can save someone's 10 minutes,
# copy this code and execute it.