pacman -S brotli p7zip
curl -L -o /usr/local/bin/sdat2img.py https://github.com/xpirt/sdat2img/raw/master/sdat2img.py && chmod +x sdat2img.py
brotli -d system.new.dat.br
sdat2img.py system.transfer.list system.new.dat system.img
7z -y -bsp0 -bso0 x system.img
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
/dts-v1/; | |
/ { | |
MP_256; | |
model = "Qualcomm Technologies, Inc. IPQ6018/AP-CP02-C1"; | |
compatible = "qcom,ipq6018-cp02", "qcom,ipq6018"; | |
qcom,msm-id = <0x192 0x00>; | |
#address-cells = <0x02>; | |
#size-cells = <0x02>; | |
interrupt-parent = <0x01>; |
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 bash | |
# | |
# Author: Stefan Buck | |
# License: MIT | |
# https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447 | |
# | |
# | |
# This script accepts the following parameters: | |
# | |
# * owner |
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 bash | |
CIPHERS='ALL:eNULL' | |
DELAY=${2:-0.1} | |
SERVER=${1:?usage: $0 <host:port> [delay, default is ${DELAY}s] [ciphers, default is ${CIPHERS}]} | |
MAXLEN=$(openssl ciphers "$CIPHERS" | sed -e 's/:/\n/g' | awk '{ if ( length > L ) { L=length} }END{ print L}') | |
echo Using $(openssl version). | |
declare -A TLSMAP=( [tls1_1]=cipher [tls1_2]=cipher [tls1_3]=ciphersuites ) |
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
@echo off | |
@title Microsoft Edge Uninstaller [Windows 10 LTSC 2021/21H1 Edition] | |
ver | |
echo+ | |
goto check_admin_permissions | |
:check_admin_permissions | |
echo Script must Run as Administrator! Detecting permissions... | |
net session >nul 2>&1 | |
if %errorLevel% == 0 ( |
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/bash | |
cat << EOF > /etc/systemd/system/monthly.timer | |
[Unit] | |
Description=Run script monthly | |
[Timer] | |
OnCalendar=*-*-01 02:00:00 | |
[Install] |
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
@echo off | |
setlocal | |
rem https://github.com/eamodio/vscode-gitlens/issues/965#issuecomment-734013893 | |
set PATH=%~dp0usr\bin;%PATH% | |
:loop | |
if "%~1" equ "rev-parse" goto rev_parse | |
shift |
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
[Solarized Darcula] | |
text=d2d8d9 | |
cyan(bold)=15968d | |
text(bold)=d2d8d9 | |
magenta=797fd4 | |
green=629655 | |
green(bold)=629655 | |
background=3d3f41 | |
cyan=15968d | |
red(bold)=f24840 |
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/sh -e | |
# Converts OpenVZ VPS to Alpine Linux | |
# WARNING: This script will wipe any data in your VPS! | |
# GPLv2; Partly based on https://gitlab.com/drizzt/vps2arch | |
server=http://images.linuxcontainers.org | |
path=$(wget -O- ${server}/meta/1.0/index-system | \ | |
grep -v edge | awk '-F;' '($1=="alpine" && $3=="amd64") {print $NF}' | tail -1) | |
cd / |
NewerOlder