Skip to content

Instantly share code, notes, and snippets.

View KnightChaser's full-sized avatar
📻
Buscando la libertad para algún día

Garam Lee KnightChaser

📻
Buscando la libertad para algún día
View GitHub Profile
@pabloleonalcaide
pabloleonalcaide / checkImageExist.js
Created May 17, 2018 08:08
Check if a image file exists with Javascript
/**
* Checking if an image exist in your image folder
*/
let loadImage = function(variable){
var image = new Image();
var url_image = './ImageFolder/' + variable + '.jpg';
image.src = url_image;
if (image.width == 0) {
return `<img src='./ImageFolder/defaultImage.jpg'>`;
} else {
@wynand1004
wynand1004 / snake_game.py
Created September 2, 2018 08:56
A Simple Snake Game made in Python 3
# Simple Snake Game in Python 3 for Beginners
# By @TokyoEdTech
import turtle
import time
import random
delay = 0.1
# Score
@ctrlaltdev
ctrlaltdev / badges.md
Last active October 28, 2023 12:38
Tech Badges
LANGUAGE BADGE MD
ASSEMBLY ASSEMBLY ![ASSEMBLY](https://img.shields.io/badge/_-ASM-6E4C13.svg?style=for-the-badge)
C C ![C](https://img.shields.io/badge/_-C-555555.svg?style=for-the-badge)
C# C# ![C#](https://img.shields.io/badge/_-CS-178600.svg?style=for-the-badge)
C++ C++ ![C++](https://img.shields.io/badge/_-CPP-F34B7D.svg?style=for-the-badge)
CSS CSS ![CSS](https://img.shields.io/badge/_-CSS-563D7C.svg?style=for-the-badge)
DART DART ![DART](https://img.shields.io/badge/_-DART-00B4AB.svg?style=for-the-badge)
DOCKERFILE ![DOCKERFILE](https:
@looopTools
looopTools / Read File to std::vector<uint8_t> in C++
Created February 1, 2019 13:33
How to read a file from disk to std::vector<uint8_t> in C++
inline std::vector<uint8_t> read_vector_from_disk(std::string file_path)
{
std::ifstream instream(file_path, std::ios::in | std::ios::binary);
std::vector<uint8_t> data((std::istreambuf_iterator<char>(instream)), std::istreambuf_iterator<char>());
return data;
}
@Neo23x0
Neo23x0 / Base64_CheatSheet.md
Last active May 30, 2025 16:36
Learning Aid - Top Base64 Encodings Table

Base64 Patterns - Learning Aid

Base64 Code Mnemonic Aid Decoded* Description
JAB 🗣 Jabber $. Variable declaration (UTF-16), e.g. JABlAG4AdgA for $env:
TVq 📺 Television MZ MZ header
SUVY 🚙 SUV IEX PowerShell Invoke Expression
SQBFAF 🐣 Squab favorite I.E. PowerShell Invoke Expression (UTF-16)
SQBuAH 🐣 Squab uahhh I.n. PowerShell Invoke string (UTF-16) e.g. Invoke-Mimikatz
PAA 💪 "Pah!" &lt;. Often used by Emotet (UTF-16)
@alphaolomi
alphaolomi / index.md
Last active May 20, 2025 06:04
Quote of the Day (QOTD) Protocol

Quote of the Day

from https://www.gkbrk.com/wiki/qotd_protocol/

Tags: networking protocol

Quote of the Day is a simple protocol that is used to deliver daily quotes. Although its usage is almost nonexistent these days, there are still a few public servers. The protocol is defined by RFC 865. According to the RFC, a QOTD server is run on port 17 for TCP and UDP connections.

The RFC recommends that;

@manurautela
manurautela / kernel_and_user_trace_001.cpp
Created October 5, 2021 15:09
krabs etw parse sysmon events
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// This example shows how to use a user_trace and a kernel_trace in the same program.
#include <iostream>
#include <thread>
#include <condition_variable>
#include "..\..\krabs\krabs.hpp"
#include "examples.h"
@lykn
lykn / buttons.md
Last active June 14, 2025 20:07
A gist which shows/tells you how to make buttons using discord.py v2(version 2.0.0a)

Note: Before we go any further. Let me make this real clear that the following gist uses the OFFICIAL discord.py library and not forks like discord_components, nextcord, etc... So when your using this code but a different library and fuck up don't comment something mean or go to a help channel in the server and say "this gist is misleading" or "bad gist who wrote this" when your at fault, trust me I'm going to fuck you up😅

Just a reminder^^

Related Links:

DPY's Docs

Discord's Docs

@ThioJoe
ThioJoe / Icon-Upscale.bat
Last active January 31, 2025 20:34
Low-Res Icon Upscaler Batch Script
@echo off
setlocal enabledelayedexpansion
rem | Lines beginning with 'rem' are comments
rem -------------------------------------------------------------------------------------------
rem | "Icon Upscaler" Script by ThioJoe: https://github.com/ThioJoe
rem | I created this script specifically for upscaling very low res (such as 256x256) icons like those in Windows. It uses a combination of Image Magick (to first improve the transparency edges) and the RealCugan-ncnn-vulkan upscaler which seems to perform the best for this use case. Of course, the script can be used for all sorts of images, but I have found this to yield the best results of any other method, and better than just using an upscaler alone.