This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
file=$2 | |
basename=${file%%.*} | |
source_path=$1 | |
if [[ $source_path == */User2/ ]] ; | |
then | |
target_path=/mnt/s/Files/Docs/Scans/User2/ | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker login --username=your_username --password=your_password123! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 # | |
############################################# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for open-mpi on macOS 10.14 | |
Build date: 2018-07-06 15:58:49 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |