Skip to content

Instantly share code, notes, and snippets.

@fastmover
fastmover / go.sh
Created September 6, 2023 15:00
Install Spikster (cipi) on ubuntu 22.04 (vultr)
#!/bin/bash
# Installation now completes but panel is broken
# One issue is composer is ran as root user
# Panel is broken: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0".
#################################################### CONFIGURATION ###
BUILD=202112181
@fastmover
fastmover / chysler-capital-payment-totals.js
Created July 1, 2020 17:59
Go to Chrysler Capital's Website, go into Transaction history, change the date range to cover all transactions and set the items per page to the maximum (96). Open JavaScript console and paste this code and press ENTER.
let total = 0.0;
let principal = 0.0;
let interest = 0.0;
$('#postedPaymentsTable tr > td:nth-child(3)').each(function(row, row2) {
const payment = row2.innerHTML.replace('(','').replace(')', '').replace('$', '').replace(',','')
if(payment !== '--') {
total = total + +payment;
}
});
#pragma semicolon 1
#include <sourcemod>
#define PLUGIN_VERSION "1.8"
#define cGreen 0x04
#define cDefault 0x01
new spawned[MAXPLAYERS + 1];
@fastmover
fastmover / rotations.css
Created February 11, 2019 22:23
CSS makes me laugh
* {
animation: rotations 5s infinite;
}
@keyframes rotations {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
healthcheck:
test: "nc -z 192.168.1.1 22"
interval: 1s
retries: 120
@fastmover
fastmover / sortByTimeWithMoment.js
Created March 9, 2018 17:15
Sort dates in an array using moment.js
const ordered = {};
selectedDays.sort((one, two) => {
let ts1 = moment(one.getTime()).unix();
let ts2 = moment(two.getTime()).unix();
if(ts1 < ts2)
return -1;
if(ts1 > ts2)
return 1;
return 0
}).forEach((key) => {
@fastmover
fastmover / mac.sh
Created February 20, 2018 05:16
Install MAC stuff
#!/bin/bash
#install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#install linux commands
brew install watch
brew install htop
#brew install wget (is this included in the new mac now?)
@fastmover
fastmover / name.service
Last active December 25, 2017 22:37
For Ubuntu 16.04, create a new file in /etc/systemd/system/ with the name you'd like to use for this service. This is the name you'll be using for service `name` start/stop. Change line 10 to reflect the executable you're going to use. Then run `systemctl enable [service name]`. Then start the service: service [name] start
[Unit]
Description=Some Service
After=network.target
[Service]
Restart=always
Type=simple
User=root
ExecStart=/usr/local/bin/[binary-name]
@fastmover
fastmover / cryptocurrency-setup-ubuntu-1604.sh
Last active December 25, 2017 19:05
A quick setup script for compiling crypto currencies on Ubuntu 16.04
#!/bin/bash
apt update
apt install -y build-essential libssl-dev software-properties-common git libminiupnpc-dev
add-apt-repository ppa:bitcoin/bitcoin
apt update
apt install -y libdb4.8-dev libdb4.8++-dev libboost-all-dev
cd src/
make -f makefile.unix
@fastmover
fastmover / add-gimp-to-windows-context-menu.reg
Created July 31, 2017 17:50
Does what the file name describes.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\Edit with GIMP]
[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\Edit with GIMP\command]
@="\"C:\\Program Files\\GIMP 2\\bin\\gimp-2.8.exe\" \"%1\""