Skip to content

Instantly share code, notes, and snippets.

@chriso
chriso / http.go
Last active September 9, 2023 17:16
// Go HTTP Hello World Server + non-blocking I/O test.
//
// This requires gotip (https://pkg.go.dev/golang.org/dl/gotip) for:
// - https://github.com/golang/go/commit/41893389
// - https://github.com/golang/go/commit/c5c21845
// - https://github.com/golang/go/commit/a17de43e
//
// Compile http.wasm:
//
// $ GOOS=wasip1 GOARCH=wasm gotip build -o http.wasm http.go
@ganapathichidambaram
ganapathichidambaram / git_formatted_patch_generation_and_apply.md
Last active May 22, 2023 13:15
To Generate formatted patch file and apply using git command

Generate Patch

Generate Last one Patch based on Commit ID:

To generate the formatted patch of last one commit.

@IanColdwater
IanColdwater / twittermute.txt
Last active July 2, 2024 02:25
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@blake
blake / k3s-helmchart-generate.py
Last active April 11, 2022 16:54
Helper script to generate HelmChart CRDs for use with the K3s Kubernetes
#!/usr/bin/env python3
# Copyright (c) 2019 Blake Covarrubias
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
"""Helper script to generate HelmChart CRDs for use with the K3s Kubernetes
This script creates HelmChart resource definitions for use on the K3s Kubernetes
distribution. The command line arguments closely resemble the behavior of
@TNick
TNick / create-openwrt.sh
Created August 2, 2019 16:46
proxmox openwrt
#!/bin/bash
# Inspired by https://github.com/whiskerz007/proxmox_tuya-convert_container/blob/master/create_container.sh
# Arguments
#
# 1 - LXC_STORAGE (local-lvm by default)
# 2 - DISK_SIZE (1G by default) can be a number and must be followed
# by either a G or a M
# 3 - TEMPLATE (local:vztmpl/openwrt-18.06-openwrt_18.06.4_amd64.tar.gz by default)
# 4 - CORES (1 by default)
@mzipay
mzipay / .bashrc
Created January 9, 2019 18:29
sqlplus with readline
function sqlplus {
socat READLINE,history=$HOME/.sqlplus_history EXEC:"$ORACLE_HOME/bin/sqlplus $(echo $@ | sed 's/\([\:]\)/\\\1/g')",pty,setsid,ctty
status=$?
}
#include <WiFi.h>
#include <WiFiUdp.h>
WiFiUDP udp;
const char * ssid = "SSID";
const char * password = "PASS";
boolean connected = false;
void setup()
{
@AHaymond
AHaymond / bash-colors.md
Last active May 27, 2024 20:11 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@Daniel-dk
Daniel-dk / espNow_broadcast
Created November 28, 2017 17:40
ESP-Now broadcast example
/**
ESPNOW - Basic communication - Broadcast
Date: 28th September 2017
Original Author: Arvind Ravulavaru <https://github.com/arvindr21>
modified by Daniel de kock
Purpose: ESPNow Communication using Broadcast
Resources: (A bit outdated)
a. https://espressif.com/sites/default/files/documentation/esp-now_user_guide_en.pdf