Skip to content

Instantly share code, notes, and snippets.

View webworker01's full-sized avatar
🎯
Focusing

Web Worker webworker01

🎯
Focusing
View GitHub Profile
@imylomylo
imylomylo / git.commit.count.md
Created July 10, 2019 17:47
git total commits in a branch
git log --pretty=format:'' | wc -l
27812
@rcx
rcx / delete-all-messages.js
Last active December 6, 2025 22:14 — forked from niahoo/delete-all-messages.js
Delete all your messages in a Discord channel
/*
* Discord: Don't copy stuff into this box
* Me: dOn'T COpy sTuFf iNtO tHIs bOx
*/
clearMessages = function (guild_id, author_id, authToken, deleted = new Set()) {
if (guild_id[0] == "_" && guild_id[guild_id.length - 1] == "_") {
alert("Oops! You forgot to set the guild_id. Please fill it in.")
return;
}
if (author_id[0] == "_" && author_id[author_id.length - 1] == "_") {
@leto
leto / get_hush.sh
Last active September 25, 2018 16:05
Fully Indexed Hush Notary Node config
#!/bin/bash
# Make sure to open up port 8888 (Hush p2p port) on your firewall!
# You can see your notary address on Hush here: https://deckersu.github.io/notaries_addresses.html
# This script can generate a HUSH WIF to import: https://raw.githubusercontent.com/StakedChain/StakedNotary/master/validateaddress.sh
# FYI: Your Hush WIF will be the same as your BTC WIF, so you can just use that.
# This script can be used to generate various kinds of WIFs as well: https://github.com/DeckerSU/komodo_scripts/blob/master/genkomodo.php
git clone https://github.com/MyHush/hush
cd hush
@austinjp
austinjp / wifi-on-ubuntu-server-18.md
Last active February 10, 2023 10:10
Enabling wifi on Ubuntu server 18

Wifi on Ubuntu 18 server

TLDR

  1. Install wpasupplicant
  2. Turn on wifi radios: sudo nmcli radio wifi on
  3. Check your devices are recognised even if they're not "managed": sudo iwconfig
  4. Check your wifi (here called "wlp3s0") is capable of detecting nearby routers: sudo iwlist wlp3s0 scan
  5. Configure netplan by dropping a file called 01-netcfg.yaml into /etc/netplan/ or edit existing file there. See example below.
  6. netplan try, netplan generate, netplan apply.
@DaEgi01
DaEgi01 / ShadowSettingsAdjuster.cs
Last active May 3, 2023 00:24
Cities Skylines - Shadow Settings Adjuster
using Harmony;
using ICities;
using System;
using System.Reflection;
using UnityEngine;
using UnityEngine.Rendering;
namespace ShadowSettingsAdjuster
{
/// <summary>
'''
USAGE:
Use python3
Place addresses to track, one per line, in addresses.txt
Place assetchains to track, one per line, in assets.txt
Adjust balance_threshold and send_amount as needed
If you need to specify an alternative komodo_cli location, either pass it as the first argument
when invoking the script, or change the komodo_cli variable.
'''
@ronyx69
ronyx69 / Relight.cs
Last active July 28, 2023 01:56
Source code for Relight mod. Rebalanced and customizable lighting and tonemapping. UI / saving and preset system by Simon Royer. Shadow bias change by saki7. Shadow smoothing change by TPB.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICities;
using UnityEngine;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading;
using System.Xml.Serialization;
@boformer
boformer / SofterShadowsMod.cs
Created November 8, 2017 20:06
Softer Shadows Mod for Cities: Skylines
using System.Reflection;
using ICities;
using UnityEngine;
namespace SofterShadows
{
public class SofterShadowsMod : LoadingExtensionBase, IUserMod
{
public string Name => "Softer Shadows";
public string Description => "Brightens up the shadows of the game";
@Stono
Stono / 99-install-facetime-camera.sh
Created February 27, 2017 10:35
Install the kernal module required for the facetimehd camera to work on Linux
#!/bin/bash
set -e
export CONFIG_MODULE_SIG=n
export CONFIG_MODULE_SIG_ALL=n
export KERNELRELEASE=${1}
echo "Installing FacetimeHD camera for $KERNELRELEASE"
cd /tmp
git clone https://github.com/patjak/bcwc_pcie.git
@keithmorris
keithmorris / drive-format-ubuntu.md
Last active September 22, 2025 03:28
Partition, format, and mount a drive on Ubuntu