Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block tmplinshi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
TLMcode / GoogleServices.php
Last active Mar 1, 2019
Google API Service Endpoints in PHP & cURL
View GoogleServices.php
class GoogleServices
public function __construct()
levsthings /
Last active Apr 9, 2019
Install Docker CE on Ubuntu 17.10

Installing Docker CE on Ubuntu 17.10 Artful Aardvark

As of 20/10/2017, a release file for Ubuntu 17.10 Artful Aardvark is not available on Download Docker.

If you are used to installing Docker to your development machine with get-docker script, that won't work either. So the solution is to install Docker CE from the zesty package.

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL | sudo apt-key add -
qwerty12 / BrightnessSetter.ahk
Last active Jul 21, 2019
BrightnessSetter: set laptop brightness and show Windows 10's native brightness OSD (
View BrightnessSetter.ahk
class BrightnessSetter {
; qwerty12 - 27/05/17
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"))))
G33kDude / GDI.ahk
Last active Aug 11, 2019
GDI wrapper for AutoHotkey
View GDI.ahk
class GDI
__New(hWnd, CliWidth=0, CliHeight=0)
if !(CliWidth && CliHeight)
VarSetCapacity(Rect, 16, 0)
DllCall("GetClientRect", "Ptr", hWnd, "Ptr", &Rect)
CliWidth := NumGet(Rect, 8, "Int")
CliHeight := NumGet(Rect, 12, "Int")
Uberi / Speech Recognition.ahk
Created Aug 18, 2013
Speech recognition with Microsoft's SAPI. A simple SpeechRecognizer class provides a quick and easy way to use speech recognition in your scripts. Inspired by some [prototype code]( made a long time ago.
View Speech Recognition.ahk
#Warn All
#Warn LocalSameAsGlobal, Off
Speech Recognition
A class providing access to Microsoft's SAPI. Requires the SAPI SDK.
AHK-just-me / Image2Include.ahk
Last active Jun 3, 2019
Create include files from images which can be used without external files.
View Image2Include.ahk
; ======================================================================================================================
; Function: Creates AHK #Include files for images providing a function which will internally create a bitmap/icon.
; AHK version: (U32)
; Script version: me - added support for icons (HICON)
; me - fixed bug producing invalid function names
; me
; Credits: Bitmap creation is based on "How to convert Image data (JPEG/PNG/GIF) to hBITMAP?" by SKAN ->
; ======================================================================================================================
; This software is provided 'as-is', without any express or implied warranty.
AHK-just-me / Class_CCButton.ahk
Last active Feb 24, 2018
Class CCButton - Colored Captions on Buttons
View Class_CCButton.ahk
; ======================================================================================================================
; Namespace: CCButton
; Function: Helper class for colored captions on themed pushbuttons.
; AHK version: (U32)
; Language: English
; Version: me
; ======================================================================================================================
; How to use: To register a GUI pushbutton call
; CCButton.Attach()
; passing two parameters:
AHK-just-me / GuiControlAddBox.ahk
Last active Dec 15, 2015
GuiControlAddBox (DE)
View GuiControlAddBox.ahk
SetBatchLines, -1
Gui, New
Gui, Margin, 20, 20
; Textfeld mit den Dimensionen der "GroupBox" erstellen
Gui, Add, Text, w400 h200 vGB hwndHGB BackGroundTrans Section
; Position holen, um den Titel später zentrieren zu können
GuiControlGet, GB, Pos
; "GroupBox" Rahmen im Textfeld erstellen
clemensg / curl_libuv_example.c
Last active May 24, 2019
An example on how to use libuv with libcurl's multi interface Should be equally fast on Unixes (uses epoll/kqueue/etc like libev/libevent) but MUCH faster on Windows due to libuv's usage of IO completion ports. Could come in handy if you have to manage several hundreds or thousands of connections!
View curl_libuv_example.c
#include <stdio.h>
#include <stdlib.h>
#include <uv.h>
#include <curl/curl.h>
uv_loop_t *loop;
CURLM *curl_handle;
uv_timer_t timeout;
typedef struct curl_context_s {
AHK-just-me / Class_LV_Colors.ahk
Last active Jul 29, 2019
Class_LV_Colors{} - Set background and/or text colours for individual cells or rows in an AHK GUI ListView control.
View Class_LV_Colors.ahk
; ======================================================================================================================
; Namespace: LV_Colors
; AHK version: AHK
; Function: Helper object and functions for ListView row and cell coloring
; Language: English
; Tested on: Win XPSP3, Win VistaSP2 (U32) / Win 7 (U64)
; Version: me
; me - bugfixes and minor changes
; me - added "Critical, 100" to avoid drawing issues
; ======================================================================================================================
You can’t perform that action at this time.