Skip to content

Instantly share code, notes, and snippets.

@realvjy
realvjy / ChoasLinesShader.metal
Last active May 21, 2024 23:43
Choas Lines - Metal Shader
// Lines
float hash( float n ) {
return fract(sin(n)*753.5453123);
}
// Slight modification of iq's noise function.
float noise(vector_float2 x )
{
vector_float2 p = floor(x);
vector_float2 f = fract(x);
@ducnp
ducnp / DataSources.csv
Created June 30, 2019 19:58
MITRE - ATT&CK
TechniqueID Data Source
Technique/T1001 Packet capture,Process use of network,Process monitoring,Network protocol analysis
Technique/T1002 File monitoring,Binary file metadata,Process command-line parameters,Process monitoring
Technique/T1003 API monitoring,Process command-line parameters,Process monitoring,PowerShell logs
Technique/T1004 Windows Registry,File monitoring,Process monitoring
Technique/T1005 File monitoring,Process monitoring,Process command-line parameters
Technique/T1006 API monitoring
Technique/T1007 Process command-line parameters,Process monitoring
Technique/T1008 Packet capture,Netflow/Enclave netflow,Malware reverse engineering,Process use of network,Process monitoring
Technique/T1009
@sherrytp
sherrytp / Awesome_CS.md
Last active May 21, 2024 23:35
Awesome Quant resources

Awesome CS Courses Awesome

CS Course Lists other than ClassCentral[https://www.classcentral.com/]

Introduction

There is a lot of hidden treasure lying within university pages scattered across the internet. This list is an attempt to bring to light those awesome CS courses which make their high-quality material i.e. assignments, lectures, notes, readings & examinations available online for free.

Table of Contents

@r0lodex
r0lodex / localssl.md
Last active May 21, 2024 23:35
Setting Up Local SSL

Automatic

Updated 24-05-2020

NAME=$1

mkdir $NAME
cd $NAME

# Generate private key
# settings we’re about to change
osascript -e 'tell application "System Preferences" to quit'
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.macos` has finished
while true; do
sudo -n true
sleep 60
kill -0 "$$" || exit
@ww9
ww9 / gist_markdown_examples.md
Last active May 21, 2024 23:30
Gist markdown examples

Gist markdown examples

A collection of Markdown code and tricks that were tested to work in Gist.

This and all public gists in https://gist.github.com/ww9 are Public Domain. Do whatever you want with it including , no need to credit me.

Todo

  • Reformat this whole document and assimilate these:
@bgauduch
bgauduch / multiple-repository-and-identities-git-configuration.md
Last active May 21, 2024 23:26
Git config with multiple identities and multiple repositories

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple:

Karabiner layouts for symbols and navigation

Gavin Sinclair, January 2022

Introduction

I use Karabiner (configured with Gosu) to make advanced key mappings on my Apple computer. Karabiner allows you to create “layers”, perhaps simulating those on a programmable mechanical keyboard. I make good use of these layers to give me easy access (home-row or nearby) to all symbols and navigational controls, and even a numpad.

The motivation is to keep hand movement to a minimum. Decades of coding on standard keyboards has unfortunately left me with hand and wrist pain. I will soon enough own a small split keyboard which will force me to use layers to access symbols etc., so this Karabiner solution, which has evolved over months, is a training run for that.

@banksean
banksean / mersenne-twister.js
Created February 10, 2010 16:24
a Mersenne Twister implementation in javascript. Makes up for Math.random() not letting you specify a seed value.
/*
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace
so it's better encapsulated. Now you can have multiple random number generators
and they won't stomp all over eachother's state.
If you want to use this as a substitute for Math.random(), use the random()
method like so:
var m = new MersenneTwister();