Skip to content

Instantly share code, notes, and snippets.

[ 0.000000] Linux version 4.18.6-arch1-1-ARCH (builduser@heftig-4211) (gcc version 8.2.1 20180831 (GCC)) #1 SMP PREEMPT Wed Sep 5 11:54:09 UTC 2018
[ 0.000000] Command line: \\vmlinuz-linux zfs=zroot/ROOT/default rw threadirqs zfs.zfs_arc_max=5368709120 nvidia-drm.modeset=1 initrd=\initramfs-linux.img
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 354.412143] usb 2-3: new full-speed USB device number 21 using xhci_hcd
[ 359.661051] usb 2-3: unable to read config index 0 descriptor/all
[ 359.661054] usb 2-3: can't read configurations, error -110
[ 359.787668] usb 2-3: new full-speed USB device number 22 using xhci_hcd
[ 364.993464] usb 2-3: unable to read config index 0 descriptor/all
[ 364.993467] usb 2-3: can't read configurations, error -110
[ 364.993492] usb usb2-port3: attempt power cycle
[ 365.643293] usb 2-3: new full-speed USB device number 23 using xhci_hcd
[ 370.752540] usb 2-3: unable to read config index 0 descriptor/all
[ 370.752543] usb 2-3: can't read configurations, error -110
/usr/lib/python2.7/site-packages/ulauncher/util/desktop/notification.py:1: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
from gi.repository import Notify
/usr/lib/python2.7/site-packages/ulauncher/ui/windows/PreferencesUlauncherDialog.py:6: PyGIWarning: WebKit2 was imported without specifying a version first. Use gi.require_version('WebKit2', '4.0') before import to ensure that the right version gets loaded.
from gi.repository import Gio, Gtk, WebKit2, GLib
2018-07-17 16:27:48,547 | INFO | ulauncher: main() | Ulauncher version 4.1.0.r1
2018-07-17 16:27:48,548 | INFO | ulauncher: main() | GTK+ 3.22.30
2018-07-17 16:27:48,548 | INFO | ulauncher: main() | Is Wayland: False
2018-07-17 16:27:48,548 | INFO | ulauncher: main() | Wayland compatibility: off
2018-07-17 16:27:48,567 | DEBUG | ulauncher.ui.windows.Builder: __init__() | consid
@kuon
kuon / output
Last active June 29, 2018 21:20
$ dmesg
[324827.322211] usb 3-2.4.1.1: new full-speed USB device number 22 using xhci_hcd
[324827.423819] usb 3-2.4.1.1: New USB device found, idVendor=2184, idProduct=0030, bcdDevice= 1.00
[324827.423822] usb 3-2.4.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[324827.423823] usb 3-2.4.1.1: Product: GDM834X VCP PORT
[324827.423825] usb 3-2.4.1.1: Manufacturer: Silicon Labs
[324827.423826] usb 3-2.4.1.1: SerialNumber: GES817002
$ uname -r; pacman -Q linux
4.17.2-1-ARCH
@kuon
kuon / predicate.elm
Last active July 2, 2017 01:11
predicate
type Predicate
= And (List Predicate)
| Or (List Predicate)
| Not Predicate
| Condition String Op String
type Op
= Contains
| Equals
@kuon
kuon / webpack.js
Last active June 25, 2017 22:08
Use SVG sprites from elm with webpack
require('./index.html')
var req = require.context("assets/icons", true, /\.svg$/)
req.keys().forEach(req)
var Elm = require('./src/Main.elm')
@kuon
kuon / icon.elm
Last active June 25, 2017 22:05
Use SVG sprite from elm with webpack
import Html exposing (Html, text, a, i, div, br)
import Html.Attributes exposing (class, value, href)
import Html exposing (Attribute)
import Json.Decode as Json
import Svg
import Svg.Attributes as SvgAttr
import Style.Icon as Style
import Html.CssHelpers
import Css.Helpers
import Style.Constants as Constants
@kuon
kuon / randomInt.js
Last active April 25, 2017 23:34
Random int
// Generates a random int within a and b inclusive
function randomIntWithinRange(a, b) {
var range = a - b
var random = Math.random() * range
return a - Math.round(random)
}
@kuon
kuon / style.html
Created April 9, 2017 12:28
google map style demo
<!DOCTYPE html>
<html>
<head>
<title>Snazzy Maps Super Simple Example</title>
<style type="text/css">
/* Set a size for our map container, the Google Map will take up 100% of this container */
#map {
width: 750px;
height: 500px;
@kuon
kuon / convolution.ts
Created February 2, 2017 14:16
Convolution filter in javascript
// This works but is very slow, "sob"
class Convolution {
private drawCanvas() {
var canvas = <HTMLCanvasElement>document.getElementById('canvas');
var ctx = canvas.getContext("2d");
var width = canvas.width;
var height = canvas.height;
var image = this.state.image;