DESCRIPTION | COMMAND | EXAMPLE |
---|---|---|
List all tmux shortcuts | CTRL+b + ? |
N/A |
Horizontal tmux split | CTRL+b + % |
N/A |
Vertical tmux split | CTRL+b + " |
N/A |
Kill a tmux pane | CTRL+d |
N/A |
Search for Connected Devices | ls /dev/ | grep <KEYWORD> |
ls /dev/ | grep sd |
Find Connected Media Cards | ls /media/<USERNAME>/disk/ |
ls /media/emily/disk/ |
See mounted filesystems | mount |
mount | grep /media/ |
This file contains 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 | |
pdftk $1.pdf cat 1south output a.pdf; mv a.pdf $1.pdf |
This file contains 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 | |
i=0 | |
name=1 | |
# name new file | |
until [ $name == "0" ]; do | |
# scan new image with incremented name | |
imagescan --no-interface --image-format=PDF --scan-area=Maximum > $i.pdf | |
i=$((i+1)) | |
# continue until filename==0 | |
# wait for enter any character |
Automate book and note scanning to make PDFs.
See autoScan.sh for a shell script.
imagescan --no-interface --help
imagescan
This file contains 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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.require_version ">= 1.3.5" | |
Vagrant.configure("2") do |config| | |
# general provisioning | |
config.vm.boot_timeout = 600 | |
config.vm.box = "ubuntu/bionic64" | |
config.vm.box_check_update = true | |
config.vm.network = "public_network" |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# general provisioning | |
config.vm.box = "ubuntu/bionic64" | |
# virtualbox provisioning using VBox Manage | |
config.vm.provider "virtualbox" do |vb| | |
vb.gui = false | |
vb.cpus = 2 | |
vb.memory = 2048 |
This file contains 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
[string]$twoDigits = "00" | |
[string]$physicalAddr = "" | |
$bool_int = 0 | |
[int]$count1 = 0 | |
[int]$count2 = 0 | |
# append to physicalAddress until proper size | |
DO{ | |
DO{# randomize $twoDigits | |
# generate random boolean |
This file contains 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
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
func handler(writer http.ResponseWriter, request *http.Request) { | |
fmt.Fprintf(writer, "Hello World, my name is Emiliska!", request.URL.Path[1:]) | |
} |