Skip to content

Instantly share code, notes, and snippets.

View JasonLocklin's full-sized avatar

J Locklin JasonLocklin

View GitHub Profile
@JasonLocklin
JasonLocklin / temperature.sh
Created April 28, 2024 23:22 — forked from fabiolimace/temperature.sh
Get current temperature
# https://askubuntu.com/questions/15832/how-do-i-get-the-cpu-temperature
paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) \
| column -s $'\t' -t \
| sed 's/\(.\)..$/.\1°C/'
@JasonLocklin
JasonLocklin / redditnet-smolweb.md
Created April 28, 2024 15:43
Redditnet Small Web
layout title description date categories
post
Redditnet homepages
vive le smol web
2024-04-28
websites
ham-radio
amateur-radio

About

Long live the small web. This is just a bunch of links to the prolific and never updated websites

@JasonLocklin
JasonLocklin / watch.sh
Created October 25, 2022 20:11
Watch JT-mode decodes for specific callsigns one-liner.
#!/bin/sh
# Create a text file titled "frenz" in the same directory, with one callsign per line.
#
# This uses ntfy.sh for push notifications -you will need to create a "topic" on there and update
# "INSERT_YOUR_TOPIC_HERE" below to your topic name.
tail -f ~/.local/share/WSJT-X/ALL.TXT -f ~/.local/share/JS8Call/ALL.TXT | grep -f frenz --line-buffered | awk 'NR==FNR{pat[$0];next}{for(term in pat){if($9~term){system("curl -d " $9 "_heard_on_" $2 $4 " ntfy.sh/INSERT_YOUR_TOPIC_HERE") }}}' frenz -
@JasonLocklin
JasonLocklin / restore.R
Last active October 15, 2020 20:08
Retrieving data as of a specific day
# Query the time-series enrollment file
library(dplyr)
load(datafile) #This loads the datafile (db)
query_day <- function(db, cutoff_date) {
#This function returns student enrolment data as of the 'cutoff_date'
#Remove all data after the cutoff date
db <- filter(db,
Select
P.STUDENT_NO,
P.PERSON_ID,
P.PREFERRED_NAME_UPPER,
R.school_year,
R.GRADE,
R.SCHOOL_CODE,
P.BIRTH_DATE
FROM
---
title: "R FOI"
output: html_notebook
---
Create a unified data set by aligning variables and combining
'df4' and 'df'
```{r}
library(tidyverse)
secondary <- df %>% select(grade, SchoolName = SchoolName_ED,

Keybase proof

I hereby claim:

  • I am jasonlocklin on github.
  • I am jason_locklin (https://keybase.io/jason_locklin) on keybase.
  • I have a public key whose fingerprint is 9551 BD8F BCCC 5763 9FD9 9C5E 99F2 DE4E 2972 C74D

To claim this, I am signing this object:

@JasonLocklin
JasonLocklin / gist:8567549
Created January 22, 2014 21:20
Home Server Notes
Installed Debian stable from netinstall on a USB stick created with unetbootin.
Selected btrfs on a raw partitian, and a small swap partitian. I chose
to try btrfs out for the first time on this system because I want compression
(8Gb internal SSD). I also want the parity checks so that, hopefully, the system
can run for years without any corruptuion of any of the important files. I figured
it would be a good first use because I can easily do a bare-metal backup of the SSD,
being that it's only 8gb, to another machine.
Deselected standard desktop, and just installed SSH and standard utilities.
@JasonLocklin
JasonLocklin / QuickGit.md
Last active December 25, 2015 21:59
Quick Git and Github

Quick Git & Github

###Git octocat Git is Free Software that runs on your computer and takes snapshots of files in a directory, stores a well documented history, and permits collaboration and syncing (optionally with a service like Github). The basic git software runs from the command line, but there are graphical versions available, including one provided by Github.

Git can manage any type of file, but shines with small-ish sized, rapidly changing files (i.e., data files more than a few dozen MB should not be stored in git). Many of it's powerful features work best with plaintext files, so it is perfect for managing projects with source code and plain text documents (including HTML or other markup files). Documents written in word processors can also be versioned as well, but for detailed history, you will want to use an integrated "track changes" feature.

Using version control