Skip to content

Instantly share code, notes, and snippets.

View GeospatialDaryl's full-sized avatar

Daryl Van Dyke GeospatialDaryl

View GitHub Profile
@GeospatialDaryl
GeospatialDaryl / rotatescreen.sh
Created June 21, 2024 00:33 — forked from rubo77/rotatescreen.sh
This script rotates the screen (tested on a Lenovo Yoga 730-15iwl) (source: https://askubuntu.com/a/1217290/34298)
#!/bin/bash
# This script rotates the screen and touchscreen
# by Ruben Barkow-Kuder: https://gist.github.com/rubo77/daa262e0229f6e398766
#### configuration
# find your Touchscreen device with `xinput`
TouchscreenDevice="$(xrandr |grep eDP|cut -d" " -f1)"
if [ "$1" = "--help" ] || [ "$1" = "-h" ] ; then

Keybase proof

I hereby claim:

  • I am geospatialdaryl on github.
  • I am geodedaryl (https://keybase.io/geodedaryl) on keybase.
  • I have a public key ASAlKxUSSCxENiISm0D3Yyr4nG9aK0TFy-iFYOj1ISn6hQo

To claim this, I am signing this object:

@GeospatialDaryl
GeospatialDaryl / diskpart.bat
Created April 22, 2021 21:37 — forked from joeypiccola/diskpart.bat
Use diskpart to online, initialize, and format disks
diskpart
select disk 1
attributes disk clear readonly
online disk
select disk 1
clean
convert gpt
create partition primary
format quick fs=ntfs label="data" unit=64k
assign letter=“E"
@GeospatialDaryl
GeospatialDaryl / guide.md
Created March 11, 2021 02:01
Ubuntu guest virtualbox on Windows 10 host with ssh port forwarding

If you want:

  • a Linux guest runnning on a Windows host
  • the ability to ssh to the guest from the Windows host
  • the ability to ssh to the guest from another machine on your home network

About 90% of this comes from: https://gist.github.com/pjdietz/5768124 just with a few fixes for the host only network

Setup

1 Create a host only network in the Virtualbox GUI

# Rename this distribution example file to motion.conf
#
# This config file was generated by motion 4.0.1
############################################################
# Daemon
############################################################
# Start in daemon (background) mode and release terminal (default: off)
@GeospatialDaryl
GeospatialDaryl / read_line.go
Created November 3, 2020 01:37 — forked from kendellfab/read_line.go
Golang --> Read file line by line.
func readLine(path string) {
inFile, _ := os.Open(path)
defer inFile.Close()
scanner := bufio.NewScanner(inFile)
scanner.Split(bufio.ScanLines)
for scanner.Scan() {
fmt.Println(scanner.Text())
}
}
@GeospatialDaryl
GeospatialDaryl / zonal_stats.py
Created October 27, 2017 16:47 — forked from perrygeo/zonal_stats.py
Python implementation of zonal statistics function. Optimized for dense polygon layers, uses numpy, GDAL and OGR to rival the speed of starspan.
"""
Zonal Statistics
Vector-Raster Analysis
Copyright 2013 Matthew Perry
Usage:
zonal_stats.py VECTOR RASTER
zonal_stats.py -h | --help
zonal_stats.py --version
@GeospatialDaryl
GeospatialDaryl / README.md
Created January 4, 2016 21:00 — forked from hofmannsven/README.md
My simply Git Cheatsheet