Skip to content

Instantly share code, notes, and snippets.

View darkmanlv's full-sized avatar
💭
In Trance We Trust

DaRkMaN darkmanlv

💭
In Trance We Trust
View GitHub Profile
@echo off
set /a _Debug=0
::==========================================
:: Get Administrator Rights
set _Args=%*
if "%~1" NEQ "" (
set _Args=%_Args:"=%
)
fltmc 1>nul 2>nul || (
cd /d "%~dp0"
@darkmanlv
darkmanlv / opkg_updater.sh
Created November 22, 2025 00:42 — forked from franklinmoy3/opkg_updater.sh
OpenWRT OPKG update all installed packages
#!/bin/sh
# Example of job definition (as add job using crontab -e):
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
# 30 02 15,28 * * /root/opkg_updater.sh
@darkmanlv
darkmanlv / lampa_plugins.txt
Created November 6, 2025 11:11
LAMPA plugins (rus description)
Плагины для онлайн просмотра:
1️⃣ Онлайн Stream: http://arkmv.ru/vod
2️⃣ Онлайн Prestige: https://bwa.to/plugins/prestige.js
3️⃣ Stream 2: http://llpp.in/v/vod.js
4️⃣ Онлайн Мод: https://nb557.github.io/plugins/online_mod.js
5️⃣ Онлайн MODS's: http://lampa.stream/modss
@darkmanlv
darkmanlv / music-history.txt
Created October 9, 2024 16:26
History of electronic music...
[_√_] The X-Robot (_2:5020/8500.300_) -> [*X-MUSIC38*]
(из коллекции "Электронная музыка") 10/04/20 (втоpник)
history of electronic music
> House
В середине 80-х в Чикаго возник новый вид танцевальной музыки
- хаус. Он просто появился. Десять лет спустя он кажется
@darkmanlv
darkmanlv / dark.cfg
Last active October 9, 2024 15:58
darkman's quake3 config
// DarkMan|B.o.D's Quake 3 Configuration Script
// ===========================================================
// Copyright 1998,1999,2000,2001 DarkMan|B.o.D, All Rights Reserved.
// ===========================================================
unbindall
// Section 1: FPS Enhancing GFX Settings
seta r_glDriver "opengl32" // opengl driver
@darkmanlv
darkmanlv / update_csv.py
Created May 22, 2024 20:31
update one csv file with data from other csv file
import pandas as pd
# Read the first CSV file with semicolon separator
file1 = 'file1.csv'
df1 = pd.read_csv(file1, sep=';', skiprows=1)
# Read the second CSV file with semicolon separator
file2 = 'file2.csv'
df2 = pd.read_csv(file2, sep=';', skiprows=1)
@darkmanlv
darkmanlv / malfini.sh
Last active May 22, 2024 20:31
Eshop (4.0) (malfini) api usage with curl
# grab products and filter by needed fields, save result in csv file
# malfini api docs https://api.malfini.com/api-docs/index.html
# Step 1: Authenticate and get the JWT token
TOKEN=$(curl -s -X POST "https://api.malfini.com/api/v4/api-auth/login" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-d '{"username":"username","password":"password"}' | jq -r '.access_token')
# Step 2: Use the JWT token to get the product list
@darkmanlv
darkmanlv / pi-hole.conf
Created March 21, 2024 16:31 — forked from joaocarmo/pi-hole.conf
Unbound configuration for Pi-hole + DoT (DNS over TLS)
# /etc/unbound/unbound.conf.d/pi-hole.conf
server:
# If no logfile is specified, syslog is used
# logfile: "/var/log/unbound/unbound.log"
verbosity: 0
interface: 127.0.0.1
port: 5335
do-ip4: yes
@darkmanlv
darkmanlv / ffmpeg-convert-mp3-to-wave
Last active November 11, 2025 12:36 — forked from vunb/ffmpeg-convert-mp3-to-wave
Convert mp3 to wave format using ffmpeg
ffmpeg -i input.mp3 -acodec pcm_s16le -ac 1 -ar 16000 output.wav
# To convert all mp3 files in a directory in Linux:
for f in *.mp3; do ffmpeg -i "$f" -acodec pcm_s16le -ac 1 -ar 16000 "${f%.mp3}.wav"; done
# Or Windows:
for /r %i in (*) do ffmpeg -i %i -acodec pcm_s16le -ac 1 -ar 16000 %i.wav
@darkmanlv
darkmanlv / gist:ceb1b93b1078386382a58b30f3676f34
Created February 6, 2023 21:44
Run Tails on VirtualBox like external usb drive
Step 1: Prepare disk image
Download the USB image of Tails from the project's website
Convert the downloaded image to VDI format:
$ VBoxManage convertfromraw Tails-amd64-5.1.img Tails.vdi --format vdi
(NOTE: the .img file is no longer required after this and may be deleted)
Resize the VDI to make room for the persistent volume: