Skip to content

Instantly share code, notes, and snippets.

View fatso83's full-sized avatar
🐢
Two toddlers. Very little time for OSS after work hours. File a PR!

Carl-Erik Kopseng fatso83

🐢
Two toddlers. Very little time for OSS after work hours. File a PR!
View GitHub Profile
This file has been truncated, but you can view the full file.
Mar 29 07:07:51 mycomp9350 colord[1095]: failed to get session [pid 9705]: Ingen data er tilgjengelige
Mar 29 07:07:51 mycomp9350 rsyslogd: [origin software="rsyslogd" swVersion="8.32.0" x-pid="950" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
Mar 29 07:07:53 mycomp9350 kernel: [ 2216.088365] kauditd_printk_skb: 32 callbacks suppressed
Mar 29 07:07:53 mycomp9350 kernel: [ 2216.088368] audit: type=1400 audit(1553839673.601:94): apparmor="DENIED" operation="open" profile="/usr/sbin/cups-browsed" name="/usr/share/cups/locale/" pid=9706 comm="cups-browsed" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Mar 29 07:07:53 mycomp9350 kernel: [ 2216.088426] audit: type=1400 audit(1553839673.601:95): apparmor="DENIED" operation="open" profile="/usr/sbin/cups-browsed" name="/usr/share/locale/" pid=9706 comm="cups-browsed" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Mar 29 07:07:53 mycomp9350 colord[1095]: failed to get session [pid 9705]: Ingen data er tilgjengelige
Mar 29 07:07:53 mycomp9350 /usr/lib/gd
This file has been truncated, but you can view the full file.
Mar 29 07:07:51 mycomp9350 colord[1095]: failed to get session [pid 9705]: Ingen data er tilgjengelige
Mar 29 07:07:51 mycomp9350 rsyslogd: [origin software="rsyslogd" swVersion="8.32.0" x-pid="950" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
Mar 29 07:07:53 mycomp9350 kernel: [ 2216.088365] kauditd_printk_skb: 32 callbacks suppressed
Mar 29 07:07:53 mycomp9350 kernel: [ 2216.088368] audit: type=1400 audit(1553839673.601:94): apparmor="DENIED" operation="open" profile="/usr/sbin/cups-browsed" name="/usr/share/cups/locale/" pid=9706 comm="cups-browsed" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Mar 29 07:07:53 mycomp9350 kernel: [ 2216.088426] audit: type=1400 audit(1553839673.601:95): apparmor="DENIED" operation="open" profile="/usr/sbin/cups-browsed" name="/usr/share/locale/" pid=9706 comm="cups-browsed" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Mar 29 07:07:53 mycomp9350 colord[1095]: failed to get session [pid 9705]: Ingen data er tilgjengelige
Mar 29 07:07:53 mycomp9350 /usr/lib/gd
const assert = require('assert');
//before(function(){
//});
describe("Outer", function() {
it("TEST", (function() {
assert.equal('Outer TEST',this.test.fullTitle());
}));
});
@fatso83
fatso83 / not-short-version.txt
Last active March 22, 2019 15:43
Shows the unstable output from Puppeteer when used through Mochify
stdout # chromium:
Error: Oh noes!
at test/fails.js:12
!!..
2 passing (115ms)
2 failing
@fatso83
fatso83 / mini-mocha-demo.test.js
Created March 7, 2019 09:11
Example of using mini-mocha for demos
// Runnable example of a supposed issue with `sinon-test`
// Employs 'mini-mocha' to emulate running in the Mocha test runner (mochajs.org)
// @author Carl-Erik Kopseng
require("@fatso83/mini-mocha")
const sinon = require("sinon");
const sinonTest = require("sinon-test");
const test = sinonTest(sinon);
const sinon = require('sinon');
const stub = sinon.stub();
const spy = sinon.spy(function(){});
function test(spy){
spy(1,2,3,4);
spy(1,2);
spy(1,2);
spy(1);
@fatso83
fatso83 / gist:3eaa9afa9e8120c68254f27b80bffd60
Last active February 14, 2019 11:38
Trying out CREATE RULE ... ON SELECT
-- ref https://dba.stackexchange.com/questions/229725/how-to-utilize-an-index-when-filtering-a-view?noredirect=1#comment453204_229725
-- the comment from Akina seems to indicate that creating the view through this syntax should somehow
-- affect the result? Very unsure if I understand the suggestion correctly.
Drop table form2;
CREATE TABLE form2 (
id INT,
encounter_id INT NOT NULL,
type TEXT NOT NULL,
@fatso83
fatso83 / Background.txt
Last active December 5, 2018 21:44
Quora on heating Vs mixing
while we all know that using warm faucet water is not recommended in cooking,
I just heard my mother-in-law state that you should only cook water and then mix
it with cold water. The context was mixing water amd a baby porridge mix.
I find this peculiar.
What is difference in heating cold faucet water from just mixing cold faucet water and cooked water?
They should be equally inviting to bacteria, AFAIK, but as it is for making something that is to
be immediately consumed, I can't see any danger.
@fatso83
fatso83 / format-code.gs
Last active December 16, 2024 08:16
Styles a paragraph as code. When adding this script using the Google Docs script editor it will appear under a new menu called "Extras"
// is called by google docs when a document is open
// adds a menu with a menu item that applies a style to the currently selected text
function onOpen() {
DocumentApp.getUi()
.createMenu('Extras')
.addItem('Apply code style', 'applyCodeStyle')
.addToUi();
}
var backgroundColor = "#DDDDDD";
$ node
> class A{ constructor(){ console.log('A normal super class'); } }
undefined
> class B extends A{}
undefined
> new B
A normal super class
B {}
> sinon = require('sinon')
...