Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

george chao whizzalan

🎯
Focusing
Block or report user

Report or block whizzalan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View owen_watch_file.sh
watch_file=`stat -c %Y owen_watch_file.sh`;
now_=`date +%s`;
if [ $[ $now_-$watch_file ] -gt 1 ];then
echo 'Owen Good Job!';
else
echo 'This file Not be changed!';
fi
View owen_watch_file.sh
watch_file=`stat -c %Y owen_watch_file.sh`;
now_=`date +%s`;
if [ $[ $now_-$watch_file ] -gt 1 ];then
echo 'Owen Good Job!';
else
echo 'This file Not be changed!';
fi
@whizzalan
whizzalan / linux_os_syntax
Last active Jan 18, 2018
新增硬碟空間
View linux_os_syntax
# linux 新增硬碟空間作法
```shell=
# 卸載先前 pure Storage
umount /data1
# 無法卸載,仍有user再上面使用,列出user 並將user執行程序殺除 <數字>c 表示正在執行
fuser -m /data1
View Arch or Linux 常用指令.md

Arch or Linux 常用指令

tags: Linux, arch

System

check linux

@whizzalan
whizzalan / installation.md
Created Mar 21, 2017
hortonworks_offline_installation
View installation.md

CentOS 6.8 / HDP 2.4.2.0

install httpd

yum install httpd service httpd start vim /etc/httpd/conf/httpd.conf

ServerName :80

cd /var/www/html

View try-userAgent.R
usrAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
getOption("HTTPUserAgent")
options(HTTPUserAgent=usrAgent)
url.regular <- "https://www.sportslottery.com.tw/web/services/rs/betting/tournamentGames/15102/0/t-4102.json?groups=278&groups=283&groups=289&groups=293&groups=683&locale=tw&brandId=defaultBrand&channelId=1"
httr_options("useragent")
curl_docs("useragent")
httr::set_config( config( ssl_verifypeer = 0L ) )
res = GET(url = url.regular,user_agent(usrAgent))
View Latex Context Problem.md

Latex Context Problem

context: command not found

sudo pacman -Rc poppler
sudo pacman -Sy poppler
sudo pacman -Sy extlive-core
View Crawler_airlinetiki_cola.R
library(httr)
library(rvest)
library(XML)
library(testit)
library(magrittr)
library(dplyr)
# origin="TPE"
# destination="SEA"
You can’t perform that action at this time.