Skip to content

Instantly share code, notes, and snippets.

View JasonLocklin's full-sized avatar

J Locklin JasonLocklin

View GitHub Profile
@JasonLocklin
JasonLocklin / download_gsheet.R
Last active September 2, 2026 13:27
Download a Google Sheet via regular web-browser in R
#' Download a Google Sheet via regular web-browser
#'
#' Opens the sheet's CSV export URL in the default browser, waits for the CSV
#' file to appear in the downloads directory, and loads/returns the data.
#'
#' This function is a very hacky ducktape and binder-twine solution for Google
#' Sheets that require browser-based authentication.
#' **NOTE:** For public sheets, just load the export URL directly:
#' `readr::read_csv(
#' "https://docs.google.com/spreadsheets/d/{id}/export?format=csv&gid={gid}"
[[File:/todo.png |thumb |cosmic screenshot.]]
[https://system76.com/cosmic Cosmic] is the desktop environment from [https://system76.com/ System76]. COSMIC was originally the name of a modified version of GNOME made specifically for [https://system76.com/pop/ Pop! OS], but it is now a standalone desktop environment built from scratch using a custom toolkit called "[https://pop-os.github.io/libcosmic-book/ libcosmic]" that is based upon the iced toolkit and is written almost entirely in the Rust programming language. Cosmic is intended to be highly portable and does not expect systemd.
Cosmic desktop is alpha software and is currently only available in Edge [[Repositories#Testing testing]].
== Prerequisites ==
{{:Include:Desktop prerequisites}}
* Enable [[Elogind]] service
* Install package {{pkg|xf86-input-libinput|arch=}}
Q-Code Meaning Modern SMS Slang
QTH Location wya
QRZ Who is calling me? who dis?
QSL Can you acknowledge receipt? ight or bet
QRM Interference sus
QRN Natural interference (static) buggin
QSY Change frequency slide
QRT Stop transmitting imma head out
QRX Stand by sec
@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 / 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.