Skip to content

Instantly share code, notes, and snippets.

View malwaremily's full-sized avatar

Emily Eubanks malwaremily

View GitHub Profile
@malwaremily
malwaremily / 1liners.md
Last active August 23, 2022 21:38
my fav 1liners

LINUX

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/
@malwaremily
malwaremily / flip180.sh
Last active April 17, 2020 19:19
rotate PDF from terminal
#!/bin/bash
pdftk $1.pdf cat 1south output a.pdf; mv a.pdf $1.pdf
@malwaremily
malwaremily / autoScan.sh
Last active December 11, 2020 18:34
Autoscan with imagescan - automate book scanning, photo scanning, note scanning, etc.
#!/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
@malwaremily
malwaremily / imagescan.md
Last active April 7, 2020 22:54
Epson Scanner imagescan CLI Guide

Automate book and note scanning to make PDFs.
See autoScan.sh for a shell script.

Terminal Commands

1. Help Menu

imagescan --no-interface --help

2. Trigger ImageScan GUI

imagescan

3. Scan image from CLI, in color, maximum scan area, and save as FILENAME.pdf locally
@malwaremily
malwaremily / .hyper.js
Created January 24, 2020 16:53
Shrimptankz Hyper Terminal Config File
// 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',
@malwaremily
malwaremily / default-Vagrantfile
Created February 1, 2019 02:02
An example of the default Vagrantfile
# -*- 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
@malwaremily
malwaremily / ubuntu_docker_vagrant_simple
Created February 1, 2019 01:41
A simple example of a Vagrantfile that creates an Ubuntu box installed with Docker, Vim, Git
# -*- 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"
@malwaremily
malwaremily / Vagrantfile
Created January 31, 2019 03:26
short-docker-vagrantfile
# -*- 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
@malwaremily
malwaremily / generate_physical_address.ps1
Last active June 28, 2018 05:39
Generate a fake MAC address for sample spreadsheets using PowerShell.
[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
@malwaremily
malwaremily / Server.go
Last active April 29, 2018 19:40
Hello-World Go Web App --- Go Web Programming by Sau Sheong Chang
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:])
}