Skip to content

Instantly share code, notes, and snippets.

Avatar

momoterraw andrewvmail

  • Vancouver
View GitHub Profile
View gist:d442b7239611a55afd60f4e71166ab2f
diff --git a/lib/sparrow/apns.ex b/lib/sparrow/apns.ex
index ae60b02..83b4233 100644
--- a/lib/sparrow/apns.ex
+++ b/lib/sparrow/apns.ex
@@ -141,6 +141,17 @@ defmodule Sparrow.APNS do
"action=handle_push_response, result=fail, reason=#{inspect(reason)}"
end)
+ if reason === :TooManyProviderTokenUpdates do
+ _ =
@andrewvmail
andrewvmail / Action.scpt
Last active Oct 6, 2020
KB maestro open terminal modified to open using iTerm2, taken from https://forum.keyboardmaestro.com/t/execute-a-script-in-terminal/4853/15 ```cd ~/Library/Application\ Support/Keyboard\ Maestro/Keyboard\ Maestro\ Actions ```
View Action.scpt
# Description: Part of a KM action. Passes a command or script to the Terminal.
# Author: Tom Floeren <ecdltf@mac.com>, http://dflect.net
# Version: 2.1.0
# Mod. Date: 2017-12-06
set winFront to system attribute "KMPARAM_Bring_Terminal_to_foreground"
set winNew to system attribute "KMPARAM_New_Terminal_window"
set theScript to do shell script "echo $KMPARAM_Script"
set kmVars to system attribute "KMPARAM_KM_variables"
@andrewvmail
andrewvmail / metal-programming.md
Last active Sep 25, 2020
Notes on metal programming
View metal-programming.md
  • float 0, 0, 1, 1 means r, g, b, alpha
  • MDLMesh(scnGeometry: to do this you need to import import SceneKit.ModelIO
  • float vertex data x,y,z,pad
@andrewvmail
andrewvmail / sockets.md
Last active Aug 11, 2020
Notes on playing around with sockets
View sockets.md

Udp, Listen, Keep open ,Wait(timeout) 0

nc -ulk  12345 -w0

Client UDP

nc -u localhost 12345 
View opopspec.lua
print "hi"
function dump(o)
if type(o) == 'table' then
local s = '{ '
for k,v in pairs(o) do
if type(k) ~= 'number' then k = '"'..k..'"' end
s = s .. '['..k..'] = ' .. dump(v) .. ','
end
return s .. '} '
else
View opopspec.lua
print "hi momo"
function dump(o)
if type(o) == 'table' then
local s = '{ '
for k,v in pairs(o) do
if type(k) ~= 'number' then k = '"'..k..'"' end
s = s .. '['..k..'] = ' .. dump(v) .. ','
end
return s .. '} '
else
View samizdat-shell-help.bash
#!/bin/bash
###
### my-script — does one thing well
###
### Usage:
### my-script <input> <output>
###
### Options:
### <input> Input file to read.
### <output> Output file to write. Use '-' for stdout.
View new-app-checklist.md
View dnd.md
DND

Metamagic

At 3rd level, you gain the ability to twist your spells to suit your needs. You gain two of the following Metamagic options of your choice. You gain another one at 10th and 17th level.

You can use only one Metamagic option on a spell when you cast it, unless otherwise noted.