$ cat watch.sh
#!/bin/bash
wget -O - --http-user=admin --http-password=hoge http://192.168.0.1/usr/jp/adm/statistic.asp | gzip -c -9 > "$(date '+%Y%m%d%H%M%S').html.gz"
$ cat switch.sh
# ./lib/tasks/db.rake | |
require 'active_record' | |
@logger = Logger.new(STDOUT) | |
namespace :db do | |
desc "Dumps the database to tmp/dbname.dump" | |
task mysql_dump: [:environment, :load_config] do | |
environment = Rails.env | |
configuration = ActiveRecord::Base.configurations[environment] |
$primary-color-dark: #303F9F !default; //color depth 700 | |
$primary-color: #3F51B5 !default; //color depth 500 | |
$primary-color-light: #C5CAE9 !default; //color depth 100 | |
$accent-color: #F44336 !default; //color depth 500 | |
$primary-grey-text: #757575 !default; | |
$secondary-grey-text: #333 !default; | |
$divider-color: #B6B6B6 !default; | |
#!/bin/bash | |
browser_title="Google Chrome" | |
terminal_title="byobu" | |
current_window_id=$(xdotool getwindowfocus) | |
browser_window_id=$(xdotool search --name --onlyvisible "$browser_title") | |
terminal_window_id=$(xdotool search --name --onlyvisible "$terminal_title") | |
if test $current_window_id -eq $browser_window_id |
# ------------------------------------------------------------------------------ | |
# tlp - Parameters for power save | |
# See full explanation: http://linrunner.de/en/tlp/docs/tlp-configuration.html | |
# Hint: some features are disabled by default, remove the leading # to enable | |
# them. | |
# Set to 0 to disable, 1 to enable TLP. | |
TLP_ENABLE=1 |
#!/bin/bash | |
browser_title="Google Chrome" | |
terminal_title="byobu" | |
current_window_id=$(xdotool getwindowfocus) | |
browser_window_id=$(xdotool search --name --onlyvisible "$browser_title") | |
terminal_window_id=$(xdotool search --name --onlyvisible "$terminal_title") | |
if test $current_window_id -eq $browser_window_id |
# ./lib/tasks/db.rake | |
require 'active_record' | |
@logger = Logger.new(STDOUT) | |
namespace :db do | |
desc "Make seed data importable with seed_fu" | |
task :dump_seed_fu, [:model] => :environment do |t, args| | |
model_name = args.model.underscore | |
class_name = args.model.camelize |
# monthly 25th 18:00(UTC) == 03:00(JTC) renew | |
00 18 25 * * /etc/init.d/nginx stop && /home/iberianpig/certbot/certbot-auto renew --force-renew && /etc/init.d/nginx start |
require 'dashed' | |
require 'net/https' | |
# main class | |
class Yamadash | |
USERNAME = 'yamada' | |
ICONURL = '' | |
MACADDRESS = '12:34:56:78:90:ab' | |
DEVICENAME = 'wlp2s0' |
$ cat watch.sh
#!/bin/bash
wget -O - --http-user=admin --http-password=hoge http://192.168.0.1/usr/jp/adm/statistic.asp | gzip -c -9 > "$(date '+%Y%m%d%H%M%S').html.gz"
$ cat switch.sh