Skip to content

Instantly share code, notes, and snippets.

View BlueskyFR's full-sized avatar

Hugo Cartigny BlueskyFR

View GitHub Profile
@NotNite
NotNite / screeps-webhook.js
Created May 18, 2023 17:28
screeps-webhook.js
const https = require("https");
function ivmWrap(sandbox, name, func) {
const ivm = require("isolated-vm");
const sandboxContext = sandbox.getContext();
const sandboxGlobal = sandboxContext.global;
const sandboxIsolate = sandbox.getIsolate();
sandboxGlobal.setSync("_notnet_ivm", ivm);
sandboxGlobal.setSync("_notnet_" + name, new ivm.Reference(func));
@kborling
kborling / configuration.nix
Created December 24, 2021 23:59
NixOS Configuration (Sway/Wayland Enabled)
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
@fjpalacios
fjpalacios / arch-i3gaps-install.md
Last active October 27, 2024 22:41
Arch + i3-gaps Install Guide

Arch + i3-gaps Install Guide

First set up your keyboard layout. For example, in Spanish:

   # loadkeys es

For a list of all acceptable keymaps:

   # localectl list-keymaps
@elalemanyo
elalemanyo / README.md
Last active October 9, 2024 08:47
Debug zsh startup time

Debug zsh startup time

  1. Inject profiling code

    At the beginning of your .zshrc add following: zmodload zsh/zprof

    and at the end add: zprof

    This will load zprof mod and display what your shell was doing durung your initialization.

@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active November 18, 2024 01:03
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@ganapativs
ganapativs / iTerm2 + oh-my-zsh + Pure theme + zsh plugins setup.md
Last active November 18, 2024 06:01
iTerm2 + oh-my-zsh + Pure theme + zsh plugins setup
@KdotJPG
KdotJPG / OpenSimplex2S.java
Last active November 19, 2024 10:13
Visually isotropic coherent noise algorithm based on alternate constructions of the A* lattice.
/**
* K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex")
*
* More language ports, as well as legacy 2014 OpenSimplex, can be found here:
* https://github.com/KdotJPG/OpenSimplex2
*/
public class OpenSimplex2S {
private static final long PRIME_X = 0x5205402B9270C86FL;
@danfinlay
danfinlay / How to download streaming video.md
Last active October 22, 2024 17:01
How to download a streaming video with Google Chrome

How to download streaming video

Streaming just means a download that they don't want you to keep. But Chrome's developer tools make it easy to access what's really going on under the hood.

Open Developer Tools

From the page where you want to download some things, go into your chrome menu to open the developer tools. You can either:

1.  (On a mac): Command-option-J
2. (On a PC): Control-alt-J
@JosephPecoraro
JosephPecoraro / shell-execution.rb
Last active September 10, 2023 10:12
Shell Execution in Ruby
# Ways to execute a shell script in Ruby
# Example Script - Joseph Pecoraro
cmd = "echo 'hi'" # Sample string that can be used
# 1. Kernel#` - commonly called backticks - `cmd`
# This is like many other languages, including bash, PHP, and Perl
# Synchronous (blocking)
# Returns the output of the shell command
# Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111