Skip to content

Instantly share code, notes, and snippets.

View filfreire's full-sized avatar

Filipe Freire filfreire

View GitHub Profile
@filfreire
filfreire / extract-data-traod.md
Created November 11, 2023 12:32
Extracting Data from TRAOD
View extract-data-traod.md

Extracting Data from TRAOD - Guide

Intro

.CLZ to .GMX; .GMX to game files; game files to .FBX

Extracting .GMX from .GMX.CLZ

AODXpand

@filfreire
filfreire / revert-slack-ui.js
Created October 13, 2023 10:54
revert Slack UI 2023
View revert-slack-ui.js
(function() {
'use strict';
let localConfig = localStorage.getItem("localConfig_v2");
if (localConfig) {
localConfig = localConfig.replace(/\"is_unified_user_client_enabled\":true/g, '\"is_unified_user_client_enabled\":false');
localStorage.setItem("localConfig_v2", localConfig);
}
})();
@filfreire
filfreire / sample-ssl-client-server-cert.sh
Created November 18, 2022 16:50
Create sample SSL Client and Server Certificates
View sample-ssl-client-server-cert.sh
#!/usr/bin/env bash
openssl genrsa -aes256 -passout pass:changeme -out ca.pass.key 4096
openssl rsa -passin pass:changeme -in ca.pass.key -out ca.key
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
openssl genrsa -aes256 -passout pass:changeme -out server.pass.key 4096
openssl rsa -passin pass:changeme -in server.pass.key -out server.key
openssl req -new -key server.key -out server.csr
openssl x509 -CAcreateserial -req -days 365 -in server.csr -CA ca.crt -CAkey ca.key -out server.crt
openssl genrsa -aes256 -passout pass:changeme -out client.pass.key 4096
View grep_json_field.sh
# quick hack alternative to using 'jq -r .some_field'
grep -o '"some_field": *"[^"]*' experiment.json | grep -o '[^"]*$'