Skip to content

Instantly share code, notes, and snippets.

View areee's full-sized avatar
👨‍💻
Coding

Arttu Ylhävuori areee

👨‍💻
Coding
View GitHub Profile
@areee
areee / .zshrc
Last active November 18, 2023 08:58
An example of a zsh startup file using Powerlevel10k, syntax highlighting & Git completion. Requires macOS & Homebrew to run.
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
source /usr/local/share/powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
@areee
areee / UnityDarkThemeTutorial.md
Last active September 4, 2023 13:54
Change Unity 2018.4.11f1 personal edition (for macOS) from light theme into dark theme (professional editor skin)
  • 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 / delete-likes-from-twitter.md
Created January 5, 2023 14:58 — forked from aymericbeaumet/delete-likes-from-twitter.md
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@areee
areee / main.dart
Created August 14, 2022 09:29 — forked from wingkit-leung/main.dart
Flutter cross platform data persistence solution: shared_preferences with riverpod
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:shared_preferences/shared_preferences.dart';
// A Counter example implemented with riverpod and shared_preferences
/// Providers are declared globally and specify how to create a state
final counterProvider = StateProvider((ref) => 0);
final sharedPrefs = Provider<SharedPreferences>((ref) {
@areee
areee / curl_shasum_256_check.txt
Created September 11, 2021 15:03
An example: How to check shasum 256 of a curl url (in macOS 11.5.2)
curl -sL https://github.com/Genymobile/scrcpy/archive/v1.19.tar.gz | shasum -a 256
@areee
areee / README.md
Last active April 24, 2021 17:29
Raffle a random order for meeting participants

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
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 April 17, 2021 06:16
A '.NET Core' way how to solve if a platform is Unix
using System;
namespace Sandbox
{
class MainClass
{
public static void Main(string[] args)
{
var platform = Environment.OSVersion.Platform;
🏆 359 Contributions in year 2020
📦 Used 594 MB in GitHub's Storage
📜 20 Public Gists
🔑 2 Public Keys
🚫 Not opted to Hire
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