Skip to content

Instantly share code, notes, and snippets.

View connectthefuture's full-sized avatar

justthefracts connectthefuture

  • Midwest usa
View GitHub Profile
@frame
frame / pdf-ocr-process.sh
Last active October 3, 2019 14:08
Canon MF421DW - watch and process incoming scans (detect/remove blank pages, deskew, OCR)
#!/bin/bash
file=$2
basename=${file%%.*}
source_path=$1
if [[ $source_path == */User2/ ]] ;
then
target_path=/mnt/s/Files/Docs/Scans/User2/
else
@jbaptperez
jbaptperez / 7z-cli.sh
Created September 14, 2018 07:58
7z CLI
# See https://doc.ubuntu-fr.org/p7zip
################ .7z ################
# Create a .7z archive using pasword with metadata encryption
7z a -p -mhe=on <archive.7z> <directory>
# Extract a .7z archive
7z x <archive.7z>
@8ix
8ix / Docker Login SH
Last active March 9, 2021 03:07
Docker Login
sudo docker login --username=your_username --password=your_password123!
@pixelomer
pixelomer / mkjail.sh
Last active March 13, 2025 09:33
Create a macOS chroot jail with GNU bash and utilities
#!/usr/bin/env sh
#############################################
# WARNING #
# No more commits are going to be made to #
# this gist. Please get the latest script #
# from the new repository: #
# https://github.com/pixelomer/macos-mkjail #
#############################################
impl<'a, 'b> Add<&'b CachedPoint> for &'a ExtendedPoint {
type Output = ExtendedPoint;
fn add(self, other: &'b CachedPoint) -> ExtendedPoint {
// The coefficients of an `ExtendedPoint` are reduced after
// every operation. If the `CachedPoint` was negated, its
// coefficients grow by one bit. So on input, `self` is
// bounded with `b < 0.007` and `other` is bounded with
// `b < 1.0`.
let mut tmp = self.0;
@Z30G0D
Z30G0D / dog_breed.ipynb
Created July 31, 2018 13:18
Python notebook for dog breed competition in kaggle
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Sebx
Sebx / zappos_product_scraper.rb
Created July 15, 2018 04:29 — forked from PWSdelta/zappos_product_scraper.rb
Small Ruby script that demonstrates how to use Mechanize to scrape some product details from an array of product URLs from Zappos.com
# http://nokogiri.org/Nokogiri/XML/Node.html#method-i-css
require 'mechanize'
require 'csv'
puts "Product Scraper!!!"
puts ' '
urls = [
"http://www.zappos.com/seavees-teva-universal-sandal-concrete",
@simonjackman
simonjackman / # open-mpi - 2018-07-06_15-58-49.txt
Created July 6, 2018 23:03
open-mpi on macOS 10.14 - Homebrew build logs
Homebrew build logs for open-mpi on macOS 10.14
Build date: 2018-07-06 15:58:49
#!/bin/bash
#==============================================
# silly script to import 5000 docker images
# into OpenShift as image streams
# Author: Joel Sheppard
#==============================================
oc import-image 2717 --from gradle:latest --confirm
oc import-image 6567 --from mhart/alpine-node-auto:latest --confirm
oc import-image 2859 --from aptalca/home-automation-bridge:latest --confirm
@gaearon
gaearon / index.html
Last active July 1, 2025 02:54
Add React in One Minute
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>