Skip to content

Instantly share code, notes, and snippets.

Avatar
🔎
hunting for code to clean up

M. Scott Ford mscottford

🔎
hunting for code to clean up
View GitHub Profile
View git_clone.feature
Feature: `git clone` command
Used to clone the project into the cache directory.
```
freshli [global options] git clone [command options] <repository-url>
```
**What this command does?**
@mscottford
mscottford / CrashReport.txt
Created February 8, 2022 14:50
Workrave macOS build troubleshooting
View CrashReport.txt
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: workrave [22245]
Path: /Applications/Workrave.app/Contents/MacOS/Workrave
Identifier: workrave
Version: ???
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
View gist:3922340252f9b79c2973ecb85e68b167
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
View wallpaper.js
// 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);
@mscottford
mscottford / Dockerfile
Last active January 31, 2018 03:52
Docker and docker-compose setup for a simple node environment which is setup to support using `yarn` and `yo`
View Dockerfile
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
@mscottford
mscottford / README.md
Last active March 26, 2021 15:42
Git Churn command
View README.md

Instructions for running on Windows 10 (via Ubuntu Bash)

  1. Open Ubuntu bash environment shell
  2. Install dependencies
    sudo apt-get update
    sudo apt-get install git curl
    
  3. Create bin directory in your home folder
View ruby-example.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mscottford
mscottford / Zencastr Recovery Script.md
Last active April 11, 2022 04:20
Small snippet to recover local recordings Zencastr has stored in IndexedDB. I used this to recover an audio file that failed to upload.
View Zencastr Recovery Script.md

Zencastr Recovery Script

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):

  1. open the web browser you were using when you made the recording,
  2. visit the Zencastr URL where you made the recording,
  3. right click on the page and select "Inspect",
  4. click on the "Console" tab,
  5. paste the script into the prompt and hit enter.
@mscottford
mscottford / keybase.md
Created September 1, 2016 00:17
keybase.md
View keybase.md

Keybase proof

I hereby claim:

  • I am mscottford on github.
  • I am mscottford (https://keybase.io/mscottford) on keybase.
  • I have a public key ASBb3YO8V7phbY2JEO-f0d4LQ2iHj49MOws4dfR_966DJgo

To claim this, I am signing this object:

View Does 10! (factorial) equal 6 weeks?
$ 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