Skip to content

Instantly share code, notes, and snippets.

@ClashTheBunny
ClashTheBunny / setup.ps1
Created May 10, 2022 10:47 — forked from oscartbeaumont/setup.ps1
Setup Machine
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
echo "Configure Computer Name"
$computerName = Read-Host 'Enter New Computer Name'
Write-Host "Renaming this computer to: " $computerName -ForegroundColor Yellow
Rename-Computer -NewName $computerName
echo "Fixing time"
Set-TimeZone "W. Australia Standard Time"
net start w32time
@ClashTheBunny
ClashTheBunny / reinstall_VPS_from_inside.sh
Last active February 19, 2023 18:34 — forked from dotsh/reinstall_VPS_from_inside.sh
DIY install debian on Oracle Cloud Infrastructure ( Free Tier )
# should works on any cloud-init enabled hypervisor (openstack.. )
# start from a ubuntu minimal install
# we need to shrink down the used space to move it in a tmpfs of 700MB
while ! ssh -o ConnectTimeout=2 -p 22 ubuntu@$instanceIP; do sleep 1; done
# make sure we are on the highest kernel, so we can delete all the others ...
sudo apt update && sudo apt dist-upgrade -y && sudo apt install lsof && sudo reboot
@ClashTheBunny
ClashTheBunny / .gitignore
Last active April 20, 2024 20:43 — forked from DieterReuter/user-data-wifi.yml
cloud-init configuration for RPi4 debian64pi Client
wpa_supplicant.conf
#!/bin/bash
if [[ -z "$NGROK_TOKEN" ]]; then
echo "Please set 'NGROK_TOKEN'"
exit 2
fi
if [[ -z "$USER_PASS" ]]; then
echo "Please set 'USER_PASS' for user: $USER"
@ClashTheBunny
ClashTheBunny / README.md
Last active August 26, 2015 14:31 — forked from mbostock/.block
Stacked-to-Grouped Bars

Switch between stacked and grouped layouts using sequenced transitions! Animations preserve object constancy and allow the user to follow the data across views. Animation design by Heer and Robertson. Colors and data generation inspired by Byron and Wattenberg.

@ClashTheBunny
ClashTheBunny / README.md
Last active August 29, 2015 14:19 — forked from tomgp/LICENSE.txt
Clock based on the Degrees, Minutes, and Seconds where the sun is overhead.

This clock's "hour" hand is really a degree hand. It points to the longitude where it is solar noon. The minutes and seconds point to the minutes and seconds of the location where it is solar noon. This is partly bases off of New Earth Time, but adjusted to fit geography more.

Based off of: bl.ocks.org/tomgp/6475678 http://bl.ocks.org/mbostock/4364903 and http://bl.ocks.org/mbostock/4597134

TODO: Make the clock less hard coded between the northern and southern hemisphere.

import time
import random
class MatrixFibonacci:
A = [[1, 1],
[1, 0]]
def __init__(self):
self.__memo = {}
@ClashTheBunny
ClashTheBunny / README.md
Last active August 29, 2015 14:11 — forked from mbostock/.block
A Grouped Bar Chart of Perceived Success Criteria

This grouped bar chart is constructed from a CSV file storing the populations of different states by age group. This is an attempt to improve on this visualization. The chart employs conventional margins and a number of D3 features:

You can see it fully rendered here: http://bl.ocks.org/ClashTheBunny/83d21db6af87fdc90cc4

Be sure to "Open in a new window", so you can see the second graph: http://bl.ocks.org/ClashTheBunny/raw/83d21db6af87fdc90cc4/

{
"id": "ti6yn",
"project": "",
"properties": {
"name": "photobooth",
"environment": {
"runtime": "html",
"src": "preview/iframe.html",
"width": 300,
"height": 300,