- 🗒 - List of useful links for amlogic S9xx/S8xx SoCs i've compiled by myself.
⚠️ - Please leave a comment if you have a suggestion. This list will not contain paid programs
This file contains hidden or 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 python | |
# | |
# Generates a PBKDF2 hash for qBittorrent WebUI password. This is useful for setting the password in the config file. | |
# | |
# NOTE: Hashing algorithm must match https://github.com/qbittorrent/qBittorrent/blob/master/src/base/utils/password.cpp | |
# | |
# Usage: python qbittorrent_hash.py | |
# | |
# Author: Beau Hastings (https://github.com/hastinbe) | |
# Date: 2024-01-09 |
This file contains hidden or 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
function getUser(userId) { | |
const userData = fetch(`https://api.com/api/user/${userId}`) | |
.then(response => response.json()) | |
.then(data => console.log(data.name)) | |
.catch(error => console.log(error)) | |
.finally(() => /*{ aviso de fim de carregamento }*/) | |
} | |
getUser(1); // "Nome Sobrenome" |
This file contains hidden or 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
set(CMAKE_C_COMPILER clang) | |
set(CMAKE_CXX_COMPILER clang++) | |
cmake_minimum_required(VERSION 3.18) | |
set(APP_NAME "example-app") | |
project("${APP_NAME}") | |
set(CMAKE_CXX_STANDARD 20) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -std=c++20 -Wno-multichar") |
Directories on host machine:
-
/data/certbot/letsencrypt
-
/data/certbot/www
-
Nginx server in docker container
docker run -d --name nginx \
This file contains hidden or 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 | |
#================================================= | |
# System Required: :Debian 9+/Ubuntu 18.04+/Centos 7+ | |
# Description: Trojan&V2ray&SSR script | |
# Version: 1.0.0 | |
# Author: Jeannie | |
# Blog: https://jeanniestudio.top/ | |
# Official document: www.v2ray.com | |
#================================================= | |
sh_ver="1.0.0" |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"net/http/httputil" | |
"net/url" | |
"github.com/gin-gonic/gin" | |
) |
This file contains hidden or 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 | |
echo "Getting the latest version of trojan-go" | |
latest_version="$(curl -s "https://api.github.com/repos/p4gefau1t/trojan-go/releases" | jq '.[0].tag_name' --raw-output)" | |
echo "${latest_version}" | |
trojango_link="https://github.com/p4gefau1t/trojan-go/releases/download/${latest_version}/trojan-go-linux-amd64.zip" | |
mkdir -p "/usr/bin/trojan-go" | |
mkdir -p "/etc/trojan-go" |
NewerOlder