Rename 03_Vagrantfile to Vagrantfile and run vagrant up
You may need a couple extra plugins. If it complains, install what is mentioned
in the error msg with vagrant install [x]
Loopback IPs are not configured here
package main | |
import ( | |
"bytes" | |
"encoding/binary" | |
"fmt" | |
) | |
// Little Endianed | |
var ZstdMagic = []byte("\x28\xB5\x2F\xFD") |
// Problem: https://leetcode.com/problems/number-of-islands/ | |
// ASCII byte reference | |
// 48 = "0" | |
// 49 = "1" | |
// 120 = "x" | |
package main | |
import "fmt" | |
func findBounds(input [][]byte, row, col int) int { |
import time | |
import asyncio | |
def blocking(): | |
time.sleep(5) | |
print("hell yeah") | |
async def main(): |
import asyncio | |
import logging | |
import time | |
import threading | |
import typing as t | |
import janus | |
LOG = logging.getLogger(__name__) |
import asyncio | |
import logging | |
import time | |
import threading | |
import typing as t | |
import janus | |
LOG = logging.getLogger(__name__) |
#!/bin/env python | |
def toggle_comment(lines, filename, startswith=False): | |
'''Toggle comment on lines in filename | |
Options: | |
lines (list): lines to comment. | |
filename (str): filname | |
startswith (bool): allows providing start of a line vs exact matching |
def plain_to_dot(asn): # -> str | |
'''Take ASPLAIN and return ASDOT notation | |
asn: int | |
''' | |
barray = struct.pack('>I', asn) | |
return '%d.%d' % struct.unpack('>HH', barray) | |
def dot_to_plain(asn): # -> int |
I hereby claim:
To claim this, I am signing this object:
description "dyndnsd" | |
author "codey.a.oxley+os@gmail.com" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
respawn limit 15 5 | |
exec /usr/local/bin/dyndnsd /opt/dyndnsd/config.yaml | |
# vim: set ft=upstart: |