Skip to content

Instantly share code, notes, and snippets.

View huned's full-sized avatar
💭
I may be slow to respond.

Huned Botee huned

💭
I may be slow to respond.
View GitHub Profile
@huned
huned / window.sh
Created May 25, 2021 21:28
Command-line utility to position windows
#!/bin/bash
set -x
dim=$(wmctrl -d | head -n 1 | grep -Eho '[0-9]{4}x[0-9]{3,4}' | tail -n 1)
width=$(echo $dim | cut -d x -f 1)
#height=$(echo $dim | cut -d x -f 2)
height=2130
margin=0
maxWidth=$(( $width - 2*$margin ))
halfWidth=$(( $width/2 - 2*$margin ))
@huned
huned / eos-post-install.sh
Created February 18, 2021 21:02 — forked from diniremix/eos-post-install.sh
elementaryOS post install
# elementary OS Juno post install
# first step, upgrade
sudo apt update && sudo apt upgrade
sudo apt install ubuntu-restricted-extras
sudo apt install software-properties-common --no-install-recommends
sudo apt install libavcodec-extra ffmpeg
sudo apt install firefox vlc
sudo apt install screenfetch flameshot
@huned
huned / us_federal_holidays.json
Last active February 18, 2021 04:43
US Federal Holidays 2021-2031
{
"2029-05-28" : {
"name" : "Memorial Day",
"date" : "May 28, 2029"
},
"2025-12-25" : {
"name" : "Christmas Day",
"date" : "December 25, 2025"
},
"2021-01-01" : {
@huned
huned / id_rsa.pub
Created May 29, 2020 14:26
huned@qux public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDayMWjaM7shFjoC1YL1uG0d0Xi7xRnq/Jhm5QEAcx0umm/bRp8vyIDIypCXS1wPXXmeopByZwhqSpESgC/xkAoTQOAscGEDbHdlcQx2MUQ1jV8icIN9MgehqWrEA7jAQMqPl90Ck0U31M8wYyMZ1GM/c7R6VZi5lG+H3AmiWIX758DC9RXkyP6DaS2+UKQCUpg5OY6o0mqFe+rGla/TvfMDxP27u5Kpfw4SxbLQDNAGxtftpNaOgVAIpkPFt+/YkyJm6tJS8VaWRjXWhgNR5th+vntJUDx8IRrm5IBVWQxbQIg/YgATluGg1r3eGp3VAURkTR8J7ZPzBRK4tLRANn3tRszXDFmPAdyEnz9GgeKVSeJd1vCXipUm6jdqAbZAutYyIY7b/Upq4uUwlUGCX8aJYS//FlTVfV2XencmWFFpxh31SUuCKzkhtMJeiizz+NXkIC2RXPYh8w6I+JW0eSxpwtRRZjJ723SauNrFupGX8ZzKauDZo+e+5smbydzksIMmCk4SOlFVkXuQxNusfqovRcJrHI9HXKIaDd1mzBX017FrZW5CaaKe96glRwAN3jpzARuJBuJNcB/Pkpgns9pbOkknFl93614uN8Nq9llWylhtClG+NLisYsBhfN+TE9+53nlABMOrcaihbcc/PGB4NcXmD1j4lqifBU5eHpRHw== huned@omg
@huned
huned / pdf2json.js
Created May 11, 2020 16:00
Convert a PDF to JSON with pdf.js.
const fs = require('fs')
const pdfjs = require('pdfjs-dist')
const readPdf = async filename => {
const buf = await fs.promises.readFile(filename)
const doc = await pdfjs.getDocument(buf).promise
const docBlob = {
metadata: null,
pages: []
}
@huned
huned / ladder.md
Last active May 5, 2020 22:11 — forked from jamtur01/ladder.md
[PROPOSAL] ZeroCater Engineering Ladder
Elna O'Kon
Heber Deckow
Wilbert Kozey
Trevor Rohan
Raquel Marvin
Vance Gerlach
Chaz Hirthe
Stefan Thiel
Marcus Ratke
Mr. Marisol Simonis
@huned
huned / id_rsa.pub
Created August 26, 2015 17:21
hbotee@adaptiveinsights.com ssh public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDTdgHCHb47Iq6VI5h/LXkr4huTrRkgc4t72soFL9/ZZJ+pj+NlHOtSd43QPKpMXpuIRk2DEfQ01UaGImcYxRGPaym1/z6TOANLl7qIAtX5noZK6BdFML0HqI/pVYNqLZqN0pela8AzZjZFEsZpr7eHvNO0WWHrcyJbGY+8eiamQ7tFO9i611oVQpVvfFdW5PM8ISzWpJL1Jqf3csDgBd+4KDSl4dKrwT1fZkGCz6wKOXlpm6uf+UDfqegNPz5XKmSkVdeBopRCnXnACRMaPyK5vwbDyzqllK4A0FL3blLvT185kECe5wIq2T/QtjLVN4HsnkbtNFcmk2GSOhNUI63 hbotee@adaptiveinsights.com
require 'test_helper'
require 'benchmark'
class HypergraphPerformanceTest < Minitest::Test
include Hypergraph::TestHelper::Schema
include Hypergraph::TestHelper::Benchmarking
include Hypergraph::TestHelper::Profiling
def setup
suites = (ENV['TESTS'] || '').split
adaptive@ubuntu:/opt/adaptiveplanning/hypergraph$ HYPERGRAPH_THREADS=8 TESTS=5k bundle exec ruby -Itest -J-server -J-Xmx40g test/performance/hypergraph_performance_tpc_test.rb
uri:classloader:/jruby/kernel/kernel.rb:28: warning: unsupported exec option: close_others
Run options: --seed 15672
# Running:
### Load Tables
5k 933.160000 21.630000 954.790000 (804.721107)