Skip to content

Instantly share code, notes, and snippets.

View Spencerx's full-sized avatar
💭
🌩️🌩️

Spencer Tom Tafadzwa Chirume Spencerx

💭
🌩️🌩️
View GitHub Profile
@Spencerx
Spencerx / gist:bb55db6f9a92bed686dd6107eff2fb5c
Created September 28, 2023 22:52
Motivation for why offline still works,
Most system admins only really use offline installers especially those working in a data center. So in certain places it may
be reality that my pipe to the machine or any other ddevice will be more than a certain data center has.
Just a note to keep in mind.
The whole note is here https://sourcegraph.com/notebooks/Tm90ZWJvb2s6MzA5OQ==
The complete text is right here:
From here https://termbin.com/kexo9
To this
Personal Notes:

Downloading Torrents from the Ubuntu command-line

This is WIP!

Let us look at the options available to torrent from the ubuntu command line.

I tried out multiple options and my favorite is Transmission - A fast, easy and free BitTorrent Client

Lets say you wan't to download MacTeX - TeX Users Group using the torrent link.

A sensible NixOS Xfce Configuration

NixOS provides good support for the Xfce desktop environment out-of-the-box, but the defaults are minimal. The files in this Gist provide a more complete experience, including a suite of basic software and plugins as well as an optional home-manager configuration for theming.

The key additions to the default Xfce provided by NixOS are:

  • Complete bluetooth / audio support with panel indicators and apps
  • LightDM with theme
  • Extra Xfce apps for calendaring, disk partitioning, etc.
  • Various quality-of-life improving non-essentials
@Spencerx
Spencerx / TDA_resources.md
Created September 16, 2023 23:06 — forked from calstad/TDA_resources.md
List of resources for TDA

Quick List of Resources for Topological Data Analysis with Emphasis on Machine Learning

This is just a quick list of resourses on TDA that I put together for @rickasaurus after he was asking for links to papers, books, etc on Twitter and is by no means an exhaustive list.

Survey Papers

Both Carlsson's and Ghrist's survey papers offer a very good introduction to the subject

Other Papers and Web Resources

@Spencerx
Spencerx / github_desktop_ubuntu.sh
Created June 19, 2023 12:29 — forked from berkorbay/github_desktop_ubuntu.md
To install Github Desktop for Ubuntu
## Follow this link for further updates to Github Desktop for Ubuntu https://github.com/shiftkey/desktop/releases/latest
# UPDATE (2022-11-07): Thanks to Sxvxgee's message, the updated code is as follows
sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.1.1-linux1/GitHubDesktop-linux-3.1.1-linux1.deb
### Uncomment below line if you have not installed gdebi-core before
# sudo apt-get install gdebi-core
sudo gdebi GitHubDesktop-linux-3.1.1-linux1.deb
# UPDATE (2021-10-18): Thanks to Amin Yahyaabadi's message, the updated code is as follows
@Spencerx
Spencerx / ScalaFuture.scala
Created January 28, 2019 05:32 — forked from tkfx/ScalaFuture.scala
Scala Future
import scala.util.{Success, Failure}
val f: Future[List[String]] = Future {
session.getRecentPosts
}
f onComplete {
case Success(posts) => for (post <- posts) println(post)
case Failure(t) => println("An error has occured: " + t.getMessage)
}
@Spencerx
Spencerx / 1_README.md
Created October 30, 2018 03:28 — forked from Daniel15/1_README.md
Complete Google Drive File Picker example

Google Drive File Picker Example

This is an example of how to use the Google Drive file picker and Google Drive API to retrieve files from Google Drive using pure JavaScript. At the time of writing (14th July 2013), Google have good examples for using these two APIs separately, but no documentation on using them together.

Note that this is just sample code, designed to be concise to demonstrate the API. In a production environment, you should include more error handling.

See a demo at http://stuff.dan.cx/js/filepicker/google/

@Spencerx
Spencerx / Tweetsheets
Created October 30, 2018 03:25 — forked from johannesnagl/Tweetsheets
Use Twitter directly in your Google Doc, so no one will ever blame you for being social
var CONSUMER_KEY = "<< YOUR KEY HERE >>";
var CONSUMER_SECRET = "<< YOUR SECRET HERE >>";
function getConsumerKey() {
return CONSUMER_KEY;
}
function getConsumerSecret() {
return CONSUMER_SECRET;
}

Time Travel Debugging

Time Travel refers to the ability to record a tab and later replay it ([WebReplay][wrr]). The technology is useful for local development, where you might want to:

  • pause and step forwards or backwards
  • pause and rewind to a prior state
  • rewind to the time a console message was logged
  • rewind to the time an element had a certain style or layout
  • rewind to the time a network asset loaded
@Spencerx
Spencerx / Free O'Reilly Books.md
Created April 14, 2018 18:56 — forked from augbog/Free O'Reilly Books.md
Free O'Reilly Books

Free O'Reilly books and convenient script to just download them.

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)
  3. Run ./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.