Skip to content

Instantly share code, notes, and snippets.

View stevenroose's full-sized avatar
👀
looking for a decentralized GitHub alternative

Steven Roose stevenroose

👀
looking for a decentralized GitHub alternative
View GitHub Profile
Screen 0: minimum 320 x 200, current 5760 x 2160, maximum 8192 x 8192
XWAYLAND0 connected 3840x2160+0+0 350mm x 190mm
3840x2160 59.98*+
XWAYLAND4 connected 1920x1080+3840+0 1150mm x 650mm
1920x1080 59.96*+
:: Package(s) bitsquare not found in repositories, trying AUR...
:: resolving dependencies...
:: looking for inter-conflicts...
AUR Packages (1) bitsquare-0.4.9.6-1
:: Proceed with installation? [Y/n]
:: Retrieving package(s)...
:: bitsquare build files are up-to-date -- skipping
:: Checking bitsquare integrity...
[ 0.000000] Linux version 4.8.4-1-ARCH (builduser@tobias) (gcc version 6.2.1 20160830 (GCC) ) #1 SMP PREEMPT Sat Oct 22 18:26:57 CEST 2016
[ 0.000000] Command line: initrd=\intel-ucode.img initrd=\initramfs-linux.img cryptdevice=UUID=a7f5d4b1-d504-473c-b2f8-c2b4b2b2a4ee:cryptroot root=/dev/mapper/cryptroot quiet rw
[ 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: Supporting XSAVE feature 0x008: 'MPX bounds registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: xstate_offset[3]: 832, xstate_sizes[3]: 64
[ 0.000000] x86/fpu: xstate_offset[4]: 896, xstate_sizes[4]: 64
This file has been truncated, but you can view the full file.
86043 silly lifecycle glob@7.1.1~preinstall: no script for preinstall, continuing
86044 silly lifecycle archiver-utils@1.3.0~preinstall: no script for preinstall, continuing
86045 silly lifecycle rimraf@2.5.4~preinstall: no script for preinstall, continuing
86046 silly lifecycle fs-extra@0.30.0~preinstall: no script for preinstall, continuing
86047 silly lifecycle fs-extra@0.30.0~preinstall: no script for preinstall, continuing
86048 silly lifecycle fs-extra@0.26.7~preinstall: no script for preinstall, continuing
86049 silly lifecycle fs-extra-tf@0.30.3~preinstall: no script for preinstall, continuing
86050 silly lifecycle fs-extra-p@1.2.0~preinstall: no script for preinstall, continuing
86051 silly lifecycle utile@0.3.0~preinstall: no script for preinstall, continuing
86052 silly lifecycle prompt@1.0.0~preinstall: no script for preinstall, continuing
@stevenroose
stevenroose / a-httpupload-prosody.md
Last active September 26, 2016 06:17
Installing HttpUploadComponent for Prosody on Debian with nginx

Instructions for Prosody on Debian

1. Install

  • Install Python and PIP
sudo apt-get install python3.4 python3-pip

Keybase proof

I hereby claim:

  • I am stevenroose on github.
  • I am stevenroose (https://keybase.io/stevenroose) on keybase.
  • I have a public key ASACB4HJj8SI677iU3V4yFWthFL3GkOIcHyQTq4fich4LQo

To claim this, I am signing this object:

@stevenroose
stevenroose / install-openbazaar-fedora.txt
Last active April 2, 2018 15:23
Building OpenBazaar on Fedora 22 (64-bit)
- Install NPM (NodeJS package manager)
$ sudo npm install -g grunt-cli
$ sudo npm install grunt-electron-debian-installer --save-dev
$ git clone https://github.com/OpenBazaar/OpenBazaar-Installer
$ cd OpenBazaar-Installer/
$ ./make_installer.sh linux64
library environment;
import "dart:async";
import "dart:io" deferred as io;
import "dart:html" deferred as html;
Future inEnvironment({Future onIo(), Future onHtml()}) {
Completer c = new Completer();
io.loadLibrary().then((_) {
@stevenroose
stevenroose / gist.md
Last active August 29, 2015 14:15
Using deferred loading to create environment-independent libraries in Dart

Using deferred loading to create environment-independent libraries in Dart

The problem

Upon creating my first Dart library, I bumped into the issue of the environment-dependent libraries dart:io and dart:html, and most importantly the fact that some very similar functionality is present in both of them.

It bothered my ever-since that many libraries had to split up into two counterparts and so did some of the classes within. Let's say one of your classes uses WebSockets. The WebSocket is defined differently in dart:io and dart:html. So what you have to do create an abstract class for the general case and then create two subclasses in their own libraries that fill the gap of the WebSocket interface.

It would look like this:

@stevenroose
stevenroose / enable_ssl.dart
Last active June 4, 2021 06:25
Setup CA-enabled SSL for Dart
void enableSSL() {
// the password used for the certutil db
var sslPassword = "";
// the certificate subject
// retrieved from certutil with command
// > certutil -d sql:. -L -n my_domain
// and look for the "Subject: " line under certificate data
var certificateName = "CN=mydomain.com,OU=...";