Skip to content

Instantly share code, notes, and snippets.

View tmathmeyer's full-sized avatar
🤧
Achoo

Ted tmathmeyer

🤧
Achoo
  • Google
  • kirkland
View GitHub Profile
@tmathmeyer
tmathmeyer / roman2.c
Created November 10, 2015 19:25
now from stdin
#include <stdio.h>
#define l(x) ((((x)>='A')&&((x)<='Z'))?((x)-'A'):((x)-'a'))
#define a(x) (argc[1][(x)])
#define lv(x) (values[(x)])
#define before(x, a, b) (fcp[(x)-'a']=(a),scp[(x)-'a']=(b))
#define value(c, v) (values[(c)-'a']=(v))
int main(int argv, char **argc) {
int res=0,nmf=0,ct=0,c=0,max=0,b=99999999;
int fcp[26]={0},scp[26]={0},values[26]={0};
size_t q;
#include <stdio.h>
#define l(x) ((((x)>='A')&&((x)<='Z'))?((x)-'A'):((x)-'a'))
#define a(x) (argc[1][(x)])
#define lv(x) (values[(x)])
#define before(x, a, b) (fcp[(x)-'a']=(a),scp[(x)-'a']=(b))
#define value(c, v) (values[(c)-'a']=(v))
int main(int argv, char **argc) {
if (argv !=2) return puts("usage: ./roman 'MMXV'"),0;
int result=0,nmf=0, count=0, c=0, max=0, cbbd=99999999;
from flask import Flask
app = Flask(__name__)
@app.route("/index.html")
def homepage():
return "Snoopy ISP - Ted Meyer"
app.run("0.0.0.0", 8080, ssl_context=("server.cert", "server.key"))
### Keybase proof
I hereby claim:
* I am tmathmeyer on github.
* I am tmathmeyer (https://keybase.io/tmathmeyer) on keybase.
* I have a public key whose fingerprint is 60B0 C223 90E6 A502 DF91 565E 1C5A 0420 B772 D34B
To claim this, I am signing this object:
[ 56.799859] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
[ 61.939796] e1000e: enp0s25 NIC Link is Down
[ 128.975320] snd_hda_intel 0000:00:1b.0: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj.
[ 333.574850] e1000e 0000:00:19.0: irq 44 for MSI/MSI-X
[ 333.677982] e1000e 0000:00:19.0: irq 44 for MSI/MSI-X
[ 333.678187] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
[ 338.816664] e1000e: enp0s25 NIC Link is Down
$ cat /etc/netctl/orange
Connection='ethernet'
Description='orangenet'
Interface='enp0s25'
IP='static'
Address=('10.44.37.2/26' '10.44.37.66/26')
$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether e8:b1:fc:04:b6:db brd ff:ff:ff:ff:ff:ff
inet 130.215.11.90/21 brd 130.215.15.255 scope global wlp3s0
ip link add link enp0s25 name IP type vlan ip 101
ip link add link enp0s25 name CP type vlan ip 102
ip addr add 10.44.37.2/26 brd 10.44.37.255 dev IP
ip addr add 10.44.37.66/26 brd 10.44.37.255 dev CP
ip link set dev IP up
ip link set dev CP up
sysctl -w net.ipv4.conf.all.forwarding=1
iptables -A FORWARD -i IP -o CP -j ACCEPT
iptables -A FORWARD -i CP -o IP -j ACCEPT
(#def pow (x y)
(if (= 0 y) 1
(if (= y 1) x
(* x (pow x (- y 1))))))
(print (pow 3 4))
(#def begin (x y) y)
Description='Automatically generated profile by wifi-menu'
Interface=wlp2s0
Connection=wireless
Security=wpa-configsection
ESSID='WPI-Wireless'
IP=dhcp
TimeoutDHCP=60
TimeoutWPA=60
TimeoutCarrier=60
WPAConfigSection=(