Skip to content

Instantly share code, notes, and snippets.

View peterellisjones's full-sized avatar

Peter Jones peterellisjones

View GitHub Profile
@peterellisjones
peterellisjones / gist:50b3d12bc4fa3dd1849a3db1f894118d
Last active August 27, 2024 07:50
Shapez 2 MAM with support for pins
SHAPEZ2-1-H4sIAC2TzWYA/+y9fW8dx7Hu+10W8qcITPV7C9h/xHK2T+7mjhM78bkXgWEsyLSycClSIKmzIRj+7peM1iJn1nTPdD1Px9v3nLEAGZJY1dPVb9Xd1fX7effd7rUM2b/affHn3eufd797+PThavd698f76/3Nj7tXuz++vb15+ocv9w/73eu/7w6Pf3795+v9w0+3d+/vd69uPl5ff/5td/+P/Yer1998/Pxr9/0vr3Z/uHm4O1zdPwr+vPu/d68vZHi1+3+e/m9f7b55LPnV7q+PhV3uP91+fPjhm/3h+k+3P149lvrm8W/fvPvDF7//S/r943//tvvl1ZkCwyoQVsFQUPDXu/3h5vJ2/+PV3Q/fPpnjvkVVrmn69mH/cHi0f4OORFYnkvKBlPekvCPl2Q5J90dCnimYHAZktUmrk41O9jmyy5Mjjhzwmew2bLcj+x08/6fJ7G0m8t9+2L+9+uLq+mGk5N9//4c3v3/3by8KIqsgsAr8RIGdKPjT46q8v/5BHmW/GK/nX3w8XP94uHnXe0U3o754rMrT5//59u7h26ubx2XwjzcPV3c3++vv9neH/c3DsU7/+e73k2Yx407F6xFWj8SFD/rm6u3V4X/VVD1qOVeTu2hJXbSUbYN8zOVp9j/q+p+Hu6tHr+Xm/v3h4VFLTeVRj60Y+Murn/Yfrx/+/fbuv/Z3Py4KZ0jW1JtE00P8eBrCvv/YFHYmfHn108Oi5GTuXxb8z8Pd3e3d1Y8nBa5g928/XP+zyeSvt+ayUrArTduHnx7kbx++2L/9fxcq+1Li5cndAKo8kcfavKZC2/Ru3oOWLFhugTSZvBWGzKNKQD3AztTAQ6iHNT3YIX2lQ5pVO/pxbzD6Dunm8uAEwKgwiyqwVoD7tC/36da2yKNKELNaplsk0w2S+7SHHa2yxFg3MzX0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peterellisjones / app_instance_identity_intro_to_envoy.md
Created January 18, 2022 14:29 — forked from nikhilsuvarna/app_instance_identity_intro_to_envoy.md
Application Instance Identity and Intro to Envoy in PCF
@peterellisjones
peterellisjones / rotate_certs.rb
Last active February 19, 2020 11:22
BOSH-generated certificate rotation script
#!/usr/bin/env ruby
require 'yaml'
require 'json'
#
# Simple Ruby script to rotate bosh-generated certificates
# Requires a BOSH deployment manifest that uses certificate variables and the original credentials file
# Outputs 4 credentials files that should be deployed one at a time, in order
#
jobs:
plan:
- task: say-hello
config:
platform: linux
image_resource:
type: docker-image
source:
repository: alpine
run:
@peterellisjones
peterellisjones / player-fixtures.csv
Last active July 22, 2018 10:13
Player-fixture performance for all 2018-2019 FPL players' 2017-2018 FPL fixtures
We can't make this file beautiful and searchable because it's too large.
assists,attempted_passes,big_chances_created,big_chances_missed,bonus,bps,clean_sheets,clearances_blocks_interceptions,completed_passes,creativity,dribbles,ea_index,element,errors_leading_to_goal,errors_leading_to_goal_attempt,fixture,fouls,goals_conceded,goals_scored,ict_index,id,influence,key_passes,kickoff_time,kickoff_time_formatted,loaned_in,loaned_out,minutes,offside,open_play_crosses,opponent_team,own_goals,penalties_conceded,penalties_missed,penalties_saved,recoveries,red_cards,round,saves,selected,tackled,tackles,target_missed,team_a_score,team_h_score,threat,total_points,transfers_balance,transfers_in,transfers_out,value,was_home,winning_goals,yellow_cards,player_long_name,player_id_2017_2018,player_id_2018_2019,player_code,opponent_team_code,player_team_code,player_position
0,10,0,0,0,3,0,0,9,0.6,0,0,443,0,0,9,0,2,0,1.9,443,0.4,0,2017-08-13T15:00:00Z,13 Aug 16:00,0,0,9,0,0,12,0,0,0,0,0,0,1,0,25136,0,0,0,0,4,18.0,0,0,0,0,50,False,0,0,Aaron_Cresswell,443,402,55459,1,21,defender
0,21,0,0,0,16,0,6,17,5
@peterellisjones
peterellisjones / vm_types.yaml
Created February 24, 2017 13:03
GCP custom vm types in terms of AWS vm sizes
vm_types:
- name: m3.medium
cloud_properties:
cpu: 1
ram: 3840
root_disk_size_gb: 10
root_disk_type: pd-ssd
ephemeral_external_ip: true
preemptible: true
- name: m3.large
@peterellisjones
peterellisjones / Chess Perft test positions
Last active September 20, 2024 17:02
Test positions for debugging chess engines. Formatted as JSON array of FEN strings
[
{
"depth":1,
"nodes":8,
"fen":"r6r/1b2k1bq/8/8/7B/8/8/R3K2R b KQ - 3 2"
},
{
"depth":1,
"nodes":8,
"fen":"8/8/8/2k5/2pP4/8/B7/4K3 b - d3 0 3"
{
"HYDROGEN": {
"atomic_number": 1,
"abbreviation": "H",
"atomic_weight": 1.008
},
"HELIUM": {
"atomic_number": 2,
"abbreviation": "He",
"atomic_weight": 4.003
@Router = React.createClass
mixins: [ReactMeteor.Mixin]
propTypes:
routes: React.PropTypes.arrayOf(
React.PropTypes.shape(
path: React.PropTypes.string.isRequired
render: React.PropTypes.func.isRequired
subscriptions: React.PropTypes.arrayOf(
React.PropTypes.shape(