Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<title>REAPER ACTIONS</title>
<style type="text/css">
body {
background-color: #fff;
color: #424242;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
NETSH WLAN show drivers
# Check for: Hosted network supported : Yes
NETSH WLAN set hostednetwork mode=allow ssid=Your_SSID key=Your_Passphrase
NETSH WLAN start hostednetwork
# NETSH WLAN stop hostednetwork
# Other settings:
# https://www.windowscentral.com/how-turn-your-windows-10-pc-wireless-hotspot
@r4dian
r4dian / gist:02c693cabaca7a211769feafdf29a2ff
Last active May 4, 2017 11:13 — forked from tommorris/gist:284380
map/filter an array: spot the odd one out (I had to edit the python one to use map/filter, it was bothering me)
[1, 2, 3, 4, 5].map {|i| i * 2 }.find_all {|i| i > 5 }
# I have started monkey-patching `alias_method :filter, :find_all` in Array.
@r4dian
r4dian / Android setup tips
Last active July 6, 2017 15:25
Blocking spam from "Whats New" app & Chrome suggestions
Android setup tips
( Blocking spam from "Whats New" app & Chrome suggestions )
var d = new Date('2013-03-14')
var n = new Date()
var year = Math.floor( Math.ceil( Math.abs( n.getTime()-d.getTime() ) / (1000 * 60 * 60 * 24) ) / 365 +1 )
function nth(n){return["st","nd","rd"][((n+90)%100-10)%10-1]||"th"}
console.log("It is the " + year + nth(year) + " Year of Luigi")
@r4dian
r4dian / clean up MacOS crap.ps1
Last active February 14, 2017 11:12
Clean up MacOS shit off shared drives and stop it placing them (but only on Network volumes)
cmd /c "del /s /q /f /a ._.*"; cmd /c "del /s /q /f /a .DS_STORE"
# ^ is this unwise ? ¯\_(ツ)_/¯
# you can add /p to be prompted for each deletion
@r4dian
r4dian / bash_prompt.sh
Last active March 28, 2017 14:48 — forked from bradsokol/bash_prompt.sh
Set colour bash prompt according to active virtualenv, Git, Mercurial or Subversion branch and return status of last command.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current Git, Mercurial or Subversion repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts. [Are you!? - r4dian]
@r4dian
r4dian / taks.json
Last active September 25, 2016 19:53
Pico-8 task runner for VSCode
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "C:/Path/To/Your/pico8.exe",
"isShellCommand": false,
"echoCommand": true,
"args": ["-windowed", "1", "-run", "${file}"],
"showOutput": "always"
}
@r4dian
r4dian / mattermost-monokai.txt
Last active August 4, 2016 11:25 — forked from ojdon/mattermost-monokai.txt
A rough Monokai theme for Mattermost.
#333333,#fefefe,#f92672,#FFFFFF,#fff,#f92672,#66d9ef,#FFFFFF,#a6e22e,#f92672,#bfcde8,#272822,#444444,#fefefe,#66d9ef,#66d9ef,#272822,#f92672,#FEFEFE,#000000,monokai
@r4dian
r4dian / transfer.sh.ps1
Last active March 16, 2024 14:26
Upload to transfer.sh from Powershell
function transfer ($filename)
{
$file = Get-Item $filename;
invoke-webrequest -method put -infile $file.FullName https://transfer.sh
}
"Test" | Set-Content .\test.txt
transfer(".\test.txt")