Skip to content

Instantly share code, notes, and snippets.

View PlastMan420's full-sized avatar

Mustafa Aladdin PlastMan420

  • Egypt
View GitHub Profile
#include <cstdio>
#include <cmath>
#include <string>
#include "raylib.h"
#include "waterpool.hpp"
const int WIDTH = 160;
const int HEIGHT = 160;
using PoolType = Sapphire::WaterPool<WIDTH, HEIGHT>;
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active May 3, 2024 13:01
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@azanium
azanium / jwtRS512.sh
Last active November 11, 2023 00:51 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS512 key
ssh-keygen -t rsa -b 4096 -e SHA512 -f jwtRS512.key
# Don't add passphrase
openssl rsa -in jwtRS512.key -pubout -outform PEM -out jwtRS512.key.pub
cat jwtRS512.key
cat jwtRS512.key.pub
@45413
45413 / string-and-filename-manipulation.ps1
Last active November 14, 2023 22:47
Powershell String and Filename Manipulation
# Working with a [System.IO.FileInfo] Object
## Get file object into variable
PS C:\DATA> $file = Get-ChildItem C:\DATA\test.xls
## Full path name
PS C:\DATA> $file.FullName
C:\DATA\test.xls
## Filename including extension
PS C:\DATA> $file.Name
@alirobe
alirobe / reclaimWindows10.ps1
Last active April 26, 2024 17:59
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@Accalmie
Accalmie / winsock_sniffer.c
Created October 17, 2015 16:32
Winsock Sniffer code in C
/*
Simple Sniffer in winsock
Author : Silver Moon ( m00n.silv3r@gmail.com )
*/
#include "stdio.h"
#include "winsock2.h"
#pragma comment(lib,"ws2_32.lib") //For winsock
@davekobrenski
davekobrenski / frequencies.php
Last active March 3, 2023 17:33
PHP Array of Musical Frequencies
<?php
/**
* Musical Notes to Frequency Table
*
* This array contains all of the notes on a piano with their
* corresponding frequencies. The array is organized into octaves
* making it easy to loop through and output, for example, an html chart
* of notes and frequencies.
*