Skip to content

Instantly share code, notes, and snippets.

source build/envsetup.sh; lunch aosp_pinenote-userdebug && ./build.sh -UCAu
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
TARGET_PRODUCT=aosp_pinenote
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
@ClashTheBunny
ClashTheBunny / setup.ps1
Created May 10, 2022 10:47 — forked from oscartbeaumont/setup.ps1
Setup Machine
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
echo "Configure Computer Name"
$computerName = Read-Host 'Enter New Computer Name'
Write-Host "Renaming this computer to: " $computerName -ForegroundColor Yellow
Rename-Computer -NewName $computerName
echo "Fixing time"
Set-TimeZone "W. Australia Standard Time"
net start w32time
@ClashTheBunny
ClashTheBunny / reinstall_VPS_from_inside.sh
Last active February 19, 2023 18:34 — forked from dotsh/reinstall_VPS_from_inside.sh
DIY install debian on Oracle Cloud Infrastructure ( Free Tier )
# should works on any cloud-init enabled hypervisor (openstack.. )
# start from a ubuntu minimal install
# we need to shrink down the used space to move it in a tmpfs of 700MB
while ! ssh -o ConnectTimeout=2 -p 22 ubuntu@$instanceIP; do sleep 1; done
# make sure we are on the highest kernel, so we can delete all the others ...
sudo apt update && sudo apt dist-upgrade -y && sudo apt install lsof && sudo reboot
@ClashTheBunny
ClashTheBunny / .gitignore
Last active April 20, 2024 20:43 — forked from DieterReuter/user-data-wifi.yml
cloud-init configuration for RPi4 debian64pi Client
wpa_supplicant.conf
#!/bin/bash
if [[ -z "$NGROK_TOKEN" ]]; then
echo "Please set 'NGROK_TOKEN'"
exit 2
fi
if [[ -z "$USER_PASS" ]]; then
echo "Please set 'USER_PASS' for user: $USER"
@ClashTheBunny
ClashTheBunny / .vimrc_local
Last active September 27, 2019 22:04
Edit YAML in VIM by converting to EDN
augroup YAML
au!
au BufReadPost *.yaml %!yaml2edn
au BufReadPost *.yaml set ft=clojure
au BufWritePre *.yaml %!edn2yaml
au BufWritePost *.yaml %!yaml2edn
au BufWritePost *.yaml set nomod
augroup END
From d55d963af8f42fe4caa4dac1d39968aad7864437 Mon Sep 17 00:00:00 2001
From: Randall Mason <randall@mason.ch>
Date: Mon, 20 Aug 2018 19:16:32 -0500
Subject: [PATCH] Add option to bind early in ldappasswd
ldappasswd is slightly different from a standard passwd workflow in that it
requests an old password, then a new password, then the old password
again. This confuses people who are used to the unix passwd tool as
well as people who use password manager. I've seen quite a few people
who have generated a new password, overwriting the old one, and then
@ClashTheBunny
ClashTheBunny / keybase.md
Created September 15, 2017 15:58
Keybase Proof

Keybase proof

I hereby claim:

  • I am clashthebunny on github.
  • I am clashthebunny (https://keybase.io/clashthebunny) on keybase.
  • I have a public key ASB4pXOZrlfT6DAIrkcV0EvxydsyrUESlEn_CIO3JYjcawo

To claim this, I am signing this object:

@ClashTheBunny
ClashTheBunny / .gitignore
Last active March 4, 2017 19:14
A map of Papua New Guinea with a plane animation.
ne_10m_*