This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Android setup tips | |
( Blocking spam from "Whats New" app & Chrome suggestions ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#333333,#fefefe,#f92672,#FFFFFF,#fff,#f92672,#66d9ef,#FFFFFF,#a6e22e,#f92672,#bfcde8,#272822,#444444,#fefefe,#66d9ef,#66d9ef,#272822,#f92672,#FEFEFE,#000000,monokai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |