I hereby claim:
- I am lucatnt on github.
- I am lucatnt (https://keybase.io/lucatnt) on keybase.
- I have a public key ASDr6Win6i4E2mPEt_us1ZyGwWmRwZLjBrQxJ39pBJNEcAo
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| WEBHOOK_DESTINATION="http://localhost:3000/stripe/webhook" | |
| WEBHOOK_SECRET="whsec_ENTER_YOURS_HERE" | |
| if [[ ! "$#" -eq 1 ]]; then | |
| echo "USAGE: $0 /path/to/event.json"; | |
| exit 1; | |
| fi | |
| timestamp="$(date +%s)." |
| import requests | |
| def getToken(): | |
| req = requests.post("https://westeurope.api.cognitive.microsoft.com/sts/v1.0/issuetoken", | |
| headers={"Ocp-Apim-Subscription-Key": "YOUR_AZURE_API_KEY_HERE"}, | |
| ) | |
| return req.text | |
| def textToMp3(text, voice="it-IT-ElsaNeural"): |
| #!/usr/bin/env python | |
| from gpiozero import LED, Button | |
| from time import sleep | |
| from flask import Flask | |
| import datetime | |
| portone = LED(25) | |
| app = Flask(__name__) |
| tell application "Finder" | |
| tell front window to update every item | |
| try | |
| delete (make new file at (front window) with properties {name:".refresh.tmp"}) | |
| end try | |
| end tell |
I hereby claim:
To claim this, I am signing this object:
| -- This script can be used in conjunction with Better Touch Tool to display the currently playing track on the MacBook Pro TouchBar | |
| -- More info here: https://lucatnt.com/2017/02/display-the-currently-playing-track-in-itunesspotify-on-the-touch-bar | |
| if application "Spotify" is running then | |
| tell application "Spotify" | |
| if player state is playing then | |
| return (get artist of current track) & " - " & (get name of current track) | |
| else | |
| return "" | |
| end if |
| -- This script can be used in conjunction with Better Touch Tool to display the currently playing track on the MacBook Pro TouchBar | |
| -- More info here: https://lucatnt.com/2017/02/display-the-currently-playing-track-in-itunesspotify-on-the-touch-bar | |
| if application "iTunes" is running then | |
| tell application "iTunes" | |
| if player state is playing then | |
| return (get artist of current track) & " - " & (get name of current track) | |
| else | |
| return "" | |
| end if |
| ############################################################################### | |
| import base64 | |
| import common | |
| import platform | |
| import os | |
| import re | |
| import stat | |
| import socket | |
| import subprocess | |
| import time |
| 1028c1028 | |
| < if ( $aURL['scheme'] != 'http' ) { | |
| --- | |
| > if ( $aURL['scheme'] != 'http' && $aURL['scheme'] != 'https' ) { | |
| 1617,1618c1617,1618 | |
| < // make sure we get the header | |
| < curl_setopt($ch, CURLOPT_HEADER, TRUE); | |
| --- | |
| > // make sure we DON'T get the header | |
| > curl_setopt($ch, CURLOPT_HEADER, FALSE); |
| #!/bin/bash | |
| # Author: Luca Zorzi <luca A_T tuttoeniente D_O_T net> | |
| # License: CC Attribution (http://creativecommons.org/licenses/by/3.0/) | |
| # Release date: 2009-12-13 | |
| # A little script to compare 2 DNS servers | |
| if [[ "$#" != "2" ]] | |
| then | |
| echo "USAGE: $0 dns-server-1 dns-server-2" | |
| exit 1 |