Skip to content

Instantly share code, notes, and snippets.

@alanwoolley
alanwoolley / gist:8624181
Created January 25, 2014 21:49
List of Android SDK packages
Packages available for installation or update: 94
----------
id: 1 or "tools"
Type: Tool
Desc: Android SDK Tools, revision 22.3
----------
id: 2 or "platform-tools"
Type: PlatformTool
Desc: Android SDK Platform-tools, revision 19.0.1
----------
@alanwoolley
alanwoolley / sleepIfInactive.sh
Last active May 21, 2023 19:40
Puts QNAP NAS to sleep if idle
#!/bin/bash
SUSPENDTHRESHOLD=1800
LOADTHRESHOLD=1.7
PACKETSTHRESHOLD=40
NFS_PORT=2049
SMB_PORT=445
NETWORKINTERFACE=bond0
DRY_RUN=false
@alanwoolley
alanwoolley / wol.ps1
Last active May 23, 2023 16:41
Powershell script to send WOL magic packet and wait for the woken host to respond to ICMP Ping
<#
.SYNOPSIS
Sends a Wake-on-LAN (WOL) packet to a specified MAC address and pings an optional IP address until it is online.
.DESCRIPTION
This script sends a WOL packet to the specified MAC address to wake up a target device. It can also ping an optional IP address until it is online.
.PARAMETER mac
The MAC address of the target device. It should be provided in one of the following formats:
- 001122334455