Skip to content

Instantly share code, notes, and snippets.

require "gtk3"
builder_file = "#{File.expand_path(File.dirname(__FILE__))}/builder-thread.ui"
builder = Gtk::Builder.new(:file => builder_file)
window = builder.get_object("window")
window.signal_connect("destroy") do
Gtk.main_quit
end
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 -->
<interface>
<requires lib="gtk+" version="3.24"/>
<object class="GtkWindow" id="window">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="default-width">440</property>
<property name="default-height">250</property>
<child>
sudo docker run -dit \
--name tvhproxy \
--restart=always \
-p 5004:5004 \
rubyon.co.kr:5555/tvhproxy
#!/bin/bash
if [[ $EUID != 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
black=$(tput setaf 0); red=$(tput setaf 1); green=$(tput setaf 2); yellow=$(tput setaf 3);
blue=$(tput setaf 4); magenta=$(tput setaf 5); cyan=$(tput setaf 6); white=$(tput setaf 7);
on_red=$(tput setab 1); on_green=$(tput setab 2); on_yellow=$(tput setab 3); on_blue=$(tput setab 4);
on_magenta=$(tput setab 5); on_cyan=$(tput setab 6); on_white=$(tput setab 7); bold=$(tput bold);
dim=$(tput dim); underline=$(tput smul); reset_underline=$(tput rmul); standout=$(tput smso);
#!/bin/bash
if [[ $EUID != 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
black=$(tput setaf 0); red=$(tput setaf 1); green=$(tput setaf 2); yellow=$(tput setaf 3);
blue=$(tput setaf 4); magenta=$(tput setaf 5); cyan=$(tput setaf 6); white=$(tput setaf 7);
on_red=$(tput setab 1); on_green=$(tput setab 2); on_yellow=$(tput setab 3); on_blue=$(tput setab 4);
on_magenta=$(tput setab 5); on_cyan=$(tput setab 6); on_white=$(tput setab 7); bold=$(tput bold);
dim=$(tput dim); underline=$(tput smul); reset_underline=$(tput rmul); standout=$(tput smso);
sudo docker run -d \
--name tsearch_bot \
--restart=always \
-p 3000:3000 \
rubyon.co.kr:5555/tsearch_bot
sudo docker run -d \
--name=owncloud \
--restart=always \
-v /home/docker/owncloud/apps:/var/www/html/apps \
-v /home/docker/owncloud/config:/var/www/html/config \
-v /home/docker/owncloud/data:/var/www/html/data \
-p 8082:80 \
owncloud
# Send request to Synology
srpc = SynologyRPC(host[0], host[1], self.conf('username'), self.conf('password'), self.conf('destination'))
if data['protocol'] == 'torrent_magnet':
log.info('Adding torrent URL %s', data['url'])
response = srpc.create_task(url = data['url'])
elif data['protocol'] in ['nzb', 'torrent']:
log.info('Adding torrent URL %s', data['url'])
response = srpc.create_task(url = data['url'])
# log.info('Adding %s' % data['protocol'])
sudo docker run -d \
--name=couchpotato \
--restart=always \
-v /home/docker/couchpotato/config:/config \
-v /home/rubyon/Shared/CouchPotatoDownloads:/downloads \
-v /home/docker/couchpotato/movies:/movies \
-e PGID=0 -e PUID=0 \
-e TZ="Asia/Seoul" \
-p 5050:5050 \
linuxserver/couchpotato
<?php
$JSONOutput = array();
$TotalResults = 0;
$loginUrl = 'https://bezze.me/login.php';
// init curl
$ch = curl_init();