Skip to content

Instantly share code, notes, and snippets.

@mightybyte
mightybyte / Counters.hs
Last active December 5, 2024 01:23
Reflex/React Comparison (look at the revision history)
{-# LANGUAGE OverloadedStrings #-}
import Reflex.Dom
counter = el "div" $ do
click <- button "Click"
clicks <- foldDyn (\() n -> n + 1) 0 click
el "p" $ display clicks
return clicks
main = mainWidget $ do
@MichaelMoroz
MichaelMoroz / BH.shader
Last active December 5, 2024 01:23
VR Schwarzschild black hole shader (works with SPS and SPS-I)
Shader "Misha/Schwartzschild"
{
Properties
{
[Header(Black Hole)]
_EventHorizonRadius("Event Horizon Radius", Range(0.0, 0.5)) = 0.075
[Header(Accretion)]
[HDR] _AccretionColor("Color", Color) = (1,1,1,1)
@shortjared
shortjared / list.txt
Last active December 5, 2024 01:23
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
@riipandi
riipandi / linux-cmd-cheatsheet.md
Created July 12, 2012 12:16
Linux Command Cheat Sheet

#Linux Cheat Sheet

##File Commands:

  • ls – directory listing
  • ls -al – formatted listing with hidden files
  • cd dir - change directory to dir
  • cd – change to home
  • pwd – show current directory
  • mkdir dir – create a directory dir
  • rm file – delete file
@NyaMisty
NyaMisty / outline_graph.py
Created September 1, 2022 01:02
IDA Graph view with outlined function included
"""
summary: drawing custom graphs
description:
Showing custom graphs, using `ida_graph.GraphViewer`. In addition,
show how to write actions that can be performed on those.
keywords: graph, actions
"""
from __future__ import print_function
# -----------------------------------------------------------------------
@shamil
shamil / mount_qcow2.md
Last active December 5, 2024 01:20
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active December 5, 2024 01:19
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@paulirish
paulirish / how-to-view-source-of-chrome-extension.md
Last active December 5, 2024 01:18
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

@TRtomasz
TRtomasz / stremio-server.json
Created December 12, 2018 10:06
Stremio fast settings
{
"serverVersion": "4.3.4",
"appPath": "Path to the stremio-server",
"cacheRoot": "Path to the cache-folder",
"cacheSize": 2147483648,
"btMaxConnections": 200,
"btHandshakeTimeout": 20000,
"btRequestTimeout": 4000,
"btDownloadSpeedSoftLimit": 4194304,
"btDownloadSpeedHardLimit": 39321600,
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active December 5, 2024 01:17
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized