This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Record SSD smart status | |
Before=suspend.target | |
[Service] | |
Type=oneshot | |
ExecStart=/opt/scripts/ssd-monitor.sh | |
RemainAfterExit=no | |
[Install] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Compile and install nginx for OpenShift | |
# with memory cache, webdav and fancyindex support | |
# | |
# This is a universal script which can run on any type of OpenShift gears | |
# Note: | |
# install dir: $OPENSHIFT_DATA_DIR | |
# tmp dir: $OPENSHIFT_TMP_DIR | |
# log dir: $OPENSHIFT_LOG_DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# extend second screen with different scaling | |
# | |
# Copyright (C) 2015 http://www.shuyz.com | |
# REF: 1. http://blog.jamiek.it/2015/04/manually-fixing-multiple-screens-with.html | |
# 2. https://bbs.archlinux.org/viewtopic.php?id=118999 | |
# 3. http://unix.stackexchange.com/questions/101809/how-can-i-automatically-update-my-monitor-layout-in-xfce |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
background yes | |
use_xft yes | |
xftfont 123:size=6 | |
xftalpha 0.1 | |
update_interval 2 | |
total_run_times 0 | |
own_window yes | |
own_window_type normal | |
own_window_transparent yes | |
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PATH=$PATH:/sbin | |
# Auto reconnect to specified WIFI access point if there is no internect connection | |
# Author: Lance | |
# Website: http://www.shuyz.com | |
# Last updated: 2013/05/25 | |
#your WIFI SSID here to be auto connect | |
SSID=ShuYZ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[client] | |
port = 3306 | |
socket = /var/run/mysqld.sock | |
default-character-set=utf8 | |
[mysqld] | |
user = root | |
socket = /var/run/mysqld.sock | |
port = 3306 | |
basedir = /usr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding=utf-8 | |
# | |
# Generate a list of dnsmasq(with ipset) rules for | |
# Censorship of Alexa Top 1000 Domains in China | |
# | |
# Copyright (C) 2014 http://www.shuyz.com | |
# | |
import urllib2 |
NewerOlder