Skip to content

Instantly share code, notes, and snippets.

View claudiug's full-sized avatar
💜
I eat stickers all the time, dude.

Klaus Heissler claudiug

💜
I eat stickers all the time, dude.
  • cto@relatico
  • Austin
View GitHub Profile
@claudiug
claudiug / missing_indices.sql
Created April 7, 2020 20:35 — forked from consti/missing_indices.sql
Find missing indices in postgres
SELECT relname, seq_scan-idx_scan AS too_much_seq, case when seq_scan-idx_scan>0 THEN 'Missing Index?' ELSE 'OK' END, pg_relation_size(relname::regclass) AS rel_size, seq_scan, idx_scan
FROM pg_stat_all_tables
WHERE schemaname='public' AND pg_relation_size(relname::regclass)>80000 ORDER BY too_much_seq DESC;
Interview with German Ventilator Manufacturer
"Absolutely Mission Impossible"
Drägerwerk is a world leader in the production of ventilators. In an interview, company head Stefan Dräger, 57, discusses the challenges of keeping up with current demand as the corona crisis accelerates.
Interview Conducted by Lukas Eberle und Martin U. Müller
27.03.2020, 18:30 Uhr
Workers at the Dräger factory in Lübeck: "Last weekend, the king of the Netherlands called."
Workers at the Dräger factory in Lübeck: "Last weekend, the king of the Netherlands called." LUTZ ROEßLER
DER SPIEGEL: Mr. Dräger, your company is currently receiving a record number of orders and shares in your company are in greater demand than ever. Are you able to derive any satisfaction because of it?
Dräger: The situation is humbling, but it does make me proud. We are aware of our responsibility.
class CustomDialog(QDialog):
def __init__(self, *args, **kwargs):
super(CustomDialog, self).__init__(*args, **kwargs)
self.setWindowTitle("HELLO!")
QBtn = QDialogButtonBox.Ok | QDialogButtonBox.Cancel
self.buttonBox = QDialogButtonBox(QBtn)
import os
import sys
import boto3
from PySide2.QtCore import QRunnable, QObject, QThreadPool, Signal, Slot
from PySide2.QtWidgets import QMainWindow, QVBoxLayout, QProgressBar, QPushButton, QWidget, QApplication
class TestWindow(QMainWindow):
@claudiug
claudiug / app.rb
Created February 6, 2020 15:50 — forked from jgaskins/app.rb
API app with Roda
require 'authentication'
class MyApp < Roda
include Authentication
plugin :json
route do |r|
r.on('docs') { r.run Docs }
#contents of sample.rb
cat sample.rb
require './before'
puts "Hello World!"
#contents of before.rb
cat before.rb
puts "Before..."
#running:
@claudiug
claudiug / output.txt
Created September 19, 2019 19:00 — forked from headius/output.txt
JRuby's new --environment flag
[] ~/projects/jruby $ jruby.bash --environment --dev
JRuby Environment
=================
JRuby executable:
/Users/headius/projects/jruby/bin/jruby.bash
JRuby command line options:
--environment --dev
Environment:
@claudiug
claudiug / gist:41af2ad400071b9d00ded420973b07ef
Created January 24, 2017 19:50 — forked from acwright/gist:1944639
Sinatra / ActionMailer / Sendgrid / Heroku
require 'sinatra'
require 'action_mailer'
class Mailer < ActionMailer::Base
def contact
mail(
:to => "[email protected]",
:from => "[email protected]",
:subject => "Test") do |format|
format.text
require 'java'
java_import java.lang.System
Frame = javax.swing.JFrame
Button = javax.swing.JButton
Label = javax.swing.JLabel
frame = Frame.new("what")
button = Button.new("a button")
label = Label.new
inking...
To force a rebuild of up-to-date targets, run again with --force.
Running ./bin/dlangide
2016-06-24 21:08:41.777 I Log level changed to Trace
2016-06-24 21:08:41.780 I Logger is initialized
2016-06-24 21:08:41.781 V DerelictFT: Loading FreeType library
2016-06-24 21:08:41.781 V DerelictFT: Missing symbols callback is registered
2016-06-24 21:08:41.783 V DerelictFT: Loaded
2016-06-24 21:08:41.783 V Initializing FreeType library
2016-06-24 21:08:41.799 W Cannot load FontConfig shared library