Skip to content

Instantly share code, notes, and snippets.

@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active January 28, 2025 10:12
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

Myths Hackers Believe About Names
  1. People have exactly one "official" full name.
  2. People have exactly one full name which they go by.
  3. People have, at this point in time, exactly one canonical full name.
  4. People have exactly N names, for any value of N.
  5. People’s names fit within a certain defined amount of space.
  6. People’s names do not change.
  7. People’s names are written in ASCII.
  8. People’s names are written in any single character set.
@hballington12
hballington12 / fortran-ifort-windows-vs-vscode-instructions.md
Last active January 28, 2025 10:11
How to Set Up Intel Fortran Development on Windows in Visual Studio & Visual Studio Code

How to Set Up Intel Fortran Development on Windows in Visual Studio & Visual Studio Code

What this guide is for: This post details how to set up a Fortran development environment in Windows using Visual Studio Code (VS-Code) and the Intel Fortran compiler, ifort.

Installations

We will be installing both Visual Studio as well as VS-Code. This is because we will be bootstrapping the debugger from Visual Studio for our development in VS-Code. We will also be installing the Intel Fortran compilers via the Intel oneAPI basekit and HPC toolkit.

@msanford1540
msanford1540 / MultiPartFormData.swift
Last active January 28, 2025 10:10
Swift 5/6 Multipart form-data Support
//
// MultiPartFormData.swift
//
import Foundation
/* Example Call site: */
func upload(imageData: Data) async throws {
guard let url = URL(string: "https://example.com/upload") else { return }
var multipartFormData = MultipartFormData()
@MulattoKid
MulattoKid / CUDA-OpenGL Interoperability.md
Created April 29, 2018 19:48
CUDA-OpenGL Interoperability

Intro #1

I recently decided that I should start to work on my own path tracing "engine" and so here we are. I will try to share as much as possible without it just becoming too much to read. Hopefully what I write will be of some use to others who might run into the same problems I do during this process. Just as a quick disclaimer, here is my setup which I plan to use for throughout the project (hate it or love it, this is what I'm working with):

  • Windows 10
  • Intel i7-6700K @4.2GHz
  • Nvidia GTX 970 (4GB)
  • 16GB RAM
  • Microsoft Visual Studio Community 2017
  • CUDA Toolkit 9.0
  • OpenGL 4.3 (I will occasionally work from my laptop which does not support v4.5)
  • SDL 2.0
@PurpleBooth
PurpleBooth / README-Template.md
Last active January 28, 2025 10:09
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@TahaTesser
TahaTesser / Flutter Network.md
Last active January 28, 2025 10:08
A collection of active Flutter YouTube content creators, newsletters and blogs, personalities, and platforms. If you've suggestions for active content creators, please comment below.
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active January 28, 2025 10:08
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
@githubfoam
githubfoam / fortigate sniff packet cheat sheet
Last active January 28, 2025 10:08
fortigate sniff packet cheat sheet
#=====================================================================
diagnose sniffer packet vs diag debug flow filter
# diagnose sniffer packet checks if the packet reaches fortigate
# diag debug flow filter checks packet's traffic within fortigate internally
diagnose debug flow #trace per-packet operations for flow tracing
diagnose sniffer packet #trace per-Ethernet frame
#=====================================================================
#WEB GUI v7.2.3
#version 300 es
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
out vec4 fragColor;
uniform vec2 resolution;
uniform vec3 orientation;