This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[kenneth@kwflap2 twitter]$ diff -U 3 -r the-algorithm-pre/ the-algorithm-post/ | |
diff -U 3 -r the-algorithm-pre/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/FollowRecommendationsServiceWarmupHandler.scala the-algorithm-post/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/FollowRecommendationsServiceWarmupHandler.scala | |
--- the-algorithm-pre/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/FollowRecommendationsServiceWarmupHandler.scala 2023-03-31 20:48:32.453704411 -0700 | |
+++ the-algorithm-post/follow-recommendations-service/server/src/main/scala/com/twitter/follow_recommendations/services/FollowRecommendationsServiceWarmupHandler.scala 2023-03-31 20:47:59.307705724 -0700 | |
@@ -24,10 +24,6 @@ | |
extends Handler | |
with Logging { | |
- /** | |
- * this would need to be added to src/main/resources/client_whitelist.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://developers.redhat.com/blog/2021/01/05/building-red-hat-enterprise-linux-9-for-the-x86-64-v2-microarchitecture-level |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Kenneth Finnegan, 2021 | |
// | |
// Atmega328P on breadboard with 8MHz crystal. Use the mini pro 3.3V 8MHz board | |
// | |
// Pin 11 is the LED output | |
// Digital Pins 2-5 are DIP switch for time config on boot | |
// Reset button restarts the timer | |
// Using https://github.com/LowPowerLab/LowPower | |
#include <LowPower.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Kenneth Finnegan, 2020 | |
# https://blog.thelifeofkenneth.com/ | |
# Huge thanks to Gandi.net for most of this code | |
set -x | |
set -e | |
# Create the mount points for all of the virtual file systems which don't | |
# actually map to disks, but are views into the kernel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 DEF FNA(Z) = 30 * EXP(-Z*Z/100) | |
100 CLS | |
105 PRINT:PRINT:PRINT | |
110 FOR X = -30 TO 30 STEP 1.5 | |
120 L = 0 | |
130 Y1 = 5 * INT(SQR(900-X*X)/5) | |
140 FOR Y = Y1 TO -Y1 STEP -5 | |
150 Z = INT(25 + FNA(SQR(X*X+Y*Y))-.7*Y) | |
160 IF Z<=L THEN 190 | |
170 L = Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import dns.name | |
import hashlib | |
import sys | |
print (hashlib.sha1(dns.name.from_text(sys.argv[1]).to_wire()).hexdigest()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Defaults for tayga initscript | |
# sourced by /etc/init.d/tayga | |
# installed at /etc/default/tayga by the maintainer scripts | |
# Change this to "yes" to enable tayga | |
RUN="yes" | |
# Configure interface and set the routes up | |
CONFIGURE_IFACE="yes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Using IRR and BGPQ3 to auto-generate BIND ACLs | |
# Kenneth Finnegan, 2019 | |
# The IRR aut-num or as-set to generate the ACL off of | |
ACL_AS_SET='AS7034:AS-DNS' | |
( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kenneth@shell:~$ for I in `seq 1 223`; do host $I.$I.$I.$I | grep -Ev '(^;;|NXDOMAIN|SERVFAIL)'; done | |
1.1.1.1.in-addr.arpa domain name pointer 1dot1dot1dot1.cloudflare-dns.com. | |
8.8.8.8.in-addr.arpa domain name pointer google-public-dns-a.google.com. | |
9.9.9.9.in-addr.arpa domain name pointer dns.quad9.net. | |
14.14.14.14.in-addr.arpa domain name pointer host14-14-14-14.tvm.ne.jp. | |
16.16.16.16.in-addr.arpa domain name pointer ldtools.gre.hp.com. | |
23.23.23.23.in-addr.arpa domain name pointer select.zone. | |
31.31.31.31.in-addr.arpa domain name pointer 31.31.31.31.dyn.idknet.com. | |
41.41.41.41.in-addr.arpa domain name pointer host-41.41.41.41.tedata.net. | |
45.45.45.45.in-addr.arpa domain name pointer modemcable045.45-45-45.mc.videotron.ca. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/dedupe.py b/dedupe.py | |
index 26230a6..1e346ff 100644 | |
--- a/dedupe.py | |
+++ b/dedupe.py | |
@@ -11,6 +11,10 @@ import warcio | |
from warcio.archiveiterator import ArchiveIterator | |
from warcio.warcwriter import WARCWriter | |
+proxies = { | |
+ 'http': 'http://127.0.0.1:8080', |
NewerOlder