Skip to content

Instantly share code, notes, and snippets.

@dysfunc
dysfunc / app.svelte
Last active February 23, 2024 22:23
Svelte - Simple pull to refresh
<script>
import Refresher from './refresher.svelte';
const onRefresh = async () => {
await new Promise(res => setTimeout(res, 2000));
}
</script>
<Refresher {onRefresh}>
<div id="app">This is my cool Svelte app! (switch to mobile emulator)</div>
@SavageCore
SavageCore / 1-readme.md
Last active May 4, 2024 21:44 — forked from cdleveille/Install⁄Update Xone
Install or update xone driver for Steam Deck (desktop shortcut and bash script)

Enjoying this script? Consider buying me a beer/coffee!

ko-fi

First time setting up your Deck? You may enjoy my setup guide. It'll get you started on Emulation.

Improvements

Main changes at initial release versus cdleveille's original script:

  • Added zenity for a basic "GUI"
import os
import time
import shutil
import subprocess
import signal
import sys
import argparse
#If the applescript stops working or you don't want the function, set enableapplescript to False
enableapplescript = True
@cdleveille
cdleveille / Install⁄Update Xone
Last active May 2, 2024 23:50
Install or update xone driver for Steam Deck (desktop shortcut and bash script)
[Desktop Entry]
Comment[en_US]=
Comment=
Exec=bash $HOME/xone_install_or_update.sh
GenericName[en_US]=
GenericName=
Icon=preferences-desktop-gaming
MimeType=
Name[en_US]=Install⁄Update Xone
Name=Install⁄Update Xone
@mdegat01
mdegat01 / update_notifications.yaml
Last active May 7, 2024 10:42
Update Notifications Automation Blueprint
blueprint:
name: Update notifications
description: Send notifications for new updates and install or skip on action
homeassistant:
min_version: '2022.4.0'
domain: automation
input:
update_entities:
name: Update entities
description: >-
@wongyiuhang
wongyiuhang / BUILD_FFPROBE.md
Last active February 16, 2023 15:59
Build Independent ffprobe on macOS

Prerequisite

  1. Install make
brew install make

Build

  1. git clone FFmpeg/FFmpeg
@TimoPtr
TimoPtr / chia.service
Created April 24, 2021 16:24
Chia service
[Unit]
Description=Chia Daemon
After=network-online.target multi-user.target
Requires=network-online.target
[Service]
Type=forking
TimeoutStartSec=infinity
User=chia
ExecStart=/bin/bash /home/chia/start_chia.sh
@sbyx
sbyx / low-battery-level-detection-notification-for-all-battery-sensors.yaml
Last active April 27, 2024 18:33
Home Assistant Blueprint: Low battery level detection & notification for all battery sensors
blueprint:
name: Low battery level detection & notification for all battery sensors
description: Regularly test all sensors with 'battery' device-class for crossing
a certain battery level threshold and if so execute an action.
domain: automation
input:
threshold:
name: Battery warning level threshold
description: Battery sensors below threshold are assumed to be low-battery (as
well as binary battery sensors with value 'on').
@franzwarning
franzwarning / MultipleDeviceScreengrabFastfile
Last active May 24, 2023 13:13
Fastlane capture_android_screenshots/screengrab android on multiple devices at the same time
lane :build_for_screenshots do
gradle(
task: 'assemble',
build_type: 'Screenshots'
)
gradle(
task: 'assemble',
build_type: 'ScreenshotsAndroidTest'
)
end
@dalezak
dalezak / README.md
Last active September 11, 2023 09:51
Ionic Capacitor Resources Generator
  1. Run npm install cordova-res --save-dev
  2. Create 1024x1024px icon at resources/icon.png
  3. Create 2732x2732px splash at resources/splash.png
  4. Add "resources": "cordova-res ios && cordova-res android && node scripts/resources.js" to scripts in package.json
  5. Copy resources.js file to scripts/resources.js
  6. Run sudo chmod -R 777 scripts/resources.js
  7. Run npm run resources