Skip to content

Instantly share code, notes, and snippets.

@frunkad
frunkad / bookmark.js
Last active October 15, 2020 16:27
Quickfeedback 2.0
javascript:(function(){$("div.stars:not(.ng-hide) > .stars > span.stars > input.yn--1").click();$("div.stars:not(.ng-hide) > .stars > span > label.star.star-1").click();var c = prompt("What to fill in input boxes? (Use different each time)");$("div.stars:not(.ng-hide) > textarea").val(c);setTimeout(() => {$("form button.btn.btn-primary").click()}, 1000)})();
@frunkad
frunkad / control.py
Created October 3, 2020 06:26
Arduino - Python Duplex Communication
import serial
port = "/home/frunkad/projects/cansat/virtual-hind1"
# Uncomment the next line
# port = "COM1"
with serial.Serial(port, 9600, timeout=None) as ser:
while(True):
l = ser.readline()
@frunkad
frunkad / keybase.md
Created June 17, 2020 21:40
Keybase

Keybase proof

I hereby claim:

  • I am frunkad on github.
  • I am frunkad (https://keybase.io/frunkad) on keybase.
  • I have a public key ASCbBRSQK2XBGS1ELoDeHsmFWlD6d1WEjcWH0j2_7vk4Hwo

To claim this, I am signing this object:

@frunkad
frunkad / startup-script.sh
Last active August 1, 2020 15:08
Startup Script for Compute Engine Instances
set -v
PROJECTID=$(curl -s "http://metadata.google.internal/computeMetadata/v1/project/project-id" -H "Metadata-Flavor: Google")
# Install logging monitor. The monitor will automatically pick up logs sent to
# syslog.
curl -s "https://storage.googleapis.com/signals-agents/logging/google-fluentd-install.sh" | bash
service google-fluentd restart &
# Install dependencies from apt
@frunkad
frunkad / metar.js
Created July 4, 2019 10:12
Metar Convertor
const express = require('express');
const app = express();
function convertMETAR(metarString) {
const codeList = metarString.split(' ');
const result = {};
let i = 0;
let current = codeList[i];
@frunkad
frunkad / pin6.gif
Last active June 30, 2019 09:50
Pin 6
pin6.gif
@frunkad
frunkad / pin5.gif
Last active June 30, 2019 09:48
Pin 5
pin5.gif
@frunkad
frunkad / pin3.gif
Last active June 30, 2019 09:42
Pin 3
pin3.gif
@frunkad
frunkad / pin4.gif
Last active June 30, 2019 09:51
Pin 4
pin4.gif
@frunkad
frunkad / pin2.gif
Last active June 30, 2019 09:45
Pin 2
pin2.gif