This file contains hidden or 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 | |
source ~/.bashrc | |
port='9001' | |
check=$(netstat -na | grep "LISTEN" | grep "$port" | awk -F[:" "]+ '{print $5}') | |
if [[ "$check" != "$port" ]]; then | |
{ | |
echo "PHP-FPM is down, restarting... $(date +"%F %T")" | |
service phpbrew-fpm restart |
This file contains hidden or 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
#include <cmath> | |
#include <iostream> | |
using namespace std; | |
int main() { | |
int amount; | |
cout << "請輸入商品數"; | |
cin >> amount; | |
int products[amount]; |
This file contains hidden or 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
/.vscode/* | |
!/.vscode/extensions.json |
This file contains hidden or 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
find . -maxdepth 1 -mindepth 1 -type d -exec sh -c '(echo [{}] && cd {} && git log -1 --oneline --format="%C(auto) %h %s (%cr)")' \; |
This file contains hidden or 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
{ | |
"auto-close-tag.fullMode": true, | |
"blade.format.enable": true, | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, | |
"editor.fontSize": 18, | |
"editor.formatOnPaste": true, | |
"editor.lineHeight": 32, | |
"editor.renderIndentGuides": false, | |
"editor.renderWhitespace": "boundary", |
This file contains hidden or 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
#include <iostream> | |
using namespace std; | |
int main(void) { | |
// 取得使用者的分數 | |
int score1, score2, score3; | |
cout << "Score 1:"; | |
cin >> score1; | |
cout << "Score 2:"; |
This file contains hidden or 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
#include <iostream> | |
using namespace std; | |
int main(void) { | |
string s; | |
cout << "Input: "; | |
cin >> s; | |
cout << "Output: "; | |
for (int i = 0; i < s.length(); i++) |
This file contains hidden or 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
<?php | |
// 省略... | |
Route::get('mails/user', function () { | |
$markdown = new Illuminate\Mail\Markdown(view(), config('mail.markdown')); | |
$user = \App\User::first(); | |
return $markdown->render('mails.user', [ | |
'user' => $user, |
This file contains hidden or 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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
This file contains hidden or 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
#include <iostream> | |
using namespace std; | |
int main() { | |
long long number; | |
cin >> number; | |
int oddSum = 0; | |
int evenSum = 0; |