Skip to content

Instantly share code, notes, and snippets.

@cornernote
cornernote / README.md
Last active January 15, 2022 17:18
Logitech G105 Keyboard - Ubuntu 18.04
conky.config = {
update_interval = 2,
cpu_avg_samples = 2,
net_avg_samples = 2,
out_to_console = false,
override_utf8_locale = true,
double_buffer = true,
no_buffers = true,
text_buffer_size = 32768,
imlib_cache_size = 0,
@cornernote
cornernote / Dockerfile
Last active April 30, 2021 23:54
docker test for wkhtmltopdf
FROM debian:stretch
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get -y install \
curl && \
## Install wkhtmltopdf
curl -L https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.stretch_amd64.deb \
-o wkhtmltox_0.12.6-1.stretch_amd64.deb && \
apt-get -y install \
@cornernote
cornernote / README.md
Last active September 27, 2020 08:11
Play with Docker PHP

Play with Docker

There are many way to try out Docker PHP, a really slick one is creating a stack on Play with Docker.

Login or signup, then create a new instance.

Download a Docker PHP application definition:

curl -Lo docker-compose.yml https://gist.githubusercontent.com/cornernote/f3b6c62e76500afd26454e15c6d18d7e/raw/16a2e76e95976aa34bcf3d29c3ffeb57a03a3cbf/docker-compose.yml
@cornernote
cornernote / README.md
Created June 4, 2015 12:38
How to use PsySH with a Yii2 application

Using PsySH (GitHub) as the Yii2 shell

  • Issue the following commands from the command line in your Yii application directory:
    • chmod +x psyii
    • mkdir extensions/yiishell
    • wget -O extensions/yiishell/psysh psysh.org/psysh
    • chmod +x extensions/yiishell/psysh
  • Copy the file init.php below to psysh/init.php and update any paths to work with your application configuration
  • Copy the file config.php below to psysh/config.php. Change or add to the config array with the options you'd like to use (available options)
  • Now you can start PsySH with the command ./psyii psysh/init.php --config psysh/config.php
@cornernote
cornernote / clicker.au3
Created May 23, 2020 04:53
Auto-It Auto Clicker
$currentClicking = False
HotKeySet('^x', 'End')
Func End()
Exit
EndFunc
HotKeySet('^o', 'Click')
Func Click()
$currentClicking = False
HotKeySet('^x', 'End')
Func End()
Exit
EndFunc
HotKeySet('0', 'Farm')
Func Farm()
#!/usr/bin/python2
import sys
import os.path
import imp
import usb.core
import usb.util
from time import sleep
dev = None
;
; Auto-Farmer for Bee Swarm Simulator
; Version 1.0
;
; Copyright 2019 Brett O'Donnell
;
#include <TrayConstants.au3>
Local $gumdropsSlot; = 2