Skip to content

Instantly share code, notes, and snippets.

View ahocquet's full-sized avatar

Anthony Hocquet ahocquet

View GitHub Profile
020-12-14 14:26:48 WARNING (SyncWorker_9) [urllib3.connectionpool] Connection pool is full, discarding connection: api.somfy.com
2020-12-14 14:26:48 INFO (SyncWorker_9) [backoff] Backing off send_command(...) for 1.0s (requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://api.somfy.com/api/v1/device/1a9c2548-6fdf9c24-7b472372-c2fdb0c2/exec)
2020-12-14 14:26:48 WARNING (SyncWorker_4) [urllib3.connectionpool] Connection pool is full, discarding connection: api.somfy.com
2020-12-14 14:26:48 INFO (SyncWorker_4) [backoff] Backing off send_command(...) for 1.0s (requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://api.somfy.com/api/v1/device/b1f8116a-23611091-8131b6f7-fbb895fd/exec)
2020-12-14 14:26:48 WARNING (SyncWorker_7) [urllib3.connectionpool] Connection pool is full, discarding connection: api.somfy.com
2020-12-14 14:26:48 INFO (SyncWorker_7) [backoff] Backing off send_command(...) for 1.0s (requests.exceptions.HTTPError: 500 Server Error:
@ahocquet
ahocquet / Default.bttpreset
Created December 9, 2019 00:10
Better Touch Tools settings
{
"BTTPresetName" : "Default",
"BTTGeneralSettings" : {
"BTTPathSampleSize" : 100,
"BTTCMOnTop" : true,
"BTTForceForceClickPressure2F" : 700,
"BSTLeftHalfBlock" : true,
"BTTMinDrawingMovement" : 2,
"BTTTouchBarMouseModeClickBlock" : true,
"BSTRightHalfBlock" : true,
@ahocquet
ahocquet / BrightnessSetter.ahk
Last active December 4, 2019 22:27
My AutoHotKey mappings
class BrightnessSetter {
; qwerty12 - 27/05/17
; https://github.com/qwerty12/AutoHotkeyScripts/tree/master/LaptopBrightnessSetter
static _WM_POWERBROADCAST := 0x218, _osdHwnd := 0, hPowrprofMod := DllCall("LoadLibrary", "Str", "powrprof.dll", "Ptr")
__New() {
if (BrightnessSetter.IsOnAc(AC))
this._AC := AC
if ((this.pwrAcNotifyHandle := DllCall("RegisterPowerSettingNotification", "Ptr", A_ScriptHwnd, "Ptr", BrightnessSetter._GUID_ACDC_POWER_SOURCE(), "UInt", DEVICE_NOTIFY_WINDOW_HANDLE := 0x00000000, "Ptr"))) ; Sadly the callback passed to *PowerSettingRegister*Notification runs on a new threadl
OnMessage(this._WM_POWERBROADCAST, ((this.pwrBroadcastFunc := ObjBindMethod(this, "_On_WM_POWERBROADCAST"))))
@ahocquet
ahocquet / movieFormat.txt
Created December 2, 2018 20:47
FileBot Movie format
cat movieFormat.txt
movieFormat={n} ({y})/{n} ({y}) {" Part $pi"}{" [$vf $vc $ac $af]"}#
@ahocquet
ahocquet / playercorefactory.xml
Created July 20, 2018 06:34
Kodi MPV External Player
<playercorefactory>
<players>
<player name="MPV" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files\mpv\mpv.exe</filename>
<args>-fs "{1}"</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
@ahocquet
ahocquet / private.xml
Created July 5, 2016 06:51 — forked from carwin/private.xml
Programmer's Shift Keys: Remapping parens, brackets and braces for to because nerd.
<?xml version="1.0"?>
<root>
<item>
<name>Programmer's Shift Keys</name>
<!--
Author: Carwin Young (@carwin)
Last Updated: 2014.07.18
v.1.1
Programmer's Shift Keys
@ahocquet
ahocquet / keymap.xml
Last active June 23, 2016 22:30
keymap.xml
<keymap>
<global>
<keyboard>
<f1>CleanLibrary(video)</f1> <!-- RED BUTTON -->
<f2>UpdateLibrary(video)</f2> <!-- GREEN BUTTON -->
</keyboard>
</global>
<FullscreenVideo>
<keyboard>
<f1>NextSubtitle</f1> <!-- RED BUTTON -->
@ahocquet
ahocquet / .rtorrent.rc
Created June 18, 2016 11:01
My rtorrent.rc file
#
#
# The Seedbox From Scratch Script
# By Notos ---> https://github.com/Notos/
#
#
######################################################################
#
# Copyright (c) 2013 Notos (https://github.com/Notos/)
#
@ahocquet
ahocquet / gist:52cf5b79dfff6b471dfcbb7adc827a86
Created June 3, 2016 15:17
Use filebot with file argument
Invoke filebot with the @ argument :
filebot @arguments.txt
arguments.txt
--q
Chocolat
--filter
y == 2015
--action
test
// ==UserScript==
// @name Format AliExpress Order
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Format the order page from AliExpress to make it pretty for printing
// @author Anthony HOCQUET
// @match http://trade.aliexpress.com/order_detail.htm?orderId=*
// @grant none
// ==/UserScript==