Skip to content

Instantly share code, notes, and snippets.

View cjac's full-sized avatar

C.J. Collier cjac

View GitHub Profile
@cjac
cjac / gist:69acfdb0f6c652d402c129811c386101
Created February 11, 2025 03:51
Dress Code Policy for Public Technical Gatherings
This policy aims to ensure a professional and respectful environment conducive to focused discussion and collaboration at our public technical gatherings. We ask all participants to adhere to the following guidelines:
General Principles:
We expect all attendees to dress and behave in a manner that does not excessively attract attention or disrupt the event. The primary goal is to avoid distractions that could hinder participation and engagement.
Specific Considerations:
* Distracting Attire: Clothing or accessories that are overly revealing, provocative, or contain offensive or discriminatory language or imagery are not permitted.
* Disruptive Behavior: Any behavior that disrupts the flow of the event, including but not limited to excessive noise, harassment, or intimidation, is unacceptable.
Breastfeeding:
We fully support and protect the right to breastfeed. Complaints regarding breastfeeding will not be considered, and any interference with breastfeeding will be addressed immediately.
Cultural Sens
@cjac
cjac / gist:e17d47676d1dfc26fbf65fe15116295c
Last active January 31, 2025 02:26
broadcom-uefi.log
BdsDxe: failed to load Boot0001 "UEFI QEMU DVD-ROM QM00003 " from PciRoot(0x0)/Pci(0x1,0x1)/Ata(Secondary,Master,0x0): Not Found
BdsDxe: failed to load Boot0002 "UEFI QEMU HARDDISK QM00001 " from PciRoot(0x0)/Pci(0x1,0x1)/Ata(Primary,Master,0x0): Not Found
iPXE 1.0.0+git-20190125.36a4c85-5.1 -- Open Source Network Boot Firmware -- http://ipxe.org
Features: DNS HTTP iSCSI NFS TFTP AoE EFI Menu
net0: 52:54:00:12:34:56 using 82540em on 0000:00:03.0 (open)
[Link:up, TX:1 TXE:0 RX:0 RXE:0]
import pyspark
from pyspark.sql import SparkSession
from pyspark.sql import SQLContext
from pyspark.sql import DataFrame
sc = pyspark.SparkContext()
sqlCtx = SQLContext(sc)
spark = SparkSession \
.builder \
def _retry_function( function_to_try, args ):
return_value=None
for try_number in range(0, 3):
try:
return_value = function_to_try( *args )
if return_value is True:
break
raise Exception("function failed")
except:
time.sleep(2**try_number)
cjac@edge:~$ sudo iptables-save
# Generated by iptables-save v1.8.9 (nf_tables) on Tue May 28 09:27:34 2024
*mangle
:PREROUTING ACCEPT [251:16900]
:INPUT ACCEPT [231:15940]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [124:35388]
:POSTROUTING ACCEPT [124:35388]
COMMIT
# Completed on Tue May 28 09:27:34 2024
tcpdump output:
06:32:35.983734 IP 192.0.2.184 > 192.0.2.1: ICMP echo request, id 24995, seq 1, length 64
06:32:35.984207 IP 192.0.2.1 > 192.0.2.184: ICMP echo reply, id 24995, seq 1, length 64
06:32:37.003656 IP 192.0.2.184 > 192.0.2.1: ICMP echo request, id 24995, seq 2, length 64
06:32:37.004128 IP 192.0.2.1 > 192.0.2.184: ICMP echo reply, id 24995, seq 2, length 64
ping output:
ping 192.0.2.1
PING 192.0.2.1 (192.0.2.1) 56(84) bytes of data.
^C
cjac@moon:~$ cat /mnt/tmp/boot/1.4-rolling-202103210217/rw/config/scripts/vyos-postconfig-bootup.script
#!/bin/sh
# This script is executed at boot time after VyOS configuration is fully applied.
# Any modifications required to work around unfixed bugs
# or use services not available through the VyOS CLI system can be placed here.
#
# SIX configurations as per https://www.seattleix.net/faq#linux
#
FROM node:21-alpine3.18
# set working directory
WORKDIR /llc-site
#add /app/node_modules/.bin to $PATH
ENV PATH ${WORKDIR}/node_modules/.bin:$PATH
# install app dependencies
cjac@edge:~$ ping 100.64.79.1
PING 100.64.79.1 (100.64.79.1) 56(84) bytes of data.
cjac@wanjet1:~$ sudo tcpdump -s0 -n -i ppp0 host 100.65.12.1
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on ppp0, link-type LINUX_SLL (Linux cooked v1), snapshot length 262144 bytes
01:18:32.810521 IP 100.65.12.1 > 100.64.79.1: ICMP echo request, id 22324, seq 14, length 64
01:18:33.810036 IP 100.65.12.1 > 100.64.79.1: ICMP echo request, id 22324, seq 15, length 64
01:18:34.834149 IP 100.65.12.1 > 100.64.79.1: ICMP echo request, id 22324, seq 16, length 64
bird> show protocols all WebPass__4__0
name proto table state since info
WebPass__4__0 BGP master up 11:40:19 Established
Preference: 100
Input filter: ACCEPT
Output filter: (unnamed)
Export limit: 20
Action: disable
Routes: 2 imported, 1 exported, 2 preferred
Route change stats: received rejected filtered ignored accepted