Skip to content

Instantly share code, notes, and snippets.

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
Command-line utility to position windows
View window.sh
#!/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 Feb 18, 2021 — forked from diniremix/eos-post-install.sh
elementaryOS post install
View eos-post-install.sh
# 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 Feb 18, 2021
US Federal Holidays 2021-2031
View us_federal_holidays.json
{
"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
huned@qux public key
View id_rsa.pub
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
Convert a PDF to JSON with pdf.js.
View pdf2json.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 — forked from jamtur01/ladder.md
[PROPOSAL] ZeroCater Engineering Ladder
View -
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 Aug 26, 2015
hbotee@adaptiveinsights.com ssh public key
View id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDTdgHCHb47Iq6VI5h/LXkr4huTrRkgc4t72soFL9/ZZJ+pj+NlHOtSd43QPKpMXpuIRk2DEfQ01UaGImcYxRGPaym1/z6TOANLl7qIAtX5noZK6BdFML0HqI/pVYNqLZqN0pela8AzZjZFEsZpr7eHvNO0WWHrcyJbGY+8eiamQ7tFO9i611oVQpVvfFdW5PM8ISzWpJL1Jqf3csDgBd+4KDSl4dKrwT1fZkGCz6wKOXlpm6uf+UDfqegNPz5XKmSkVdeBopRCnXnACRMaPyK5vwbDyzqllK4A0FL3blLvT185kECe5wIq2T/QtjLVN4HsnkbtNFcmk2GSOhNUI63 hbotee@adaptiveinsights.com
View hypergraph_performance_tpc_test.rb
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
View gist:b76a0189b020ddc21565
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)