Skip to content

Instantly share code, notes, and snippets.

View flajann2's full-sized avatar
🎯
I love Haskell, but GUI support is not good. So back to C++.

Fred Mitchell flajann2

🎯
I love Haskell, but GUI support is not good. So back to C++.
View GitHub Profile
{
"streamdeck_ui_version": 1,
"state": {
"AL28J2C04162": {
"buttons": {
"0": {
"0": {
"write": "",
"text": "",
"command": "",
-*- mode: compilation; default-directory: "/development/haskell/imap-filter-hs/" -*-
Compilation started at Sun Oct 11 13:31:48
cd /development/haskell/imap-filter-hs/ && stack build --allow-different-user -v
Version 2.3.3, Git revision cb44d51bed48b723a5deb08c3348c0b3ccfc437e x86_64 hpack-0.33.0
2020-10-11 13:31:48.983741: [debug] Checking for project config at: /development/haskell/imap-filter-hs/stack.yaml
2020-10-11 13:31:48.983895: [debug] Loading project config file stack.yaml
2020-10-11 13:31:48.988824: [debug] SELECT COUNT(*) FROM "last_performed" WHERE ("action"=?) AND ("timestamp">=?); [PersistInt64 1,PersistUTCTime 2020-10-10 11:31:48.988782787 UTC]
2020-10-11 13:31:48.989327: [debug] Using package location completions from a lock file
2020-10-11 13:31:48.993711: [debug] Loaded snapshot from Pantry database.
@flajann2
flajann2 / gist:e95920d5914fa12305839fd0b382352d
Created October 25, 2018 15:08
Conversation with Dropbox dropping support for a number of filesystems, including anything but ext4 on Linux
Dropbox Chat about their dropping support for anything
other than ext4 for Linux.
Me: Hello. I just got a notice that I have to move my
Dropbox folder to an ext4-formatted drive. It is
currently on a ZFS drive, and I have no available space
available on any ext4 partitions. Why are you doing
this to me? Me
Myron: Hi there! Thanks for contacting Dropbox Support! My
@flajann2
flajann2 / steam.dump2
Created May 26, 2018 12:12
Steam crashes even with cleanup command... Kubuntu 18.04
λ find ~/.steam/root/ \( -name "libgcc_s.so*" -o -name "libstdc++.so*" -o -name "libxcb.so*" -o -name "libgpg-error.so*" \) -print -delete
λ DISPLAY=:0 LIBGL_DEBUG=verbose steam
Running Steam on ubuntu 18.04 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Installing breakpad exception handler for appid(steam)/version(1526683293)
libGL: screen 0 does not appear to be DRI2 capable
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/swrast_dri.so
libGL: Can't open configuration file /home/lordalveric/.drirc: No such file or directory.
@flajann2
flajann2 / bash.dump
Created May 26, 2018 12:00
Steam launch crashes on Kubuntu 18.04
λ DISPLAY=:0 LIBGL_DEBUG=verbose steam
Running Steam on ubuntu 18.04 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Installing breakpad exception handler for appid(steam)/version(1526683293)
libGL: screen 0 does not appear to be DRI2 capable
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/swrast_dri.so
libGL: Can't open configuration file /home/lordalveric/.drirc: No such file or directory.
@flajann2
flajann2 / bash.dump
Created May 26, 2018 12:00
Steam launch crashes on Kubuntu 18.04
λ DISPLAY=:0 LIBGL_DEBUG=verbose steam
Running Steam on ubuntu 18.04 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Installing breakpad exception handler for appid(steam)/version(1526683293)
libGL: screen 0 does not appear to be DRI2 capable
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/swrast_dri.so
libGL: Can't open configuration file /home/lordalveric/.drirc: No such file or directory.
*Box.background: #fcfcfc
*Box.foreground: #232627
*Button.activeBackground: #fcfcfc
*Button.activeForeground: #232627
*Button.background: #fcfcfc
*Button.foreground: #232627
*Button.highlightBackground: #fcfcfc
*Button.highlightColor: #232627
*Canvas.activeBackground: #fcfcfc
*Canvas.activeForeground: #232627
@flajann2
flajann2 / ruby24.rb
Created December 19, 2016 20:21
parser ruby24.rb loops forever upon loading
'573,572,,,557,566,554,553,552,562,555,557,,554,553,552,562,555,557,565',
'554,553,552,562,555,557,565,554,553,552,562,555,,565,,,,,,,565,560,',
',,,,,560,,,,573,572,,560,,566,,573,572,,560,,566,,573,572,,,,566,,573',
'572,,,,566' ]
racc_action_table = arr = ::Array.new(25362, nil)
idx = 0
clist.each do |str|
str.split(',', -1).each do |i|
arr[idx] = i.to_i unless i.empty? # line 883 loops forever
idx += 1 # line 884 loops forever
def activate_main_ann(i1, i2)
@main_i1 = i1
@main_i2 = i2
@main_bias = bias
loop do
@main_si_nun_yi_9123 = si_nun_yi_9123((-0.21201155852564527) * @main_bias, 0.03038111518730969 * @main_i1)
@main_ayin_du_theta_14395 = ayin_du_theta_14395((-0.2735333840684274) * @main_si_nun_yi_9123)
@main_lam_alif_tav_26285 = lam_alif_tav_26285(0.24810111310932337 * @main_bias)
@main_dha_sek_lu_26766 = dha_sek_lu_26766((-0.6400550229061936) * @main_si_nun_yi_9123)
@flajann2
flajann2 / bug.yml
Last active December 17, 2015 06:52
Ansible 2.0.0 add_host does not see complete inventory with an ec2 dynamic inventory.
---
# Playbook demonstrating bug with add_host with regards to
# an ec2 dynamic iventory.
# ansible 2.0.0
- hosts: all
connection: local
gather_facts: False
tasks:
- name: add_host does not see entire inventory