Skip to content

Instantly share code, notes, and snippets.

View hcaw's full-sized avatar
🔨

Harry Wright hcaw

🔨
  • London
View GitHub Profile
@maxwellmlin
maxwellmlin / LPX-Trial-Reset.sh
Created April 14, 2021 03:46
Logic Pro X Trial Reset
mv -v ~/Library/Application\ Support/.lpxuserdata ~/.Trash
@chillipeper
chillipeper / ubuntu_focal_dev_setup.sh
Last active February 28, 2021 06:18
Ubuntu 20.04 Workstation Developer Setup --> Tmux + Vim + Docker | Python & Go
#!/bin/bash
# Update repos
sudo apt update
# Upgrade system to latest packages
sudo apt -y upgrade
# Install ubuntu packages
sudo apt install -y cmake vim git curl tmux pipenv jq
#!/bin/bash
# PLEASE NOTE: I started learning Bash scripting 4 weeks ago, so if this somehow
# breaks your system and opens a wormhole to the Gamma Quadrant,
# I'm sorry.
#
# This is a setup script for Debian-based computers. It is highly customized
# for my personal use; I made it public because I think it could be a good
# starting point for someone else. It will need to be customized for anyone
# else's use.
@robhawkins
robhawkins / downloadPack.py
Created August 24, 2019 03:30
download emojis from yaml
#!/usr/bin/env python
import yaml
import sys
import requests
import os
yaml_file = sys.argv[1]
packname = os.path.splitext(os.path.basename(yaml_file))[0]
@bodil
bodil / init.ts
Created August 12, 2019 17:34
Snapshot of my vscode-use-package setup
import * as vscode from "vscode";
import { initUsePackage, usePackage, configSet } from "vscode-use-package";
import * as nav from "./nav";
import * as js from "./js";
import * as rust from "./rust";
export function init(context: vscode.ExtensionContext) {
console.log(`HELLO FROM INIT SCRIPT`);
@subfission
subfission / comfu.txt
Last active May 9, 2023 22:00
Command Kung Fu Reference
# Run the last command as root
sudo !!
# Serve current directory tree at http://$HOSTNAME:8000/
python -m SimpleHTTPServer
# Save a file you edited in vim without the needed permissions
:w !sudo tee %
@laggardkernel
laggardkernel / startup-time-of-zsh.md
Last active July 12, 2024 22:28
Comparison of ZSH frameworks and plugin managers

Comparison of ZSH frameworks and plugin managers

Changelog

  • update 1: add a FAQ section
  • update 2: benchmark chart and feature comparison table
  • update 3:
    • improve the table with missing features for antigen
    • new zplg times result

TLDR

@gxfxyz
gxfxyz / synology_disk_benchmark.sh
Created October 1, 2018 18:16
A simple script to test Synology NAS disk speed with hdparm, dd and fio
#!/usr/bin/env bash
# =======================================================================================
#
# A simple script to test Synology NAS disk speed with hdparm, dd and fio.
#
# How to use:
#
# 1. Save synology_disk_benchmark.sh and xfio.conf to your Synology NAS
# 2. Make it executable: chmod +x synology_disk_benchmark.sh
@robocoder
robocoder / gist:fc9a28fd1500d510d197a4209996d0f3
Last active June 11, 2020 14:04
Purple Player, Platform Purple, DRM, Leaping Brain, Brain Trust
Audience: video content creators
It is alleged that:
* the initial DRM implementation simply XOR'd the first 13 bytes of the first 15 x 1K blocks of the video file;
* the 13 byte key was literally, "RANDOM STRING"
* reference: https://plus.google.com/+AsherLangton/posts/Yk71MgkvAXx
It was later observed that:
* the DRM implementation was changed to XOR the first 32 bytes of the first 16 x 1K blocks of the video file;
* the 32 byte key appears random;