Skip to content

Instantly share code, notes, and snippets.

View jeeukko's full-sized avatar

Juho Häkkinen jeeukko

  • Finland
  • 19:33 (UTC +03:00)
View GitHub Profile
Friend: You can't make crossover meme with only Unicode characters
Me:
🅰🅷 🆂🅷🅸🆃 𝓐𝓒𝓣𝓤𝓐𝓛𝓛𝓨 𝕀 ℙ𝕌𝕃𝕃𝔼𝔻 𝔸 𝕊ℕ𝔼𝔸𝕂𝕐 𝕆ℕ 𝕐𝔸
🇮🇹 🇦🇮🇳🇹 🇲🇺🇨🇭 🇧🇺🇹 🅘 🅐🅜 HACKERMAN
#!/bin/bash
# API key for ThingSpeak
APIKEY=""
# Type of cpmputer (raspi, hp)
TYPE="hp"
if [ $TYPE == "raspi" ]; then
TEMP=$(< /sys/class/thermal/thermal_zone0/temp)
curl -d "field1=$(awk '{printf("%d",($1/60/60/24))}' /proc/uptime)&api_key=APIKEY" https://api.thingspeak.com/update.json

Keybase proof

I hereby claim:

  • I am jeeukko on github.
  • I am jeeukko (https://keybase.io/jeeukko) on keybase.
  • I have a public key whose fingerprint is E4DA 034A 99AF 94F3 237D E22E A98D 202B 6335 907C

To claim this, I am signing this object:

#!/bin/bash
# Tool to convert and rename video files
# For example:
# "Show Name and shit S01E01 more shit.mkv" -> "S01E01.mp4"
# Example command:
# rename-and-convert.sh /dir/to/mkv/files /dir/for/output
NOWEND=".mkv"
NEWEND=".mp4"
<?php
function lokita($txt) {
$loki = file_get_contents("loki.txt");
$loki = $loki . date("Y-m-d H:i:s") . " | " . $txt . "\n";
file_put_contents("loki.txt", $loki);
}
?>
<?php
require("fpdf.php");
class PDF extends FPDF {
function setCol($col) {
$x = 10 + $col * 65;
$this->SetLeftMargin($x);
$this->SetX($x);
}