Skip to content

Instantly share code, notes, and snippets.

@byte
byte / gist:bfbb5f37c124752ab8b86015e6e50bae
Created March 25, 2023 04:18
Letter to MBPJ/PJ council
Colin Charles
<address>
25 March 2023
Dear Mr. Terence Tan Teck Seng,
RE: ANIMAL CRUELTY BY MBPJ OFFICERS
By now, you must have seen the viral video on Instagram of animal cruelty by an MBPJ officer or several MBPJ officers. As a ratepayer in Petaling Jaya, and a long time voter DAP voter, I am hugely disappointed, and expect you to take action against the officer(s). Taking action is not just transferring them to desk duty -- it is putting them on a performance improvement plan (PIP), closely monitored, and then a sacking. In fact, the brutality suggests a sacking is in due, even without a PIP.
<?xml version="1.0"?>
<opml version="1.0"><head><title>Overcast Podcast Subscriptions</title></head><body><outline type="rss" text="North Star Podcast" title="North Star Podcast" xmlUrl="http://perell.libsyn.com/rss" htmlUrl="http://www.perell.com/podcast/"/><outline type="rss" text="Hurry Slowly" title="Hurry Slowly" xmlUrl="https://hurryslowly.co/feed/podcast/" htmlUrl="https://hurryslowly.co/"/><outline type="rss" text="Freakonomics Radio" title="Freakonomics Radio" xmlUrl="https://rss.art19.com/freakonomics-radio" htmlUrl="http://freakonomics.com/"/><outline type="rss" text="The DO Lectures - DO Audio" title="The DO Lectures - DO Audio" xmlUrl="https://www.thedolectures.com/do-podcast?format=rss" htmlUrl="https://www.thedolectures.com/do-podcast/"/><outline type="rss" text="Odd Lots" title="Odd Lots" xmlUrl="http://feeds.bloomberg.fm/BLM2009837477" htmlUrl="https://bloomberg.com/podcasts/odd_lots"/><outline type="rss" text="Positively Gotham Gal" title="Positively Gotham Gal" xmlUrl="http://feeds.soundclo
@byte
byte / block_malaysian_manufactured_outrange.csv
Created January 10, 2019 05:47
Block Malaysian Manufactured Outrage on Twitter
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
756082460404756480
933955969352056832
3222299510
81047964
463539993
705694168937422848
203789731
236355498
308551163
754689943780274176

Keybase proof

I hereby claim:

  • I am byte on github.
  • I am bytebot (https://keybase.io/bytebot) on keybase.
  • I have a public key whose fingerprint is DCD2 93F0 8E6B D1AF 072F 8A9B 614B 21BA 9819 A8C4

To claim this, I am signing this object:

#!/usr/bin/perl
#
# Brad's el-ghetto do-our-storage-stacks-lie?-script
#
sub usage {
die <<'END';
Usage: diskchecker.pl -s <server[:port]> verify <file>
diskchecker.pl -s <server[:port]> create <file> <size_in_MB>
diskchecker.pl -l [port]

Backend Architectures

ARCHITECTURES

ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats

@byte
byte / gist:2928241
Created June 14, 2012 06:06 — forked from jayjanssen/gist:2911398
Monitor checkpoint age on any Innodb server
#!/usr/bin/perl
#LOG
#---
#Log sequence number 248 2222568315
#Log flushed up to 248 2222533410
#Last checkpoint at 248 1843690869
#
use strict;
@byte
byte / mariadb.rb
Created September 14, 2011 08:55
MariaDB 5.3.1-beta
require 'formula'
class Mariadb < Formula
url 'http://ftp.osuosl.org/pub/mariadb/mariadb-5.3.1-beta/kvm-tarbake-jaunty-x86/mariadb-5.3.1-beta.tar.gz'
homepage 'http://www.mariadb.org'
md5 '5b3a94de1c1fcaa193edbbc8d7f8ffe4'
depends_on 'readline'
def options
require 'fileutils'
start_time = Time.now
SOURCE_DB = {
:name => 'db_name',
:user => 'db_user',
:password => 'db_pass',
:host => 'localhost'
grep "blogspot.com" file.csv | awk -F "\"*,\"*" '{print "["$4"/feeds/posts/default]", "\nname = " $2 "\n"}' >config.ini
sed 's/\[www/\[http\:\/\/www/g' config.ini
# another example for parsing CSV from the command line
# awk -F "\"*,\"*" '{print $3}' file.csv