Skip to content

Instantly share code, notes, and snippets.

Baron Schwartz xaprb

Block or report user

Report or block xaprb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@xaprb
xaprb / stylebot.css
Last active Sep 20, 2019
Make GMail's design less horrendous using Stylebot
View stylebot.css
#gb {
background-color: #4285f4;
box-shadow: 0 0 4px rgba(0,0,0,.14), 0 4px 8px rgba(0,0,0,.28);
}
.zA.yO {
background-color: white;
box-shadow: 0 0 4px rgba(0,0,0,.14);
}
View words.txt
This file has been truncated, but you can view the full file.
A
a
aa
aal
aalii
aam
Aani
aardvark
aardwolf
@xaprb
xaprb / make-load.sh
Created Nov 18, 2015
A little shell script for hammering the dvdstore database on Postgres
View make-load.sh
#!/usr/bin/env bash
if [ -z "$1" ]; then
echo "Usage: $0 <iterations>"
exit 1
fi
# Display product ID, category, title, price, num orders
# ordered by top products limit 10
function top_products(){
@xaprb
xaprb / backup_github.sh
Created Mar 7, 2015
Shell script to back up all of an organization's GitHub repos
View backup_github.sh
#!/bin/sh
LOGIN=YOURLOGIN
TOKEN=YOURTOKEN
ORG=YOURORG
DONE=0
PAGE=0
# sample output:
# "total_private_repos": 50,
View lowercase_string.go
package main
import (
"database/sql"
"database/sql/driver"
"errors"
_ "github.com/go-sql-driver/mysql"
"log"
"strings"
)
@xaprb
xaprb / hello_mysql.go
Created Jan 8, 2015
hello_mysql.go
View hello_mysql.go
package main
import (
"database/sql"
"log"
_ "github.com/go-sql-driver/mysql"
)
func main() {
db, err := sql.Open("mysql", "root:@tcp(:3306)/test")
View keybase.md

Keybase proof

I hereby claim:

  • I am xaprb on github.
  • I am xaprb (https://keybase.io/xaprb) on keybase.
  • I have a public key whose fingerprint is E877 C582 9D0E 5E8A 3AE1 BC4E D14D 8893 201A BAA0

To claim this, I am signing this object:

@xaprb
xaprb / Logger.asp
Created Jan 18, 2014
Old ASP scripts from 2004 or so; forgot what they are even for.
View Logger.asp
<script Language="VBScript" RunAt="server">
Class Logger
Private m_Name
Private m_Level
Private m_LoggerLevel
Private m_Destination
Private m_BufferOutput
Private m_Buffer
View producer_consumer.pl
#!/usr/bin/perl
use strict;
use warnings FATAL => 'all';
use DBI;
use English qw(-no_match_vars);
use Getopt::Long;
use List::Util qw(max);
View reproduce-bit-bug.sql
drop temporary table if exists left1;
drop temporary table if exists left2;
drop temporary table if exists right1;
drop temporary table if exists right2;
drop temporary table if exists right3;
create temporary table left1 (
col1 int unsigned not null auto_increment primary key,
col2 bit not null default 0,
col3 bit not null default 0
You can’t perform that action at this time.