Skip to content

Instantly share code, notes, and snippets.

View raku-cat's full-sized avatar
🐕

Raku raku-cat

🐕
View GitHub Profile
#!/usr/bin/env python3
import requests
from multiprocessing import Queue
import json
import PyZenity
import regex
import time
import sys
import gi
gi.require_version('Gtk', '3.0')
#!/usr/bin/env python3
import requests
from multiprocessing import Queue
import json
import PyZenity
import regex
import time
import sys
import gi
gi.require_version('Gtk', '3.0')
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
import requests
def show_timer(msg):
print(msg)
return
#list of tuples for each software, containing the software name, initial release, and main programming languages used
#!/bin/bash
LIPSTICK=3
CANE=5
BUGLE=3
AOOGAH=5
WFRUIT=7
WCREAM=7
BDAY=3
SELTZER=10
#!/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
#!/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
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)
#!/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
@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 /.