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
server { | |
listen 80; | |
listen 443 ssl; | |
server_name yourhost.com; | |
ssl_certificate /etc/nginx/ssl/cert_chain.pem; | |
ssl_certificate_key /etc/nginx/ssl/privkey.pem; | |
root /var/www/html; | |
charset UTF-8; | |
access_log /var/log/nginx/log/host.access.log main; | |
location / { |
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
# cat json | |
{"a":1,"b":2,"c":3,"d":4,"e":5} | |
# cat json | python -m json.tool | |
{ | |
"a": 1, | |
"b": 2, | |
"c": 3, | |
"d": 4, | |
"e": 5 | |
} |
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
# cat xml | |
<?xml version="1.0"?><package><name>ssh2</name><channel>pecl.php.net</channel><summary>Bindings for the libssh2 library</summary></package> | |
# cat xml | xmllint --format - | |
<?xml version="1.0"?> | |
<package> | |
<name>ssh2</name> | |
<channel>pecl.php.net</channel> | |
<summary>Bindings for the libssh2 library</summary> | |
</package> | |
# cat xml | xmlstarlet fo |
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
$channel_id="xxxxxxxxxx"; | |
$channel_secret="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; | |
$channel_mid="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; | |
$endpoint_url="https://trialbot-api.line.me/v1/events"; | |
$arr=json_decode(file_get_contents("php://input"),1); | |
$from=$arr['result'][0]['content']['from']; | |
$text=$arr['result'][0]['content']['text']; | |
$post_data="{\"to\":[\"$from\"],\"toChannel\":1383378250,\"eventType\":\"138311608800106203\",\"content\":{\"contentType\":1,\"toType\":1,\"text\":\"$text\"}}"; | |
$ch=curl_init(); | |
$headers=array("Content-Type: application/json; charser=UTF-8","X-Line-ChannelID: $channel_id","X-Line-ChannelSecret: $channel_secret","X-Line-Trusted-User-With-ACL: $channel_mid"); |
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
{ | |
"result": [ | |
{ | |
"toChannel": 1111111111, | |
"to": [ | |
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
], | |
"id": "WB1519-xxxxxxxxxx", | |
"fromChannel": 1111111111, | |
"from": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", |
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
[nginx] | |
name=nginx repo | |
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ | |
gpgcheck=0 | |
enabled=1 |
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
https://domain1.com https://www.domain1.com { | |
root /var/www/html | |
log /var/log/caddy/access.log | |
errors /var/log/caddy/errors.log | |
tls your@email.com # auto https with let's encrypt | |
gzip | |
fastcgi / localhost:9000 php | |
} | |
https://domain2.com https://www.domain2.com { |
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
# CentOS-Base.repo | |
# | |
# The mirror system uses the connecting IP address of the client and the | |
# update status of each mirror to pick mirrors that are updated to and | |
# geographically close to the client. You should use this for CentOS updates | |
# unless you are manually picking other mirrors. | |
# | |
# If the mirrorlist= does not work for you, as a fall back you can try the | |
# remarked out baseurl= line instead. | |
# |
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
{ | |
"settings": { | |
"baseUrl": "https://desktop.line-scdn.net/win/v1/real", | |
"lineUrl": "https://desktop.line-scdn.net/win/v1/real/light", | |
"fileName": "LINE.zip", | |
"regression": false, | |
"legacyUpgraderUrl": "https://desktop.line-scdn.net/win/v1/real/legacy/LineUpgrader.exe" | |
}, | |
"shared": { | |
"baseUrl": "https://desktop.line-scdn.net/win/v1/real/shared", |
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
<VirtualHost *:80> | |
DocumentRoot "/var/www/php56" | |
ServerName php56.local | |
ErrorLog "logs/php56_error_log" | |
CustomLog "logs/php56_access_log" combined | |
<FilesMatch \.php$> | |
setHandler "proxy:unix:/var/opt/remi/php56/run/php-fpm/www.sock|fcgi://localhost" | |
</FilesMatch> | |
</VirtualHost> |
OlderNewer