- Until SHIP:APOAPSIS > 80000:
- autostage
- PID auto throttling (limits to terminal velocity based on my calculation https://docs.google.com/spreadsheets/d/1wnwCcMHZnxbBUPQxz-UTNLd3Z2_XWGXIIcyEujLiQrk/edit?usp=sharing)
- At SHIP:APOAPSIS = 80000:
- Points to Prograde to prevent drags
- At SHIP:ALTITUDE = 70000:
- Solar panel extraction
- Circularize orbit (maybe you should turn off kOS computer to finish circularize)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
content="" | |
for var in "$@" | |
do | |
if [[ -f "$var" ]]; then | |
echo "$content" | cat - ${var} > /tmp/add_header_out && mv /tmp/add_header_out ${var} | |
fi | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// thx tomy! http://www5.airnet.ne.jp/tomy/cpro/sslib12.htm | |
function cartesian2polar(x,y,z) { | |
var obj = new Object; | |
obj.r = Math.sqrt( x*x + y*y + z*z ); | |
if (x != 0.0) | |
obj.phi = Math.atan2( y, x ); | |
else { | |
if (y < 0.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'digest/sha2' | |
class ProofOfWork | |
@charset = (" ".."~").to_a | |
def self.solve(target,maxlength) | |
for i in 1..maxlength+1 | |
ProofOfWork.chain(ProofOfWork.product(i)) do |candidate| | |
hashval = Digest::SHA256.hexdigest(candidate) | |
if hashval.start_with?(target) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IP=127.0.0.1 | |
PORT=443 | |
while true | |
do | |
DATE=$(date +%s) | |
iperf3 -c $IP -p $PORT -J --logfile ${DATE}_forward.json | |
iperf3 -R -c $IP -p $PORT -J --logfile ${DATE}_reverse.json | |
sleep 600 | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
$| = 1; | |
if ($ENV{'QUERY_STRING'} ne '') { | |
print "Content-type:text/plain\n\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BANKSELECT='gm' | |
SF="$HOME/Timbres Of Heaven GM_GS_XG_SFX V 3.2 Final.sf2" | |
find "$1" -type f -iname "*.mid" -print0 | while IFS= read -r -d '' fullfile; do | |
file=`basename ${fullfile}` | |
fluidsynth -g 0.01 -o synth.midi-bank-select=$BANKSELECT -o synth.midi-channels=256 -o synth.polyphony=4096 -r 48000 -O double -F "${file}_raw.wav" "${SF}" "${fullfile}" | |
sox --norm=-1 "${file}_raw.wav" -b 32 -e signed-integer "${file}.wav" | |
rm "${file}_raw.wav" & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#define MAX_FRAME_SIZE 256*1024 // KB | |
#define CONTENT_LENGTH "Content-Length: " | |
#define PAYLOAD "\r\n" | |
int main() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var di = 0.81 * temp + 0.01 * rh * (0.99 * temp - 14.3) + 46.3 ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var timer = setInterval(function(){ | |
var $btn = $(".btn.btn-large.submit.btn-primary"); | |
if ($btn.length > 0) { | |
$btn.click(); | |
console.debug("Button clicked"); | |
} | |
},1000); |