Skip to content

Instantly share code, notes, and snippets.

View raku-cat's full-sized avatar
🦊

Raku raku-cat

🦊
View GitHub Profile
! scroll options
URxvt*scrollTtyOutput: false
URxvt*scrollWithBuffer: true
URxvt*scrollTtyKeypress: true
URxvt*scrollBar: false
! font settings
URxvt*font: xft:Input Mono:pixelsize=11
URxvt*boldFont: xft:Input Mono:style=Bold:pixelsize=11
URxvt*italicFont: xft:Input Mono:style=Italic:pixelsize=11
@raku-cat
raku-cat / -
Created February 1, 2017 21:21
[1242254.470838] systemd-sysv-generator[10825]: Failed to read configuration file '/etc/init.d/supervise': Is a directory
[1242254.517693] systemd[1]: Started ACPI event daemon.
[1242254.518139] systemd[1]: Listening on ACPID Listen Socket.
[1242254.518878] systemd[1]: Mounted /.
[1242254.521292] systemd[1]: Reached target Network is Online.
[1242278.848959] systemd-default-display-manager-generator[14360]: /etc/X11/default-display-manager points at gdm3 while the default systemd unit is . Reconfiguring gdm3 as default.
[1242278.853521] systemd-sysv-generator[14362]: Failed to read configuration file '/etc/init.d/supervise': Is a directory
[1242278.900583] systemd[1]: Started ACPI event daemon.
[1242278.901038] systemd[1]: Listening on ACPID Listen Socket.
[1242278.901768] systemd[1]: Mounted /.
@raku-cat
raku-cat / -
Created February 17, 2017 05:05
[2017-02-16 23:03:57.895787] _LISTENER == ConnectionFrom(192.168.1.50, 58800) [Allowed]
[2017-02-16 23:03:57.895859] There are [0] clients from [192.168.1.50]
[2017-02-16 23:03:57.896182] /home/josh/znc/src/Csocket.cpp:1730 Error with SSLCert file [/home/josh/.znc/znc.pem]
[2017-02-16 23:03:57.896217] /home/josh/znc/src/Csocket.cpp:657 at /home/josh/znc/src/Csocket.cpp:1731
[2017-02-16 23:03:57.896285] /home/josh/znc/src/Csocket.cpp:662 error:0906D06C:PEM routines:PEM_read_bio:no start line
[2017-02-16 23:03:57.896334] /home/josh/znc/src/Csocket.cpp:657 at /home/josh/znc/src/Csocket.cpp:1731
[2017-02-16 23:03:57.896396] /home/josh/znc/src/Csocket.cpp:662 error:140DC009:SSL routines:use_certificate_chain_file:PEM lib
[2017-02-16 23:03:57.906282] _LISTENER == ConnectionFrom(192.168.1.50, 58802) [Allowed]
[2017-02-16 23:03:57.906372] There are [0] clients from [192.168.1.50]
OpenSSH_7.4p1 Debian-10, OpenSSL 1.0.2k 26 Jan 2017
debug1: Reading configuration data /home/josh/.ssh/config
debug1: /home/josh/.ssh/config line 1: Applying options for comp
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "192.168.1.10" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 192.168.1.10 [192.168.1.10] port 22.
debug1: Connection established.
debug1: identity file /home/josh/.ssh/comp_rsa type 1
Starting Nmap 7.40 ( https://nmap.org ) at 2017-06-05 00:23 CDT
Nmap scan report for Josh-PC.lan (192.168.1.10)
Host is up (0.0084s latency).
Not shown: 98 closed ports
PORT STATE SERVICE
22/tcp open ssh
5900/tcp open vnc
Nmap done: 1 IP address (1 host up) scanned in 0.16 seconds
#!/usr/bin/env python2
# based on the code from: https://github.com/google/deepdream
import argparse
parser = argparse.ArgumentParser(description='Deep dreams an image.')
parser.add_argument('image', type=argparse.FileType('rb'), help='image file to process')
parser.add_argument('-g', '--gpu', action='store_true', help='enable GPU acceleration')
parser.add_argument('-o', '--out', type=str, default='out.png', help='output image file')
args = parser.parse_args()
from io import StringIO
#!/bin/bash
usage() { echo "Usage: $0 [-f <filename>] [-n <number>]" 1>&2; exit 1; }
while getopts ":f:n:" opt; do
case "$opt" in
f)
filename=${OPTARG}
;;
n)
#!/bin/bash
usage() { echo "Usage: $0 [-f <filename>] [-n <number>]" 1>&2; exit 1; }
while getopts ":f:n:" opt; do
case "$opt" in
f)
filename=${OPTARG}
;;
n)
#!/bin/bash
# Usage message
usage() { echo "usage: $0 [-h] [-k] [-n <number>] image" 1>&2; }
# Help message
help() { usage; printf "\nWrapper for deepdream.py.
positional arguments:
image image file to process
#!/bin/bash
win=$(xdotool search --onlyvisible --name "Toontown Rewritten \[Beta\]" | head -1)
while true
do
# xdotool key --clearmodifiers --window $win Left
# xdotool key --clearmodifiers --window $win Left
# xdotool key --clearmodifiers --window $win Left
xdotool key --clearmodifiers --window $win Left
sleep 3
# xdotool key --clearmodifiers --window $win Right