Skip to content

Instantly share code, notes, and snippets.

View metaperl's full-sized avatar

Structure and Interpretation of Computer Programs metaperl

View GitHub Profile
@metaperl
metaperl / myLeoSettings.xml
Created February 18, 2020 18:08
.leo/myLeoSettings.leo
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by Leo: http://leoeditor.com/leo_toc.html -->
<leo_file xmlns:leo="http://leoeditor.com/namespaces/leo-python-editor/1.1" >
<leo_header file_format="2"/>
<globals/>
<preferences/>
<find_panel_settings/>
<vnodes>
<v t="metaperl.20191211095310.1"><vh>Settings README</vh></v>
<v t="metaperl.20191211095311.205"><vh>@settings</vh>
@metaperl
metaperl / gdrive
Created December 13, 2019 20:59
tmp
https://docs.google.com/spreadsheets/d/1ZHyPLmNCj8OceCFCSN7Qrd-tbj1pNcJE9hzjRtokIx8/edit?usp=sharing
@metaperl
metaperl / compile-and-build-emacs-centos.sh
Created December 11, 2019 21:36
Compile and Build Emacs from Source
# yum install
sudo yum group install -y "Development Tools"
sudo yum install -y ncurses-devel
sudo yum install -y gtk+-devel gtk2-devel
sudo yum install -y libXpm-devel
sudo yum install -y libpng-devel
sudo yum install -y giflib-devel
sudo yum install -y libtiff-devel libjpeg-devel
sudo yum install -y ncurses-devel
sudo yum install -y gpm-devel dbus-devel dbus-glib-devel dbus-python
import sys
import uuid
from flask import Flask, session
app = Flask(__name__)
app.secret = str(uuid.uuid1)
print("Secret = {secret}.".format(secret=app.secret))
more -22 /tmp/iptables-save
# Generated by iptables-save v1.6.0 on Sat Oct 19 03:04:33 2019
*security
:INPUT ACCEPT [2946:145846]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [4831:260168]
COMMIT
# Completed on Sat Oct 19 03:04:33 2019
# Generated by iptables-save v1.6.0 on Sat Oct 19 03:04:33 2019
*raw
more -22 /tmp/iptables-save
# Generated by iptables-save v1.6.0 on Sat Oct 19 03:04:33 2019
*security
:INPUT ACCEPT [2946:145846]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [4831:260168]
COMMIT
# Completed on Sat Oct 19 03:04:33 2019
# Generated by iptables-save v1.6.0 on Sat Oct 19 03:04:33 2019
*raw
@metaperl
metaperl / gist:e215c6b0c48b1e6040d652ffd25c1933
Created October 19, 2019 03:02
Result of pinging my machine FROM my machine
PING 45.79.206.1 (45.79.206.1) 56(84) bytes of data.
64 bytes from 45.79.206.1: icmp_seq=1 ttl=255 time=1.07 ms
64 bytes from 45.79.206.1: icmp_seq=2 ttl=255 time=0.889 ms
64 bytes from 45.79.206.1: icmp_seq=3 ttl=255 time=0.530 ms
64 bytes from 45.79.206.1: icmp_seq=4 ttl=255 time=0.864 ms
64 bytes from 45.79.206.1: icmp_seq=5 ttl=255 time=0.650 ms
64 bytes from 45.79.206.1: icmp_seq=6 ttl=255 time=0.640 ms
64 bytes from 45.79.206.1: icmp_seq=7 ttl=255 time=0.645 ms
^C
--- 45.79.206.1 ping statistics ---
default via 45.79.206.1 dev eth0 onlink
45.79.206.0/24 dev eth0 proto kernel scope link src 45.79.206.182
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group defaul
t qlen 1000
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: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1
000
link/ether 96:83:05:80:4b:a6 brd ff:ff:ff:ff:ff:ff
# Generated by Linode Network Helper
# Sat Oct 19 02:47:01 2019 UTC
#
# This file is automatically generated on each boot with your Linode's
# current network configuration. If you need to modify this file, please
# first disable the 'Auto-configure Networking' setting within your Linode's
# configuration profile:
# - https://manager.linode.com/linodes/config/li1305-182?id=4167886
#
# For more information on Network Helper: