A simple downloader written in bash
./nekosama.sh "$(./nekosama-tui.sh)"
- gum
- curl-impersonator
- jq
function fail([int]$code, [string]$msg) { | |
Write-Error $msg | |
exit $code | |
} | |
function getValidURL([string]$url) { | |
$lastChar = $url[-1] | |
if($lastChar -ne "/") { | |
return "$url/" | |
} |
#!/bin/env bash | |
MAX_PROCESSES=6 | |
function fail { | |
printf '%s\n' "$1" >&2 ## Send message to stderr. | |
exit "${2-1}" ## Return a code specified by $2, or 1 by default. | |
} | |
function getValidURL { |
#!/bin/env bash | |
trim () { | |
read -rd '' $1 <<<"${!1}" | |
} | |
read -p "Enter Server name: " -r serverName | |
trimmedServerName="$serverName" | |
trim trimmedServerName |
// ==UserScript== | |
// @name dlink4/clicktune bypasser | |
// @version 2024-05-12 | |
// @description try to take over the world! | |
// @author minemobs | |
// @match https://www.dlink4.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=dlink4.com | |
// @grant none | |
// ==/UserScript== |
// ==UserScript== | |
// @name Scroll to bash builtin | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-05-06 | |
// @description Scrolls to bash builtin | |
// @author minemobs | |
// @match https://www.mankier.com/1/bash | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=mankier.com | |
// @grant none | |
// ==/UserScript== |
from ctypes import cdll, pointer, Structure, c_char_p | |
from enum import IntEnum | |
from sys import platform | |
from typing import Optional, Tuple, cast | |
class NFDFilterItem(Structure): | |
_fields_ = [("name", c_char_p), ("spec", c_char_p)] | |
class NFDStatus(IntEnum): |
#!/bin/bash | |
CURL_RES=$(printf "{%s}\n" $(curl -s https://mawaqit.net/fr/champigny94500 | grep -P '"times":\[["\d:,]+\]' --only-matching)) | |
function getDiffUnit { | |
echo "scale=2 ; $(( $(date -d "$(echo "$CURL_RES" | jq .times["$1"] | cut -d '"' -f 2)" "+%s") - $(date "+%s") ))/$2" | bc | |
} | |
function getDiff { | |
getDiffUnit "$1" 3600 | |
} |
version: "2.1" | |
services: | |
gluetun: | |
image: qmcgaw/gluetun | |
cap_add: | |
- NET_ADMIN | |
devices: | |
- /dev/net/tun:/dev/net/tun | |
ports: | |
- 8888:8888/tcp # HTTP proxy |
import kotlinx.serialization.ExperimentalSerializationApi | |
import kotlinx.serialization.Serializable | |
import kotlinx.serialization.json.* | |
import java.awt.image.BufferedImage | |
import java.io.File | |
import java.io.InputStream | |
import java.net.URI | |
import javax.imageio.ImageIO | |
import kotlin.math.floor |