Skip to content

Instantly share code, notes, and snippets.

View christopher-talke's full-sized avatar
🎉

Ekky christopher-talke

🎉
View GitHub Profile
@christopher-talke
christopher-talke / OSRS_XP_TABLE
Created November 18, 2022 00:02
OSRS XP Table
{
"1": {
"xp": "0",
"difference": "0"
},
"2": {
"xp": "83",
"difference": "83"
},
"3": {
@christopher-talke
christopher-talke / log_dump_netlify
Created November 17, 2022 11:57
Netlify Logdump
10:36:21 PM: build-image version: d7b3813f01c06610bc1723ff1b22446513ee7941 (focal)
10:36:21 PM: build-image tag: v4.14.3
10:36:21 PM: buildbot version: 4f669c94b322d52f143cdcbb17e55d40094aa06d
10:36:21 PM: Building without cache
10:36:21 PM: Starting to prepare the repo for build
10:36:22 PM: No cached dependencies found. Cloning fresh repo
10:36:22 PM: git clone https://github.com/christopher-talke/talke-dev
10:36:22 PM: Preparing Git Reference refs/heads/master
10:36:22 PM: Parsing package.json dependencies
10:36:23 PM: Section completed: initializing
@christopher-talke
christopher-talke / roulette_betting_options_mapping.json
Last active November 9, 2022 06:57
Roulette Betting Options & Payouts - JSON Mapping Table
{
"__straight_up_bets_below__": "",
"0": 0,
"1": 1,
"2": 2,
"3": 3,
"4": 4,
"5": 5,
"6": 6,
"7": 7,
@christopher-talke
christopher-talke / ShoppingList.md
Last active June 23, 2021 14:03
Air Conditioning IoT Automation - Pi 4 Project

Project Plan

  • Setup Pi to capture and send ir signals
  • Capture all the useful commands
  • Write script(s) to achieve this
  • Write a small web server and hook up the script(s)
  • Setup web ui to control output, and develop timers
  • Automate the air conditioning unit

Parts Required

@christopher-talke
christopher-talke / storage-sense-configuration-via-registry.ps1
Last active April 16, 2024 23:29
Configure Storage Sense Settings, including Locally available cloud content preferences
<#
.SYNOPSIS
Configures Storage Sense Settings, including locally availabel cloud content preferences for Windows 10 / Windows Server 2019
.EXAMPLE
.\storage-sense-configuration-via-registry.ps1
.LINK
Email: Christopher Talke <chris@talke.dev>
Github Gist: https://gist.github.com/christopher-talke/146513b852cef21a917cb1d9ecb25d9a
@christopher-talke
christopher-talke / array-sort-immutable.js
Last active June 20, 2019 06:24
Future reference for immutable sort for object arrays.
const example_1_input = [
{
name: 'product 1',
order: 4
},
{
name: 'product 2',
order: 3
},
{
@christopher-talke
christopher-talke / handleMoney.js
Last active June 19, 2019 01:04
Custom Gist to Handle Money Formats.
const handleMoney = {
// Converts a number format (NOT FLOAT) to a human readble money value that is typically associated to a float.
// @param value = number
// @output result = float
toHuman: function(value) {
const options = {
minimumFractionDigits: 2
};
const formatter = new Intl.NumberFormat('en-AU', options);
return formatter.format(value / 100);
@christopher-talke
christopher-talke / deploy.sh
Last active December 15, 2022 08:15
Docker Deployment via Remote SSH
#!/bin/bash
# Basic Script to Automate Docker Deployment
# - Details for how this script works, see here:
# - https://gist.github.com/christopher-talke/11c655de511dd799a1d9c3cf156e7a94#gistcomment-2935112
# Created By: christopher.talke <christopher.talke@gmail.com>
##### VARIABLES SECTION #####