Skip to content

Instantly share code, notes, and snippets.

View au8st's full-sized avatar
🚴‍♀️

Leo Black au8st

🚴‍♀️
  • United Kingdom
View GitHub Profile
@Jonathan-Mckenzie
Jonathan-Mckenzie / readme.md
Last active February 2, 2024 13:52
Give everyone in your strava feed a kudos

Give kudos to every event in your feed

  1. Navigate to the main feed page of Strava in a web browser:
    https://www.strava.com/dashboard?num_entries=100
  2. Replace the "100" in the above URL with whatever number of activities you wish to give kudos to
  3. Open Developer Tools in your web browser and navigate to the console
  4. Paste the script below into the console and press enter:
@dobesv
dobesv / dev_signed_cert.sh
Last active March 21, 2024 07:47
Script to create (1) a local certificate authority, (2) a host certificate signed by that authority for the hostname of your choice
#!/usr/bin/env bash
#
# Usage: dev_signed_cert.sh HOSTNAME
#
# Creates a CA cert and then generates an SSL certificate signed by that CA for the
# given hostname.
#
# After running this, add the generated dev_cert_ca.cert.pem to the trusted root
# authorities in your browser / client system.
#
@Tazeki
Tazeki / Reghook.js
Last active August 1, 2019 11:45
YouTube / HookTube RegEx based URL conversion.
// ==UserScript==
// @name URL Conversion | YouTube - HookTube
// @namespace Tazeki
// @description The smallest, possibly most useful YouTube-HookTube conversion script. RegEx based. Report bugs to tangentale@protonmail.com. Sends any /www.youtube.com/ sites to HookTube before page load. Does not affect /other.youtube.com/, (gaming.youtube.com, creatoracademy.youtube.com, etc.).
// @include *youtube*
// @version 1
// @grant none
// @run-at document-start
// ==/UserScript==
@hexparrot
hexparrot / install_mineos-node
Last active June 18, 2022 14:44
Downloads, installs and configures components required for the MineOS Web User Interface on apt-get based systems.
#!/bin/sh
# update repositories
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get update
# download the necessary prerequisite components for mineos
apt-get -y install nodejs supervisor git rdiff-backup screen build-essential default-jre-headless
# download the most recent mineos web-ui files from github
@aldur
aldur / nfs_automount.sh
Last active December 3, 2023 10:08
Mount an NFS share on Android
#!/bin/sh
# Mount an NFS share on Android
# Requirements:
# - Busybox
# - A kernel supporting nfs (either built-in or as a module)
# On my Nexus 7 2012 I use the following kernel:
# http://forum.xda-developers.com/showthread.php?t=2107224
# Remember: if you have problems of system space, simply delete some of the default stuff.
@JeffPaine
JeffPaine / i3-cheat-sheet.md
Last active March 6, 2024 08:07
i3 Window Manager Cheat Sheet

i3 Window Manager Cheat Sheet

$mod refers to the modifier key (alt by default)

General

  • startx i3 start i3 from command line
  • $mod+<Enter> open a terminal
  • $mod+d open dmenu (text based program launcher)
  • $mod+r resize mode ( or to leave resize mode)
  • $mod+shift+e exit i3
@smallfield
smallfield / wahootsv.awk
Last active January 7, 2024 14:55
Extract general information from Wahoo workout data(CSV).
#usage
# find %Dropbox%/Apps/Wahoo | grep csv$ | sort | awk -f wahoo2csv.awk
# Date, TotalDistance, Time, AverageSpeed
BEGIN {
FS=","
general_info_flg=0
distance=0
}
@jclosure
jclosure / wget_site_ripper
Created August 28, 2013 20:31
rip an entire website with wget
wget is a nice tool for downloading resources from the internet. The basic usage is wget url:
wget http://linuxreviews.org/
Therefore, wget (manual page) + less (manual page) is all you need to surf the internet. The power of wget is that you may download sites recursive, meaning you also get all pages (and images and other data) linked on the front page:
wget -r http://linuxreviews.org/
But many sites do not want you to download their entire site. To prevent this, they check how browsers identify. Many sites refuses you to connect or sends a blank page if they detect you are not using a web-browser. You might get a message like:
@asabaylus
asabaylus / gist:3071099
Created July 8, 2012 14:12
Github Markdown Heading Anchors

Anchors in Markdown

To create an anchor to a heading in github flavored markdown. Add - characters between each word in the heading and wrap the value in parens (#some-markdown-heading) so your link should look like so:

[create an anchor](#anchors-in-markdown)