Skip to content

Instantly share code, notes, and snippets.

View rawsh's full-sized avatar

Robert Washbourne rawsh

View GitHub Profile
@rawsh
rawsh / readme.md
Last active April 5, 2024 00:56
Emulating BotW on PC with CEMU and Wii USB Helper
  • Download wii usb helper https://github.com/FailedShack/USBHelperInstaller/releases
  • Create emulation and games directory (Documents/CEMU/Games)
  • Download CEMU http://cemu.info/ and extract to emulation directory (Documents/CEMU/cemu)
  • Download CEMUhook and extract to the same directory https://cemuhook.sshnuke.net/
  • Launch wii usb helper and use vault.titlekeys.ovh as the title key site (database)
  • Search Breath Of the Wild and select Add, Add Update, and Add DLC then click download on the bottom left
  • Download the Cache from here and move it to the folder cemu/shaderCache/transferable With Vulkan backend you don't need a transferable shader cache.
  • Launch the cemu executable. Click input and Xinput then select the controller and map buttons. Set CPU -> triple core recompiler in the top bar settings.
  • Click prepare game for emulation in Wii USB Helper then "Play this game on PC" (you can also add
@rawsh
rawsh / .Xresources
Last active February 11, 2024 11:56
.Xresources theme for rofi and terminal
! *----------------------------*
! | Dotfiles - .Xresources |
! *----------------------------*
! This files contains configuration for:
! * terminal colours
! * urxvt
! * rofi
Definition of a norm\n• Assigns a positive number to each non-zero vector\n• Is only zero if the vector is an all-zero vector\n• Think of it as a function\nNorm properties\n• Homogeneity: ∥αx∥ = |α|∥x∥, for x ∈ RN and α ∈ R\n• Subadditivity: ∥x + y∥ ≤ ∥x∥ + ∥y∥, for x, y ∈ RN\n• Separability: x = 0 if and only if ∥x∥ = 0
@rawsh
rawsh / music.sh
Last active April 11, 2023 05:09
Print out the currently playing spotify song. Great with tint2
{ echo "$(spotify-now -i " <b>%title" -e "" -p " paused" | awk -v len=40 '{ if (length($0) > len) print substr($0, 1, len-3) "..."; else print; }' | tr -d '&' | awk '{print $0 "</b>"}')"; echo "$(spotify-now -i '%artist' -p ' ' -e ' ')"; } | tr "\n" " "
@rawsh
rawsh / README.txt
Created October 10, 2021 10:02
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@rawsh
rawsh / README.txt
Created October 10, 2021 02:43
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=true&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@rawsh
rawsh / yabar.conf
Created November 28, 2016 23:54
My yabar config (.config/yabar/yabar.conf)
bar-list = ["topbar"];
topbar: {
// List of all blocks
block-list: ["workspaces", "space", "title", "cpu", "memory", "network", "date"];
font: "Droid Sans Mono 8"
// set monitor if you wish:
// monitor: "HDMI-1";
@rawsh
rawsh / package.json
Created March 10, 2018 18:41
Mailgun subscribers for a static website.
{
"name": "nodelist",
"version": "1.0.0",
"description": "Mailing lists for DevPy.me",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Robert Washbourne",
"license": "ISC",
@rawsh
rawsh / lock.sh
Created February 16, 2017 23:53
Simple lock script preserving background with xwobf and i3lock.
#!/bin/bash
scrot /tmp/screen.png
xwobf -s 11 /tmp/screen.png
i3lock --textcolor=ffffff00 --insidecolor=ffffff1c --ringcolor=ffffff3e --linecolor=ffffff00 --keyhlcolor=00000080 --ringvercolor=00000000 --separatorcolor=22222260 --insidevercolor=0000001c --ringwrongcolor=00000055 --insidewrongcolor=0000001c -i /tmp/screen.png
rm /tmp/screen.png
@rawsh
rawsh / s.java
Created December 10, 2019 21:58
void reheapDown(int i) {
int left = i*2 +1;
int right = i*2 +2;
if (right < size) {
int largerChild;
if (heap[left] >= heap[right]) {
largerChild = left;
} else {
largerChild = right;