Skip to content

Instantly share code, notes, and snippets.

View ConnorRigby's full-sized avatar
🏎️

Connor Rigby ConnorRigby

🏎️
View GitHub Profile
interface wlan0
pidfile /tmp/vintage_net/udhcpd.wlan0.pid
lease_file /tmp/vintage_net/udhcpd.wlan0.leases
notify_file /tmp/vintage_net/udhcpd.wlan0.udhcpd_handler
end 192.168.24.10
start 192.168.24.2
option dns 192.168.24.1
/*Benjamin Davis
03-29-19
Lab8*/
#include <stdio.h>
#include <assert.h>
#include <math.h>
int get_min_range(int list[], int first, int last); /*Calls prototype function get_min_range*/
void select_sort (int list [], int n);
Rotom-Wash @ Leftovers
Ability: Levitate
EVs: 252 HP / 200 Def / 56 Spe
Bold Nature
IVs: 0 Atk
- Hydro Pump
- Volt Switch
- Will-O-Wisp
- Pain Split
"According to all known laws
of aviation,
there is no way a bee
should be able to fly.
Its wings are too small to get
its fat little body off the ground.
if string.match(message.content, "beep") then
new_message = message.author:reply(message.channel_id, "boop")
message:create_reaction("🤖")
new_message:create_reaction("🤖")
end
@ConnorRigby
ConnorRigby / id_rsa.pub
Created February 26, 2019 15:12
laptop public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDV74EGCzSYUdlChm1ToKWjQptVw49ufQ43UQK7x/tkqo2+b+if9TrUk0RwwDjYfmvKdTAKQCmKpBgbjdVvMBBuPjQ4G3pU3O4vZ8ai3ykJ6KtaMqLu2zju1nTmZyOXgkFigHPuy1F+DyNsEAKfBqjWa9jNbvi6rCLIU9uHpcDsbgHULgCRlxfRYouHUstISSppBNEjCDWV8tDcrk6c3OCfoWbY8zxX11iGtVe9oMIL+PU40RBiul4REEXiB1Mj/8q3W+a4BvqrfPCx+7pNWALvBiImV1n5IFzBEYsLPacT2qf/YjmUoujLErg5IU52K+8TszUGnRUU2I467Lci5Let connor@ConnorLaptop
#include <math.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#define MAX_BUFFER_SIZE 512
static int getLine(char *prmpt, char *buff, size_t sz) {
int ch, extra;
@ConnorRigby
ConnorRigby / every_sequence.exs
Created January 29, 2019 23:22
Every single sequence compiled to elixir from CeleryScript JSON AST
[
[
fn params ->
%{x: locx, y: locy, z: locz} = point("Plant", 22043)
%{x: offx, y: offy, z: offz} = coordinate(0, 0, 0)
[x, y, z] = [offx - locx, offy - locy, offz - locz]
move_absolute(x, y, z, 100)
end,
fn params ->
parent = Keyword.fetch!(params, :parent)
@ConnorRigby
ConnorRigby / mix.tasks.dirstribution.push.ex
Created December 6, 2018 20:28
Stream fwup firmware over erlang distribution
defmodule Mix.Tasks.Distribution.Push do
use Mix.Task
def run([node_name, cookie]) do
node_name = String.to_atom(node_name)
{:ok, _} = Node.start(:host)
Node.set_cookie(String.to_atom(cookie))
true = Node.connect(node_name)
config = Mix.Project.config()
otp_app = config[:app]
@ConnorRigby
ConnorRigby / test.erl
Created November 29, 2018 23:21
how2eunit?
update_hook_test() ->
{ok, Db} = esqlite3:open(":memory:"),
ok = esqlite3:set_update_hook(self(), Db),
ok = esqlite3:exec("CREATE TABLE test (id INTEGER PRIMARY KEY, val STRING);", Db),
ok = esqlite3:exec("INSERT INTO test (val) VALUES ('this is a test');", Db),
ok = receive
{insert, 'test', 1} -> ok;
msg -> exit(msg)
after 150 -> no_message
end,