Skip to content

Instantly share code, notes, and snippets.

View harakka's full-sized avatar
🥔

Antti Riikonen harakka

🥔
  • Finland
View GitHub Profile
@psbaltar
psbaltar / sleep_as_android_webhooks.yaml
Last active February 24, 2024 21:25
Home Assistant blueprint for handling Sleep as Android webhooks events
blueprint:
name: Sleep as Android webhook handler
description: >
Home Assistant blueprint for handling Sleep as Android webhooks events
In Sleep as Android app, set Webhooks URL to:
https://<home-assistant-host>/api/webhook/<webhook-id>
@darkobits
darkobits / repl.groovy
Last active September 15, 2022 12:20
Jenkins Interactive Shell
script {
while (true) {
def cmd = input(message: 'Jenkins Interactive Shell', parameters: [
string(name: 'cmd', description: 'Enter a command or leave blank to continue job.', defaultValue: '')
], ok: 'Execute')
if (cmd == '') { print 'Continuing job...'; break; }
try { sh cmd } catch (err) { }
}
}
@collinbarrett
collinbarrett / userChrome.css
Last active April 11, 2024 10:22
A userChrome.css to use with Tree Style Tab (https://github.com/piroor/treestyletab) for Firefox
/*
Windows
Location: C:\Users\<YourUsername>\AppData\Roaming\Mozilla\Firefox\Profiles\<YourFirefoxProfile>\chrome
Notes:
If minimize, maximize, and close buttons are no longer visible, enable the Title Bar or Menu Bar in Firefox Customize.
macOS
Location: /Users/<YourUsername>/Library/Application Support/Firefox/Profiles/<YourFirefoxProfile>/chrome
Notes:
If minimize, maximize, and close buttons overlap other controls, add the Flexible Space in Firefox Customize.
@samsheffield
samsheffield / UnityCodingCheatSheet.txt
Last active November 13, 2024 10:12
Unity C# Cheat Sheet
// Unity C# Cheat Sheet
// I made these examples for students with prior exerience working with C# and Unity.
// Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting
@alirobe
alirobe / reclaimWindows10.ps1
Last active November 15, 2024 12:08
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@toxicFork
toxicFork / TextureAtlasSlicer.cs
Last active November 24, 2019 08:28
TextureAtlasSlicer.cs
using System;
using System.Collections.Generic;
using System.Xml;
using UnityEditor;
using UnityEngine;
public class TextureAtlasSlicer : EditorWindow {
[MenuItem("CONTEXT/TextureImporter/Slice Sprite Using XML")]
public static void SliceUsingXML(MenuCommand command)
{