This document has a more accessible location, here:
http://nickporcino.com/posts/last_mile_interchange.html
I'll maintain a copy here too, this is a nice place to support discussion.
| -module(ntp). | |
| -export([get_time/1, get_time/0]). | |
| -define(NTP_PORT, 123). % udp | |
| -define(SERVER_TIMEOUT, 5000). % ms | |
| -define(EPOCH, 2208988800). % offset yr 1900 to unix epoch | |
| ntp_servers() -> | |
| [ "0.europe.pool.ntp.org", |
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| unsigned int follow(std::vector<unsigned int>& ids, unsigned int v) | |
| { | |
| unsigned int nv = v; | |
| while (ids[nv] != nv) | |
| nv = ids[nv]; | |
| return ids[v] = nv; | |
| } | |
| size_t islandize(const std::vector<unsigned int>& indices, std::vector<unsigned int>& islands) |
| #define KBUILD_MODNAME "foo" | |
| #include <uapi/linux/bpf.h> | |
| #include <linux/bpf.h> | |
| #include <linux/icmp.h> | |
| #include <linux/if_ether.h> | |
| #include <linux/if_vlan.h> | |
| #include <linux/in.h> | |
| #include <linux/ip.h> | |
| #include <linux/tcp.h> | |
| #include <linux/udp.h> |
| /* polkit rule to allow 'pkiuser' to access NitroHSM PCSC interface | |
| * | |
| * file name: /etc/polkit-1/rules.d/99-pkiuser-pcsc.rules | |
| * | |
| * Resources: | |
| * - https://access.redhat.com/blogs/766093/posts/1976313 | |
| * - https://raymii.org/s/articles/Get_Started_With_The_Nitrokey_HSM.html | |
| * | |
| * Installation: | |
| * # dnf install opensc pcsc-lite pcsc-tools |
This document has a more accessible location, here:
http://nickporcino.com/posts/last_mile_interchange.html
I'll maintain a copy here too, this is a nice place to support discussion.
| # http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/fire/8f72f1983b5559bcca0c5d57d5f6b32c/raw/68d7a3735a63ba4b0ed397f188d2e5c29074cc5d/install-new-machine.ps1 | |
| # See http://boxstarter.org/Learn/WebLauncher | |
| Set-WindowsExplorerOptions -EnableShowFileExtensions | |
| cinst clink | |
| # Correct time is important | |
| cinst nettime | |
| # Dependency needed for this | |
| cinst chocolatey | |
| cinst ChocolateyGUI | |
| # Web browser |
| /* | |
| This tool iterates through all the files in your project and checks for scripts. | |
| It then goes through all the GameObjects in all the scenes in the project, and | |
| checks for scripts that are not present on any GameObjects. | |
| Note that this does not mean that the script is not used, just that it is possible that it isn't. | |
| The script could still be used in many other ways. This tool is just to narrow the search for | |
| unused code. |
Over the weekend I spun up a new Elixir :ecto, "2.2.7" project that I was able to get working with CockroachDB and this adapter fork - with some caveats I wanted to share to help others.
Only the root user can create databases
This requires you configure the Ecto.Adapters.Postgres username as root or else the mix ecto.create command will always fail. You can go back and change your configured username to something else after the database has been created, or create your database and user permissions using cockroach sql and skip the mix ecto.create command.
Configuring Ecto primary_key ID to be created by CockroachDB
By default when configuring your Ecto.Schema using autogenerate: false it appears either CockroachDB, Ecto or the Postrex adapter (I did not investigate this) uses the BIGINT unique_rowid() function as the default value for IDs
@primary_key {:id, :id, autogenerate:
| # This is a prototype of the state recorder that can be used in a replay system | |
| extends AnimationPlayer | |
| var nodes = [] | |
| var animations = {} | |
| var properties = ["global_position", "global_rotation"] | |
| func _init(): | |
| set_name("state_recorder") |