Instructions for running on Windows 10 (via Ubuntu Bash)
- Open Ubuntu bash environment shell
- Install dependencies
sudo apt-get update sudo apt-get install git curl
- Create
bin
directory in your home folder
afterburner-7:mob-timer mscottford$ node -v | |
v11.7.0 | |
afterburner-7:mob-timer mscottford$ node -v | |
v11.7.0 | |
afterburner-7:mob-timer mscottford$ npm -v | |
6.5.0 | |
afterburner-7:mob-timer mscottford$ npm list |
// Run this from the console in Chrome when viewing an image on WallpapersCraft. | |
// It will download the 3840x2400 version of the image to your downloads folder. | |
// Example url: https://wallpaperscraft.com/wallpaper/television_wire_interference_57268 | |
console.save = function(url) { | |
e = document.createEvent('MouseEvents'); | |
a = document.createElement('a'); | |
a.download = url; | |
a.href = url; | |
e.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); |
FROM node:9.3 | |
RUN apt-get update | |
RUN apt-get install sudo | |
RUN adduser --disabled-password --gecos '' docker | |
RUN adduser docker sudo | |
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | |
USER docker |
sudo apt-get update
sudo apt-get install git curl
bin
directory in your home folder
This is a small snippet to recover local recordings Zencastr has stored in IndexedDB. I used this to recover an audio file that failed to upload.
To run it (instrutions for Google Chrome, you may have to adapt for other web browsers):
I hereby claim:
To claim this, I am signing this object:
$ irb | |
irb(main):001:0> require 'active_support/all' | |
=> true | |
irb(main):002:0> class Integer | |
irb(main):003:1> def fact | |
irb(main):004:2> (1..self).reduce(:*) || 1 | |
irb(main):005:2> end | |
irb(main):006:1> end | |
=> nil | |
irb(main):007:0> 10.fact == 6.weeks |
From 579377d5e510a4c138904181b640480524c30bce Mon Sep 17 00:00:00 2001 | |
From: "M. Scott Ford" <scott@corgibytes.com> | |
Date: Fri, 2 Jan 2015 10:34:16 -0500 | |
Subject: [PATCH] Exports sftp_reply_* functions | |
--- | |
include/libssh/sftp.h | 24 ++++++++++++------------ | |
1 file changed, 12 insertions(+), 12 deletions(-) | |
diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h |
static void calculateLinearShadingValues(void *info, const float *in, float *out) { | |
const int components = 4; | |
ColorPair *colors = (ColorPair *) info; | |
int index; | |
for (index = 0; index < components; index++) { | |
out[index] = (1.0 - *in) * colors->start[index] + *in * colors->stop[index]; | |
} | |
} |