- Set the same erlang cookies (
~/.erlang-cookie
or:erlang.set_cookie :abc
) - On the WSL machine, use
ifconfig
to find out the IP address of the WSL machine - Start nodes with FQDN using their IP address as hostname:
iex --name main@[ip] -S mix [command]
- On the WSL machine, run
epmd -names
to find the port of the erlang node that has just been started - On the WSL host, run these commands in powershell:
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
<!doctype html> | |
<html> | |
<head> | |
<title>Test</title> | |
<style> | |
body { | |
color: white; | |
background: black; | |
font-family: "Helvetica", Arial, 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
defmodule PolymorphicEmbed do | |
@moduledoc """ | |
Allows you to embed with an unknown schema at compile time. | |
The schema is decided by a `type_field` which could be an elixir module, | |
but also an enum which can be converted into a module with an `embedded_schema`. | |
""" | |
use Ecto.Type |
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
violence_hblood 6 | |
violence_hgibs 6 | |
violence_ablood 6 | |
violence_agibs 6 | |
hud_fastswitch "1" | |
bind "F1" "vesthelm; defuser" | |
bind "F2" "ak47; m4a1" | |
bind "F3" "galil; famas" | |
bind "F4" "sg552; aug" |
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
let child = require("child_process") | |
let source_map = require("source-map") | |
let SourceMapConsumer = source_map.SourceMapConsumer | |
let path = require("path") | |
var crypto = require('crypto'); | |
module.exports = function(source, sourceMap) { | |
this.cacheable() | |
this.async() | |
var self = this |
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
*smoothScroll.js* | |
*smooth*.js* | |
*nicescroll*js* | |
*jquery.mousewheel.js* | |
*plugins-scroll.js* | |
https://d33wubrfki0l68.cloudfront.net/bundles/85ee573a175fbccec4ed26bf47ede7fd06c1d248.js |
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
defmodule RepoStream do | |
defmodule Producer do | |
use GenStage | |
defstruct [:demand, :pid] | |
def start_link() do | |
GenStage.start_link(__MODULE__, self()) | |
end |
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
defmodule Cluster.RabbitStrategy do | |
use GenServer | |
use Cluster.Strategy | |
import Cluster.Logger | |
alias Cluster.Strategy.State | |
@routing_key "cluster.heartbeat" | |
def start_link(opts) do |
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
defmodule Swarm.DynamicSupervisor do | |
use GenServer | |
require Logger | |
defstruct [ | |
:child_name, | |
:child_module, | |
:child_args, | |
:group, | |
:pid, |
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
displaySleep = false -- Need better way to determine initial state of this variable. But it should be the truth most of the time. | |
systemSleep = false | |
function handleCaffeinateUpdates() | |
wifiPower = hs.wifi.interfaceDetails().power | |
if displaySleep and systemSleep and wifiPower then | |
print("Disabling WiFi before going to sleep") | |
hs.wifi.setPower(false) | |
elseif not displaySleep and not systemSleep and not wifiPower then | |
print("Woke up - enabling wifi") |
NewerOlder