Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
#!/bin/ash | |
set -euo pipefail | |
cd $(dirname "$0") | |
CF_API=https://api.cloudflareclient.com/v0i1909051800 | |
WG_IFACE=cfwarp | |
regen=true | |
if [ -e keys.cfg ]; then |
KEYMAPOPTS="us us" | |
HOSTNAMEOPTS="-n alpine" | |
INTERFACESOPTS="auto lo | |
iface lo inet loopback | |
auto eth0 | |
iface eth0 inet dhcp | |
hostname alpine | |
" | |
TIMEZONEOPTS="-z UTC" |
using System; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
int[] rgb_color = new int[]{255, 0, 255}; | |
string hex_color = "#FF00FF"; | |
Console.WriteLine(calculate(hex_color)); | |
int[] x = calculate(rgb_color); |
#!/usr/bin/awk -f | |
BEGIN { | |
D="cd /overlay/upper/usr/lib/opkg/info&&" | |
C=D"ls *.list" | |
S="sort -n" | |
while(C|getline>0) { | |
P=substr(F=$1,1,length($1)-5) | |
J=D"du -sk $(cat "F")" | |
s=0 | |
while(J|getline>0) { |
#!/bin/sh | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
set -x | |
REVISION=8.212.04-r0 | |
URL=http://dl-cdn.alpinelinux.org/alpine/v3.10/community/armv7/ | |
PACKAGES="openjdk8 openjdk8-jre openjdk8-jre-lib openjdk8-jre-base" |
server { | |
listen 80; | |
listen [::]:80; | |
root /var/dav/webdav_root; | |
# dav allowed method | |
dav_methods PUT DELETE MKCOL COPY MOVE; | |
# Allow current scope perform specified DAV method | |
dav_ext_methods PROPFIND OPTIONS; |
SRC=/media/system/root/LOS15/kernel/samsung/midas | |
KERNEL_OUT=/ramdisk | |
ANDROID_OUT=/media/system/root/LOS15/out | |
GCC=/media/system/root/LOS15/prebuilts/gcc/linux-x86/arm/arm-eabi-7.4/bin/arm-linux-gnueabi- | |
TARGET=midas | |
#$ANDROID_OUT/host/linux-x86/bin/mkbootfs -d $ANDROID_OUT/target/product/$TARGET/system \ | |
# $ANDROID_OUT/target/product/$TARGET/recovery/root | $ANDROID_OUT/host/linux-x86/bin/minigzip > \ | |
# $ANDROID_OUT/target/product/$TARGET/recovery-ramdisk.img |
put [resolve google.com server 8.8.8.8] |
#! /bin/zsh | |
# Buttery powered state | |
adb shell dumpsys battery | grep powered | |
# Unplug battery | |
adb shell dumpsys battery unplug | |
# Reset battery | |
adb shell dumpsys battery reset |