netsh interface portproxy add v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=3000 connectaddress=172.29.81.153
netsh advfirewall firewall add rule name= "Open Port 3000" dir=in action=allow protocol=TCP localport=3000
netsh interface portproxy add v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=3000 connectaddress=172.29.81.153
netsh advfirewall firewall add rule name= "Open Port 3000" dir=in action=allow protocol=TCP localport=3000
to run https://github.com/robmikh/minesweeper-rs.git | |
1. Get https://github.com/retep998/winapi-rs/tree/0.3/x86_64/lib/libwinapi_d2d1.a | |
2. Put C:\Users\name\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libd2d1.a |
#/bin/bash | |
CLOUDFLARE_API_TOKEN=$1 | |
EMAIL_ADDRESS=$2 | |
YOUR_DOMAIN=$3 | |
mkdir -p "$HOME/certbot" && touch "$HOME/certbot/cloudflare.ini" | |
echo "dns_cloudflare_api_token = $CLOUDFLARE_API_TOKEN" > $HOME/certbot/cloudflare.ini | |
sudo docker run -it --rm --name certbot \ |
State machines are everywhere in interactive systems, but they're rarely defined clearly and explicitly. Given some big blob of code including implicit state machines, which transitions are possible and under what conditions? What effects take place on what transitions?
There are existing design patterns for state machines, but all the patterns I've seen complect side effects with the structure of the state machine itself. Instances of these patterns are difficult to test without mocking, and they end up with more dependencies. Worse, the classic patterns compose poorly: hierarchical state machines are typically not straightforward extensions. The functional programming world has solutions, but they don't transpose neatly enough to be broadly usable in mainstream languages.
Here I present a composable pattern for pure state machiness with effects,
Download emacs-w64 and extract somewhere, e.g. a tools
or apps
folder like C:\Users\<user>\tools\emacs
.
Emacs and many other applications store its configuration in the user's "home" folder. Translated directly from the Unix world, that is %UserProfile%
(C:\Users\<user>
), but Windows prefers %AppData%
instead (C:\Users\<user>\AppData\Roaming
).
For simplicity's sake, override this by specifying the HOME
environment variable explicitly. Emacs and some other applications (e.g. MinGW) lets this override the default.
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 | |
+ _ = |
# Description: Part of a KM action. Passes a command or script to the Terminal. | |
# Author: Tom Floeren <[email protected]>, 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" |
MDLMesh(scnGeometry:
to do this you need to import import SceneKit.ModelIO
Udp, Listen, Keep open ,Wait(timeout) 0
nc -ulk 12345 -w0
Client UDP
nc -u localhost 12345
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 |