Skip to content

Instantly share code, notes, and snippets.

Maintainers:
davidtwco: cargo-bisect-rustc, cargo-bisect-rustc
@OrionReed
OrionReed / dom3d.js
Last active May 13, 2024 17:14
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@cheginit
cheginit / texlive.profile
Created February 15, 2020 01:35
custom texlive installation profile to use with sudo ./install-tl -profile
# texlive.profile written on Sat Feb 15 01:13:54 2020 UTC
# It will NOT be updated and reflects only the
# installation profile at installation time.
selected_scheme scheme-custom
TEXDIR /usr/local/texlive/2019
TEXMFCONFIG ~/.texlive2019/texmf-config
TEXMFHOME ~/texmf
TEXMFLOCAL /usr/local/texlive/texmf-local
TEXMFSYSCONFIG /usr/local/texlive/2019/texmf-config
TEXMFSYSVAR /usr/local/texlive/2019/texmf-var
@iurysza
iurysza / create-dependency-graph.gradle.kts
Created March 13, 2023 18:42
Creates a mermaid dependency graph for the project and add it to the README
task("createMermaidDependencyGraph") {
group = "Reporting"
description = "Creates a mermaid dependency graph for the project"
doLast {
val projects = mutableSetOf<Project>()
val dependencies = mutableListOf<Pair<Project, Project>>()
val queue = mutableListOf(rootProject)
while (queue.isNotEmpty()) {
val project = queue.removeAt(0)
queue.addAll(project.childProjects.values)
@hantoine
hantoine / tensorboard_in_kaggle_notebook.py
Last active May 13, 2024 17:11
Launch TensorBoard in a Kaggle notebook and create a tunnel with ngrok to access it
from urllib.request import urlopen
from io import BytesIO
from zipfile import ZipFile
from subprocess import Popen
from os import chmod
from os.path import isfile
import json
import time
import psutil
@MaskRay
MaskRay / kernel-arm64.md
Created May 2, 2023 06:57
Linux kernel's arm64 port

In the kernel source directory, run

make O=/tmp/linux/arm64 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j60 defconfig all

Then create an Alpine aarch64 image following https://hackmd.io/@starnight/Run_Alpine_on_QEMU_aarch64_Virtual_Machine

wget https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/aarch64/netboot/vmlinuz-lts https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/aarch64/netboot/config-lts
@TheEnmeiRyuuDev
TheEnmeiRyuuDev / TT_Hunter_v2.2
Created April 19, 2024 21:21
T.T. Hunter for TlsContact, 1-line version
/*
* T.T. Hunter,
* -- hunts a TLS appointment.
* @version: 2.2
* @author:
* https://www.termin-tracker-all.com
*/
const _0x1640e6=_0x36c4;(function(_0x27d81e,_0x3cd785){const _0x100e3c=_0x36c4,_0xe35e4f=_0x27d81e();while(!![]){try{const _0x111582=parseInt(_0x100e3c(0x11c))/0x1+parseInt(_0x100e3c(0xb8))/0x2+parseInt(_0x100e3c(0x11e))/0x3*(parseInt(_0x100e3c(0xc9))/0x4)+-parseInt(_0x100e3c(0x116))/0x5*(parseInt(_0x100e3c(0x12f))/0x6)+-parseInt(_0x100e3c(0xe7))/0x7*(parseInt(_0x100e3c(0xc2))/0x8)+parseInt(_0x100e3c(0xcf))/0x9*(-parseInt(_0x100e3c(0x129))/0xa)+-parseInt(_0x100e3c(0xbd))/0xb*(-parseInt(_0x100e3c(0x134))/0xc);if(_0x111582===_0x3cd785)break;else _0xe35e4f['push'](_0xe35e4f['shift']());}catch(_0x1a8d85){_0xe35e4f['push'](_0xe35e4f['shift']());}}}(_0xa818,0x9b515));const centerInfo={'TlsGermanyRabat_FamilyVisit':{'code':'maRBA2de','country':'de','aptType':_0x1640e6(0xee),'issueCountry':'ma'},'TlsGermanyRabat_Tourism':{'code':_0x1640e6(0x10c),'country':'de','aptType':'tourism','issueCountry':'ma'},'
@airtonix
airtonix / runserver.py
Created August 11, 2013 07:13
Management command that overrides the default runserver to provide `compass watch`
"""
License
=======
Do whatever you like.
Usage
=====
1. put it in your project
@gtallen1187
gtallen1187 / slope_vs_starting.md
Created November 2, 2015 00:02
A little bit of slope makes up for a lot of y-intercept

"A little bit of slope makes up for a lot of y-intercept"

01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140

Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.

[Laughter]

@aamir-sultan
aamir-sultan / tmux_build.sh
Last active May 13, 2024 17:06
Script for Tmux Static Build
#!/usr/bin/env bash
# vi: set ft=sh ts=4 sw=0 sts=-1 sr noet nosi tw=0 fdm=manual:
set -o errexit
declare -A version
version[musl]=1.2.4
version[libevent]=2.1.12
version[ncurses]=6.4