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
; AutoHotkey Media Keys | |
; shift + f1 | |
+F1:: Send "{Media_Prev}" | |
; shift + f2 | |
+F2:: Send "{Media_Next}" | |
; shift + f3 | |
+F3:: Send "{Media_Play_Pause}" |
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 | |
REM 1. replace %ProgramFiles%\PuTTY\putty.exe in WinSCP settings (integrations > software > terminal path) | |
REM with "winscp_wt_ssh.bat !@ !# !U !/ !N" | |
REM 2. add your ssh key to ssh-agent (ssh-add %UserProfile%/.ssh/myShhKey) | |
REM if ssh-agent not running - use "Set-Service -Name ssh-agent -StartupType Automatic" & "Start-Service ssh-agent" | |
REM list of params that WinSCP sends to this batch script | |
REM wanna make sure its all good? add 6rd arg "debug" to this script launch params |
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
-- darkrp textWrap fork | |
-- adds maxLines arg | |
local GetTextSize = surface.GetTextSize | |
local sub, gsub = string.sub, string.gsub | |
local function charWrap(text, remainingWidth, maxWidth) | |
local totalWidth = 0 | |
text = gsub(text, ".", function(char) |
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
// https://gist.github.com/Be1zebub/8e525de39d81b7a2bdb672dd8b7df10d | |
// tampermonkey userscript | |
// https://www.tampermonkey.net/ | |
// ==UserScript== | |
// @name Ugly dark theme for flaticon.com | |
// @namespace https://www.flaticon.com/ | |
// @version 0.1 | |
// @description Ugly - but better than nothing, at least now i dont get flashbang. im too lazy to make better styles. | |
// @author https://t.me/be1zebub |
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
local target_width = 180 | |
local aspect_ratio = 16 / 9 | |
local bounds = 32 | |
local function calc(w) | |
local h = w / aspect_ratio | |
if math.floor(h) == h then | |
print(w ..", ".. h) | |
return true |
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
{ | |
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", | |
"meta": { | |
"version": "PTDL_v2", | |
"update_url": null | |
}, | |
"exported_at": "2024-08-30T14:11:19+00:00", | |
"name": "nodejs minimal", | |
"author": "[email protected]", | |
"description": "a generic egg for nodejs", |
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
local ffi = require("ffi") | |
local terminalSize | |
if package.config:sub(1, 1) == "\\" then -- windows | |
local kernel32 = ffi.load("kernel32") | |
ffi.cdef([[ | |
typedef struct _CONSOLE_SCREEN_BUFFER_INFO { | |
uint16_t dwSizeX; | |
uint16_t dwSizeY; | |
uint16_t dwCursorPositionX; |
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
local traceRainbowSpeed = 360 / 2 | |
local traceLength = 360 / 4 | |
local trace = {} | |
local prevX, prevY = input.GetCursorPos() | |
local function DrawTrace() | |
local x, y = input.GetCursorPos() | |
do | |
local dx = x - prevX |
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
-- unfinished markdown parser & renderer | |
local markdown = {} | |
do | |
local markdown_rules = { | |
{ | |
"%*%*%*(.-)%*%*%*", "bolditalic", 3 | |
}, | |
{ |
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
<?php | |
$HOST = "1.1.1.1"; | |
$DATABASE = "xxx"; | |
$USER = "xxx"; | |
$PASSWORD = "xxx"; | |
$TIMEOUT = 5; | |
$dsn = "mysql:host={$HOST};dbname={$DATABASE};charset=utf8"; | |
$opt = Array( |
NewerOlder