Skip to content

Instantly share code, notes, and snippets.

View Vbbab's full-sized avatar

Vbbab

  • United States
  • 07:02 (UTC -07:00)
View GitHub Profile
@aruruka
aruruka / enable_gpedit.bat
Created July 16, 2020 06:16
enable gpedit on windows
@echo off
pushd "%~dp0"
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt
for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"C:\Windows\servicing\Packages\%%i"
pause
@rafael-neri
rafael-neri / script.sh
Created May 26, 2020 13:28
Git Rename Tag Local and Remote
# Create new from old
git tag new old
# Remove old tag
git tag -d old
# Sync changes from old tag to remote
git push origin :refs/tags/old
@fnky
fnky / ANSI.md
Last active May 3, 2025 05:34
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@lcb
lcb / README.md
Last active January 31, 2023 17:22
emojIDs

EmojID

The function emojid() deterministically converts hexadecimal strings (like sha1sum, md5sum, uuid4, uuid5) into emoji containing strings, remojid() converts back.

Implementations in Javascript and Python are provided.

What for?

¯\_(ツ)_/¯
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active May 3, 2025 08:56
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@alexmojaki
alexmojaki / incremental_zalgo.py
Created May 26, 2016 18:39
Simple Zalgo text generator in Python where the Zalgoness increases with each word.
from random import choice
marks = map(unichr, range(768, 879))
string = 'clear the current exception in between your catch and the bare raise OH GOD NO EVENTLET IT COMES'
words = string.split()
print(' '.join(''.join(c + ''.join(choice(marks)
for _ in range(i // 2 + 1)
) * c.isalnum()
for c in word)
for i, word in enumerate(words)))
@jsancheznet
jsancheznet / static-lib-howto-msvc.txt
Created March 4, 2016 17:43
Building Static Library in MSVC Command Line
When you build on the Visual Studio command line, you must build the program in two steps.
First, run cl /c /EHsc MyLib.cpp to compile the code and create an object file that's named MyLib.obj.
(The cl command invokes the compiler, Cl.exe, and the /c option specifies compile without linking. For more information, see /c (Compile Without Linking).)
Second, run lib MathFuncsLib.obj to link the code and create the static library MathFuncsLib.lib.
(The lib command invokes the Library Manager, Lib.exe. For more information, see LIB Reference.)
@rxaviers
rxaviers / gist:7360908
Last active May 3, 2025 05:34
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: