Skip to content

Instantly share code, notes, and snippets.

@Creta5164
Creta5164 / OpenInVSCode.cs
Created May 13, 2024 13:54
Adds the ability to open with VSCode to the right-click menu to Godot's file system dock.
#if TOOLS
using System.IO;
using System.Linq;
using Godot;
using static Godot.GD;
namespace CretaPark.GodotTools;
[Tool]
@joulgs
joulgs / terminal.txt
Last active May 13, 2024 16:50
How install libssl1.1 on ubuntu 22.04
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
@CodeShakingSheep
CodeShakingSheep / nextcloud-deck-export-import.py
Last active May 13, 2024 16:50 — forked from svbergerem/nextcloud-deck-export-import.py
Nextcloud Deck Export/Import (Note that all comments will be created from the user account specified in the first lines of the script)
# You need to have the 'requests' module installed, see here: https://pypi.org/project/requests/
import requests
# Note regarding 2FA
# You can either disable 'Enforce 2FA' setting and disable '2FA'. Then you can just use your regular user password.
# Or you can just use an app password, e.g. named 'migration' which you can create in 'Personal settings' --> 'Security'. After successful migration you can delete the app password.
urlFrom = 'https://nextcloud.domainfrom.tld'
authFrom = ('username', 'user password or app password')
urlTo = 'https://nextcloud.domainto.tld'
@umayr
umayr / recover-deleted-branch.sh
Created April 1, 2016 11:41
How to recover a deleted branch
## Pre-requisite: You have to know your last commit message from your deleted branch.
git reflog
# Search for message in the list
# a901eda HEAD@{18}: commit: <last commit message>
# Now you have two options, either checkout revision or HEAD
git checkout a901eda
# Or
git checkout HEAD@{18}
@0xseck
0xseck / challenge.js
Created May 10, 2024 09:17
RSU Javascript Challenge
(function(_0x31a5e3,_0x14d26b){var _0x17a877=_0x1d55,_0x5a5875=_0x31a5e3();while(!![]){try{var _0x3cd259=parseInt(_0x17a877(0x24c))/0x1*(parseInt(_0x17a877(0x186))/0x2)+-parseInt(_0x17a877(0x2ef))/0x3*(-parseInt(_0x17a877(0x198))/0x4)+parseInt(_0x17a877(0x304))/0x5*(-parseInt(_0x17a877(0xf2))/0x6)+-parseInt(_0x17a877(0x292))/0x7+-parseInt(_0x17a877(0x90))/0x8*(parseInt(_0x17a877(0x226))/0x9)+-parseInt(_0x17a877(0x192))/0xa*(-parseInt(_0x17a877(0x26f))/0xb)+-parseInt(_0x17a877(0x1f7))/0xc;if(_0x3cd259===_0x14d26b)break;else _0x5a5875['push'](_0x5a5875['shift']());}catch(_0xd67e94){_0x5a5875['push'](_0x5a5875['shift']());}}}(_0x1020,0x7e5ee),function(_0x37ee49){var _0x71877d=_0x1d55,_0x3e428b=window[_0x71877d(0x2f3)]||window['P'],_0x1ddf01=_0x3e428b['_namespace']||_0x3e428b[_0x71877d(0x282)],_0x264bdb=_0x1ddf01?_0x1ddf01(_0x71877d(0x26a),_0x71877d(0x24b)):_0x3e428b;_0x264bdb[_0x71877d(0x310)]?_0x264bdb[_0x71877d(0x310)](_0x37ee49)(_0x264bdb,window):_0x264bdb[_0x71877d(0x2f5)](function(){_0x37ee49(_0x264bdb,wind
@fnky
fnky / ANSI.md
Last active May 13, 2024 16:48
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@nrk
nrk / command.txt
Created April 2, 2012 19:19
Using ffprobe to get info from a file in a nice JSON format
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"
@Abreto
Abreto / crystal-disk-mark-fio-bench.sh
Created December 27, 2022 12:55 — forked from O1ahmad/crystal-disk-mark-fio-bench.sh
CrystalDiskMark-esque Disk Benchmark (using fio)
#!/bin/bash
LOOPS=5 #How many times to run each test
SIZE=1024 #Size of each test, multiples of 32 recommended for Q32 tests to give the most accurate results.
WRITEZERO=0 #Set whether to write zeroes or randoms to testfile (random is the default for both fio and crystaldiskmark); dd benchmarks typically only write zeroes which is why there can be a speed difference.
QSIZE=$(($SIZE / 32)) #Size of Q32Seq tests
SIZE+=m
QSIZE+=m
@Fartomy
Fartomy / ytshorts.md
Created January 11, 2024 17:30
Destroy YouTube Shorts

🔴🤯 Destroy YouTube Shorts

Do yourself a favor and follow the steps below to get rid of this curse:

Steps

  1. Install uBlock Origin Extension
  2. Go to settings
  3. Open the My Filters option
  4. Copy and paste it in there
@dhondta
dhondta / README.md
Last active May 13, 2024 16:44
Tinyscript steganography tool implementing the Pixel Value Differencing algorithm

StegoPVD

This Tinyscript-based tool allows to apply steganography based on PVD (Pixel Value Differencing) in order to retrieve hidden data from an image.

$ pip install tinyscript
$ tsm install stegopvd