Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Coding

Arttu Ylhävuori areee

👨‍💻
Coding
View GitHub Profile
@areee
areee / curl_shasum_256_check.txt
Created Sep 11, 2021
An example: How to check shasum 256 of a curl url (in macOS 11.5.2)
View curl_shasum_256_check.txt
curl -sL https://github.com/Genymobile/scrcpy/archive/v1.19.tar.gz | shasum -a 256
@areee
areee / README.md
Last active Apr 24, 2021
Raffle a random order for meeting participants
View README.md

How to install Lua & develop and run the lottery.lua file (in macOS)

Install Lua by using Homebrew

  • Open Terminal and copy & paste this:
brew install lua
View Program.cs
using System;
using System.IO;
using System.Text.Json;
namespace Sandbox
{
class MainClass
{
public static void Main(string[] args)
{
@areee
areee / Program.cs
Last active Apr 17, 2021
A '.NET Core' way how to solve if a platform is Unix
View Program.cs
using System;
namespace Sandbox
{
class MainClass
{
public static void Main(string[] args)
{
var platform = Environment.OSVersion.Platform;
View 🔊🎶 My last week in music (top tracks)
Ressu Redford: Antaudun ██▋░░░░░░░░░░░░░░ 3 times
Arja Koriseva: Kyynelten █▊░░░░░░░░░░░░░░░ 2 times
Herra Ylppö: Raha - Vain e █▊░░░░░░░░░░░░░░░ 2 times
Jannika B: Opasta mua - █▊░░░░░░░░░░░░░░░ 2 times
Mariska: Kosketa - Vai █▊░░░░░░░░░░░░░░░ 2 times
Reino & The R: Raha █▊░░░░░░░░░░░░░░░ 2 times
Stig: Kato mua silm █▊░░░░░░░░░░░░░░░ 2 times
Vesku Jokinen: Huominen █▊░░░░░░░░░░░░░░░ 2 times
Annika Eklund: Shanghain ▉░░░░░░░░░░░░░░░░ 1 time
Kaija Koo: Tinakenkätytt ▉░░░░░░░░░░░░░░░░ 1 time
View 🔊🎶 My last week in music
Reino Nordin ███▋░░░░░░░░░░░░░ 6 plays
Mariska ██▍░░░░░░░░░░░░░░ 4 plays
Reino & The Rhinos █▊░░░░░░░░░░░░░░░ 3 plays
Ressu Redford █▊░░░░░░░░░░░░░░░ 3 plays
Stig █▊░░░░░░░░░░░░░░░ 3 plays
Arja Koriseva █▏░░░░░░░░░░░░░░░ 2 plays
Herra Ylppö & Ihmiset █▏░░░░░░░░░░░░░░░ 2 plays
Jannika B █▏░░░░░░░░░░░░░░░ 2 plays
Vesku Jokinen █▏░░░░░░░░░░░░░░░ 2 plays
Annika Eklund ▌░░░░░░░░░░░░░░░░ 1 play
View 🐱 GitHub Data
🏆 359 Contributions in year 2020
📦 Used 594 MB in GitHub's Storage
📜 20 Public Gists
🔑 2 Public Keys
🚫 Not opted to Hire
@areee
areee / UnityDarkThemeTutorial.md
Last active Mar 1, 2021
Change Unity 2018.4.11f1 personal edition (for macOS) from light theme into dark theme (professional editor skin)
View UnityDarkThemeTutorial.md
  • Download Hex Fiend application from here
  • Follow this video (except copy the values listed below)
    • Change this hex value: C0 84 DB 74 03 41 8B
    • Into this one: C0 84 DB 75 03 41 8B

(Thank you Samuel's Hacker Zone and also Jack Ha who wrote the working values in this video's comments)

@areee
areee / WhatsApp_restore_chat_history_lineage14-1.md
Last active Jul 12, 2019
How to restore your WhatsApp chat history in LineageOS 14.1 (Android 7.1.2)
View WhatsApp_restore_chat_history_lineage14-1.md

LineageOS 14.1 + WhatsApp: how to restore a chat history (WORKING)

  • Works at least with Samsung Galaxy S III phone (tested with LineageOS 14.1 alias Android 7.1.2)
  • A keyword: enable the following WhatsApp permission beforehand (before you launch the WhatsApp app for the first time):
    • Contacts
    • External Storage
    • (Possibly also SMS)
  • Please note that you log out of your Google Account before starting the restoring process
  • The factory reset via TWRP does not really reset the user's personal partition in the phone memory, so the sdcard/WhatsApp/Databases folder can still be found in the phone's memory even after resetting
  • I took two WhatsApp backups in advance
@areee
areee / Hiekkalaatikko.java
Last active Mar 14, 2019
Nisäkäs-luokan pääohjelma
View Hiekkalaatikko.java
public class Hiekkalaatikko {
public static void main(String[] args) {
Nisakas n1 = new Nisakas("Liisa", 18, "sininen"); // oletuslaji: ihminen
Nisakas n2 = new Nisakas("Kalle", 20, "ruskea"); // oletuslaji: ihminen
Nisakas n3 = new Nisakas("apina", "Abu", 2, "tummanruskea");
Nisakas n4 = new Nisakas(); // oletustiedoilla luotu Valle-jääkarhu
Nisakas n5 = new Nisakas("koira", "Turre", "vihreä"); // 0-vuotias Turre-koira