Skip to content

Instantly share code, notes, and snippets.

View HerrCraziDev's full-sized avatar
🌴
Norminal laziness

HerrCrazi HerrCraziDev

🌴
Norminal laziness
  • CHEN & CO.
  • Brest, Brittany
View GitHub Profile
@HerrCraziDev
HerrCraziDev / .tmux.conf
Created July 31, 2021 01:38
bare tmux config
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# More friendly split pane
bind-key h split-window -h
bind-key v split-window -v
bind - split-window -h
bind _ split-window -v
@HerrCraziDev
HerrCraziDev / dock.ks
Last active July 19, 2021 22:30
Auto-docking script for KSP, using kOS. It doesn't performs orbital rendez-vous, hence you should be in the vicinity of your target when executing it.
//***********************************/
//* Auto-docking system */
//* - */
//* © FAITO Aerospace Inc. - 2059 */
//***********************************/
// Author : HerrCrazi - License : GNU GPL 3.0
// This program is distributed by FAITO Aerospace and the Feguan Open Source Foundation under a GNU GLP 3.0 license,
// as part of the National Open-source Initiative of 2096.
@HerrCraziDev
HerrCraziDev / hakuneko_postload_parser.js
Created March 2, 2020 15:13
Reverse-engineered script injected by HakuNeko to un-scramble the links list based on the first image link.
new Promise((resolve, reject) => {
function getImage() {
resolve( [...this.document.querySelectorAll("div#image a img")].map(el => el.src) );
}
function getImageFromHtml() {
console.log("green yoda dongers")
let pageCode = new this.URL(this.document.querySelector("div.container select#pages option").dataset.img).pathname.split('.').shift().split('');
let imageCode = new this.URL(this.document.querySelector("#image a img").src).pathname.split('.').shift().split('');

Keybase proof

I hereby claim:

  • I am HerrCraziDev on github.
  • I am herrcrazi (https://keybase.io/herrcrazi) on keybase.
  • I have a public key whose fingerprint is 5930 D34E 16CD 022D F28F ED8E 1518 3180 1B16 E193

To claim this, I am signing this object:

Hey I am me lol trust me

parameter defaultRadarOffset is 7, gearDeployTime is 6.
clearscreen.
print "*****************************".
print "* FAITO Aerospace *".
print "* XASR-3.1 Autolander Pilot *".
print "* © Empire of Fegeland, 2055*".
print "*****************************".
if defaultRadarOffset <> 7
@HerrCraziDev
HerrCraziDev / libfalcon.ks
Created February 22, 2018 07:37
Function lib for the Falcon Heavy autopilot
//getLandingSite(String siteName)
// Return the GeoPosition of the site matching siteName, or the current vessel's position if not found
function getLandingSite
{
parameter name is "auto".
if name = "auto"
{
return ship:geoposition.
}
@HerrCraziDev
HerrCraziDev / fh-core.ks
Created February 22, 2018 07:36
Falcon Heavy autopilot script
//***********************************/
//* Falcon Core Test Script */
//* - */
//* Falcon Reusability System v2.3 */
//* © FAITO Aerospace Inc. - 2059*/
//***********************************/
// Author : HerrCrazi
@HerrCraziDev
HerrCraziDev / hoverslam.ks
Created January 6, 2018 17:34
Script for performing an hoverslam (aka. suicide burn) in KSP, like SpaceX's rockets. Uses the mod kOS. Start the script on the launchpad, and launch the rocket normally. It will automatically handle the descent and landing for you.
parameter defaultRadarOffset is 7, gearDeployTime is 6.
clearscreen.
print "*****************************".
print "* FAITO Aerospace *".
print "* XASR-3.1 Autolander Pilot *".
print "* © Empire of Fegeland, 2055*".
print "*****************************".
if defaultRadarOffset <> 7