Skip to content

Instantly share code, notes, and snippets.

@xguitian
xguitian / takeout2cp2077.sh
Created July 25, 2021 18:56
Convert Google Stadia Cyberpunk 2077 savegames to PC
#!/bin/bash
# set -x
shopt -s nullglob
########################################################################################################
# URL:
# https://www.reddit.com/r/Stadia/comments/kb48nk/cyberpunk_2077_savegame_exportimport_google/
##
# Manual:
# start Google Stadia, and make a manual savegame.
# go to "https://takeout.google.com" and click on "Unselect.
@jessfraz
jessfraz / boxstarter.ps1
Last active April 11, 2024 16:02
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@bbrowning
bbrowning / openshift_instructions.md
Last active August 22, 2018 15:59
Running Apache OpenWhisk on OpenShift

Running Apache OpenWhisk on OpenShift

Prerequisites

These instructions assume you are using Minishift 1.0.1 or newer as your OpenShift installation.

You'll also need a wsk binary in your $PATH to interact with OpenWhisk after it's deployed. Download the latest version for your OS

@marcan
marcan / linux.sh
Last active December 1, 2023 15:18
Linux kernel initialization, translated to bash
#!/boot/bzImage
# Linux kernel userspace initialization code, translated to bash
# (Minus floppy disk handling, because seriously, it's 2017.)
# Not 100% accurate, but gives you a good idea of how kernel init works
# GPLv2, Copyright 2017 Hector Martin <marcan@marcan.st>
# Based on Linux 4.10-rc2.
# Note: pretend chroot is a builtin and affects the current process
# Note: kernel actually uses major/minor device numbers instead of device name
@alexeiz
alexeiz / htop-solarized-patch.diff
Created January 28, 2013 17:19
Patch for the default color scheme for htop that works well with the solarized terminal color theme.
diff -u -r a/CRT.c b/CRT.c
--- a/CRT.c 2012-10-19 14:59:28.000000000 -0400
+++ b/CRT.c 2013-01-28 12:08:36.812929000 -0500
@@ -562,7 +562,7 @@
CRT_colors[LED_COLOR] = ColorPair(Green,Black);
CRT_colors[TASKS_RUNNING] = A_BOLD | ColorPair(Green,Black);
CRT_colors[PROCESS] = A_NORMAL;
- CRT_colors[PROCESS_SHADOW] = A_BOLD | ColorPair(Black,Black);
+ CRT_colors[PROCESS_SHADOW] = A_BOLD | ColorPair(Green,Black);
CRT_colors[PROCESS_TAG] = A_BOLD | ColorPair(Yellow,Black);

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@rsvp
rsvp / netspeed.sh
Last active May 13, 2020 15:08
netspeed.sh : check download speed rate via command line | Linux bash script
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2013-07-11
#
# _______________| netspeed : check download speed via command line.
#
# Usage: netspeed [tokyo, london, usw, use, east, west, URL]
# ^default U.S. west coast.
# [ -speed_KB/sec ]
# ^negation activates the Mbps converter.
#