Skip to content

Instantly share code, notes, and snippets.

View 2Grey's full-sized avatar

Sergey Ryazanov 2Grey

  • ID-360 LLC
  • Izhevsk
View GitHub Profile
@2Grey
2Grey / awg-json.sh
Created November 20, 2024 15:17
Adaptation of wg-json script for AmneziaVPN
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
#
# Copyright (C) 2015-2020 Jason A. Donenfeld <[email protected]>. All Rights Reserved.
exec < <(exec wg show all dump)
printf '{'
while read -r -d $'\t' device; do
if [[ $device != "$last_device" ]]; then
@2Grey
2Grey / frendlyDeviceNames.swift
Last active March 6, 2025 04:34
Friendly device name (Swift)
func frendlyDeviceNames(forModel model: String) -> String {
let frendlyNames: [String: String] = [
// * Simulator
"i386": "Simulator",
"x86_64": "Simulator",
"arm64": "Simulator",
// * Apple TV
"AppleTV1,1": "Apple TV (1Gen)",
@2Grey
2Grey / README.md
Created November 17, 2017 07:26 — forked from aldur/README.md
OnePlusRoot

Root OnePlus5 without unlocking the bootloader

Gain adb root.

$ adb shell am start -n com.android.engineeringmode/.qualcomm.DiagEnabled --es "code" "angela"

Download Magisk-v14.0 and extract it somewhere. Download MagiskManager.