Skip to content

Instantly share code, notes, and snippets.

View ArnaudD's full-sized avatar

Arnaud Didry ArnaudD

View GitHub Profile
@ArnaudD
ArnaudD / index.php
Last active December 15, 2015 05:29
Quick'n dirty System Monitor
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body {background: #111; color: green;}
pre {width: 800px; margin: 50px auto;}
</style>
</head>
<body>
[10:19:26,244] node=[object HTMLDivElement] tagName=DIV id=yui_3_8_0_2_1366186689375_1375
[10:19:26,249] TypeError: Value does not implement interface Element. @ https://www.clicrdv.com/assets/pro_fr.js?1366110192:23952
[10:19:26,249] node=https://www.clicrdv.com/pro#yui_3_8_0_2_1366186689375_1383 tagName=A id=yui_3_8_0_2_1366186689375_2620
[10:19:26,253] TypeError: Value does not implement interface Element. @ https://www.clicrdv.com/assets/pro_fr.js?1366110192:23952
[10:19:26,253] node=[object HTMLLIElement] tagName=LI id=yui_3_8_0_2_1366186689375_1650
[10:19:26,253] node=[object HTMLFieldSetElement] tagName=FIELDSET id=yui_3_8_0_2_1366186689375_1779
[10:19:26,254] TypeError: Value does not implement interface Element. @ https://www.clicrdv.com/assets/pro_fr.js?1366110192:23952
[10:19:26,260] node=[object HTMLDivElement] tagName=DIV id=yui_3_8_0_2_1366186689375_1374
[10:19:26,304] node=[object HTMLDivElement] tagName=DIV id=yui_3_8_0_2_1366186689375_1475
[10:19:26,305] TypeError: Value does not implement in
Y.DOM.getId = function(node) {
var id;
// HTMLElement returned from FORM when INPUT name === "id"
// IE < 8: HTMLCollection returned when INPUT id === "id"
// via both getAttribute and form.id
console.log('node='+node+' tagName='+node.tagName+' id='+node.id);
if (node.id &&
!node.id.tagName &&
!node.id.item) {
id = node.id;
@ArnaudD
ArnaudD / output
Last active August 29, 2015 13:57
yui deps
#!/usr/bin/env node
var path = require('path'),
fs = require('fs'),
YUI = require('yui').YUI,
YUI_config = {},
Y = YUI();
var navigator = {
userAgent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)'
const {Cc,Ci} = require("chrome");
var prefs = require("sdk/preferences/service");
prefs.set('dom.indexedDB.warningQuota', 100);
var pm = Cc["@mozilla.org/permissionmanager;1"]
.getService(Ci.nsIPermissionManager);
var ioService = Cc["@mozilla.org/network/io-service;1"]
enscript -B --margins=0:0:0:0 -o source.ps -f monospace@3/3 source.txt && ps2pdfwr outputfile.ps source.pdf
@ArnaudD
ArnaudD / CustomLauncher.md
Last active June 21, 2023 06:11
Custom Terminator Layout in Ubuntu Launcher
  1. Add [[work_layout]] under [layouts] in ~/.config/terminator/config
[layouts]
  ...
  [[work_layout]]
    [[[child0]]]
      position = 49:24
      type = Window
apt install curl gnupg software-properties-common ca-certificates curl gnupg apt-transport-https wget
# Node
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/nodesource.gpg
NODE_MAJOR=18
echo "deb [signed-by=/etc/apt/trusted.gpg.d/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
# Google Chrome
sudo sh -c 'echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list'
curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-chrome.gpg
@ArnaudD
ArnaudD / setup.sh
Created November 23, 2015 13:39
Ubuntu 15.10 setup for the XPS 13 (2013)
wget http://ppa.launchpad.net/canonical-kernel-team/unstable/ubuntu/pool/main/l/linux/linux-headers-4.3.0-0-generic_4.3.0-0.8_amd64.deb
wget http://ppa.launchpad.net/canonical-kernel-team/unstable/ubuntu/pool/main/l/linux/linux-headers-4.3.0-0_4.3.0-0.8_all.deb
wget http://ppa.launchpad.net/canonical-kernel-team/unstable/ubuntu/pool/main/l/linux/linux-image-4.3.0-0-generic_4.3.0-0.8_amd64.deb
wget http://ppa.launchpad.net/canonical-kernel-team/unstable/ubuntu/pool/main/l/linux/linux-image-extra-4.3.0-0-generic_4.3.0-0.8_amd64.deb
dpkg -i linux-*.deb