Skip to content

Instantly share code, notes, and snippets.

View BoQsc's full-sized avatar
💭
I may be slow to respond.

Feldwor BoQsc

💭
I may be slow to respond.
  • Public Domain
  • Baltic States
  • 04:26 (UTC +03:00)
View GitHub Profile
@BoQsc
BoQsc / is-your-Facebook-confirmation-code.md
Last active December 30, 2022 09:50
FB-95216 is your Facebook confirmation code. No you have not been hacked.

FB-12345 is your Facebook confirmation code.

No you have not been hacked.

1. Someone entered your email address into Forgot password.

2. And selected: Send Code via SMS.

image

If you are getting this SMS message sent to your phone, that means that someone clicked Forgot Password on the Facebook.com entry page, entered your email into it and Proceeded with Send Code via SMS.

@BoQsc
BoQsc / codepage-tester-cmd
Last active December 29, 2022 18:31
Windows Command Prompt Codepage tester
@ECHO OFF
SETLOCAL EnableDelayedExpansion
FOR /L %%i IN (1,1,65001) DO (
chcp %%i >nul 2>nul
TITLE %%i
IF "!ERRORLEVEL!"=="0" (
echo %%i !ERRORLEVEL!
:root {
--sidebar-active: #2f3136
}
a, a:hover {
color: #13abe8
}
/* Apply margin to server scroller */
[class*="SidebarBase"]:first-child > [class^="Base-sc"] {
// ==UserScript==
// @name hCAPTCHA solver
// @namespace hCAPTCHA solver
// @version 1.0
// @description Automatically solves hCAPTCHAs in browser
// @author Abdul Rehman Sheikh - engageub
// @licence MIT
// @match *://*/*
// @grant GM_xmlhttpRequest
// @grant GM_setValue
@BoQsc
BoQsc / extractsrt.cmd
Last active October 5, 2022 17:52
Extract srt from mkv using ffmpeg
@ECHO OFF
REM DOWNLOAD ffmpeg first: https://www.gyan.dev/ffmpeg/builds/
REM this one will extract the second subtitle from the video file.
ffmpeg -i "D:\Movies\TV Animacija\KonoSuba\Kono Subarashii Sekai ni Shukufuku wo! 2 [Dual]\[Cleo]Kono_Subarashii_Sekai_ni_Shukufuku_wo!_2_-_02_(Dual Audio_10bit_BD1080p_x265).mkv" -map 0:s:1 subs.srt
REM this one will extract srt subtitles without adding markup
ffmpeg -i "D:\Movies\TV Animacija\KonoSuba\Kono Subarashii Sekai ni Shukufuku wo! 2 [Dual]\[Cleo]Kono_Subarashii_Sekai_ni_Shukufuku_wo!_2_-_02_(Dual Audio_10bit_BD1080p_x265).mkv" -map 0:s:1 -c text subs.srt
PAUSE
@BoQsc
BoQsc / powercfg_change_name.md
Created September 19, 2022 13:34
Change name of the Power Plan

powercfg -changename 771e1d52-a886-4550-8cbc-a3cc74057b8d "Battery" "Lower CPU usage"

@BoQsc
BoQsc / gist:1c1b0a6eab57d19ca60c833dc7e8f69a
Created September 18, 2022 11:33
Split string in Batch
@ECHO OFF
setlocal enabledelayedexpansion
set "_string=--User="C:/Your Friend/ asd/aaa /here""
echo %_string%
for /f "tokens=1* delims==" %%a in ("%_string%") do (
echo %%a
echo %%b
)
endlocal
@ECHO OFF
SETLOCAL EnableDelayedExpansion
ECHO TEST PRIVILEGIES > "%windir%\tcc_installation_privilegies.txt"
IF NOT EXIST "%windir%\tcc_installation_privilegies.txt" (
ECHO PLEASE ELEVATE PRIVILEGIES BY RUNNING AS ADMINISTRATOR
PAUSE
EXIT /B
)
IF EXIST "%windir%\tcc_installation_privilegies.txt" DEL "%windir%\tcc_installation_privilegies.txt"
@BoQsc
BoQsc / Add symlink.cmd
Created September 8, 2022 07:21
Symlink files to Windows folder.
@BoQsc
BoQsc / unblock_dlls.cmd
Last active September 5, 2022 12:21
Unblock DLLs Bannerlord Modules After merging Land of Sika patch https://www.moddb.com/mods/the-land-of-sika/downloads/thelandofsika-148-patch
@ECHO OFF
CD "C:\GOG Games\Mount & Blade II Bannerlord\Modules\TheLandOfSika\bin\Win64_Shipping_Client"
FOR %%a in (*.dll) do (echo.>%%a:Zone.Identifier)
PAUSE