Skip to content

Instantly share code, notes, and snippets.

@egelev
egelev / connect_bluetooth_headphones.sh
Last active April 26, 2024 14:14
Connect bluetooth headphones on Ubuntu 18.04
#!/usr/bin/env bash
function get_headphones_index() {
echo $(pacmd list-cards | grep bluez_card -B1 | grep index | awk '{print $2}')
}
function get_headphones_mac_address() {
local temp=$(pacmd list-cards | grep bluez_card -C20 | grep 'device.string' | cut -d' ' -f 3)
temp="${temp%\"}"
temp="${temp#\"}"
@actuallymentor
actuallymentor / commands.sh
Last active November 18, 2021 12:42
Android Shell Commands (for use with Tasker or adb)
##
# These commands can all be run as Tasker shell commands, or through adb
# NOTE ON ROOT: I noticed many commands work through the adb shell, but fail in tasker unless using ROOT. If you tasks fail, try enabling root for it
##
## SETTING THINGS
# Enable deep doze
dumpsys deviceidle force-idle
@simonmikkelsen
simonmikkelsen / getimg.sh
Created January 26, 2018 10:53
Download your own image from Mapillary
#!/bin/bash
if [ $# -lt 3 ]
then
echo "Usage: $0 email password imageKey"
exit
fi
email="$1"
shift
pass="$1"
@davebrny
davebrny / my gists - tasker.md
Last active October 21, 2017 08:41
my tasker gists
@davebrny
davebrny / my gists - autohotkey.md
Last active September 5, 2021 05:29
my autohotkey gists
@akaleeroy
akaleeroy / Conjoined-Twins.md
Last active July 3, 2022 19:22
Conjoined Twins - IFTTT-style application actions using auditing and scheduled tasks under Windows

Conjoined Twins

IFTTT-style application actions using auditing and scheduled tasks under Windows

Conjoined Twins IFTTT-style application actions PowerShell script demo

How it works

The script audits a trigger application to make it raise an event when it's executed, then schedules a task to run an action command on that event. For example an automation script, or a batch file, or another app.

Advantages

@PurpleBooth
PurpleBooth / README-Template.md
Last active May 9, 2024 19:52
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@AWMooreCO
AWMooreCO / Working with AutoHotKey in Sublime Text.md
Last active June 23, 2023 20:27
How to make the best of use of Sublime Text in editing, running, and compiling AutoHotKey scripts.

Sublime Text, AutoHotKey, and You

If you're going to work with [AutoHotKey] scripts, I recommend that you download and install [Sublime Text 3], which is an excellent editor for all sorts of languages, including AutoHotKey .AHK files. To get the most out of Sublime Text 3 when editing AHK files:

  1. Install Sublime Text [Package Control], then,
  2. Install and Set Up the [AutoHotKey Package] the easy way:
    1. Enter the Sublime Text command palette by pressing Ctrl + Shift + P or by navigating to Preferences > Packages Control
    2. In the input field, type install and using your directional keys (up/down), highlight Package Control: Install Package and press Enter
    3. Now type autohotkey, and when all the results are filtered to just the one AutoHotKey package and it is highlighted, press Enter. This will install the AutoHotKey package.
  3. Once the AutoHotKey Package for Sublime Text is installed, we're going to need to edit