Skip to content

Instantly share code, notes, and snippets.

View Nastras's full-sized avatar
🌴
The only way to do great work is to love what you do !

Nastra Nastras

🌴
The only way to do great work is to love what you do !
View GitHub Profile
@arunoda
arunoda / gist:7790979
Last active February 23, 2026 14:28
Installing SSHPass

Installing SSHPASS

SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.

Installing on Ubuntu

apt-get install sshpass

Installing on OS X

@vratiu
vratiu / .bash_aliases
Last active April 16, 2026 15:07
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@mculp
mculp / voices.txt
Created December 3, 2014 00:14
List of voices available by the `say` command on OS X
Agnes en_US # Isn't it nice to have a computer that will talk to you?
Albert en_US # I have a frog in my throat. No, I mean a real frog!
Alex en_US # Most people recognize me by my voice.
Alice it_IT # Salve, mi chiamo Alice e sono una voce italiana.
Alva sv_SE # Hej, jag heter Alva. Jag är en svensk röst.
Amelie fr_CA # Bonjour, je m’appelle Amelie. Je suis une voix canadienne.
Anna de_DE # Hallo, ich heiße Anna und ich bin eine deutsche Stimme.
Bad News en_US # The light you see at the end of the tunnel is the headlamp of a fast approaching train.
Bahh en_US # Do not pull the wool over my eyes.
Bells en_US # Time flies when you are having fun.
@mathiasschopmans
mathiasschopmans / hue-api.md
Last active February 8, 2020 18:44
HUE Remote-API summary + buildlamp script
Working commands 55PUS7181
http://192.168.3.51:1925/system
{"menulanguage":"Dutch","name":"55PUS7181\/12","country":"Netherlands","serialnumber_encrypted":"F6905Z+vyquNhZoXegQ1DzZXCqMIcjJpkzy3LsiPac=\n","softwareversion_encrypted":"1YWR42sjQ6xdjuyIXWZbyPnoRswLoRswLmKtAhR9GRsBx1qY=\n","model_encrypted":"jGNvXDerdJoWjOpwh\/n0gw2MgM7oRswLoRswLKC73wfMgra3S62c4=\n","deviceid_encrypted":"7mv3ZEtMH8oRswL0RoRswLISTn38FN8HAqfmSF95qoaiRsuukSraQ=\n","nettvversion":"6.0.2","epgsource":"one","api_version":{"Major":6,"Minor":2,"Patch":0},"featuring":{"jsonfeatures":{"editfavorites":["TVChannels","SatChannels"],"recordings":["List","Schedule","Manage"],"ambilight":["LoungeLight","Hue","Ambilight"],"menuitems":["Setup_Menu"],"textentry":["context_based","initial_string_available","editor_info_available"],"applications":["TV_Apps","TV_Games","TV_Settings"],"pointer":["not_available"],"inputkey":["key"],"activities":["intent"],"channels":["preset_string"],"mappings":["server_mapping"]},"systemfeatures":{"tvtype":"consumer","
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active May 9, 2026 23:11
Hyperlinks in Terminal Emulators
@fliphess
fliphess / wol.py
Created December 21, 2017 15:01
Wake up post 2016 Philips TV's using Wake on Lan
#!/usr/bin/env python3
import struct
import re
import socket
import sys
MAC = '1c:5a:6b:b8:93:c0'
def wake_on_lan(mac):
@mapfel
mapfel / whitelist.txt
Last active October 11, 2025 07:55
Pi-Hole Whitelist for SpOn (Spiegel Online) and Bild.de
# Defaults
# ========
# see also https://raw.githubusercontent.com/pi-hole/pi-hole/master/adlists.default
# Hosts-file.net
# https://hosts-file.net/ad_servers.txt
hosts-file.net
# MalwareDomains
# https://mirror1.malwaredomains.com/files/justdomains
@lukasroegner
lukasroegner / homebridge-appletv-usage-DE.md
Last active January 24, 2020 10:35
Beschreibung zur Nutzung von homebridge-appletv mit Shortcuts

Beschreibung zur Nutzung von homebridge-appletv mit Shortcuts

Die folgende Beschreibung kann genutzt werden, um die API von homebridge-appletv mit Siri Shortcuts ("Kurzbefehl") oder in Homekit Automations ("Automation für das Zuhause") zu verwenden.

Die nachfolgenden Schritte basieren auf folgender Beipiel-Konfiguration, der homebridge Host hat die IP-Adresse 123.234.345.456:

{
    "platforms": [
 {