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
npm install pm2 -g -s | |
download https://github.com/jessety/pm2-installer | |
npm run configure | |
npm run setup | |
That's it. |
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
void extract_callsign() | |
{ | |
char* callsign_raw = "E2X-1"; | |
char callsign_format[7]; | |
char* pch; | |
Serial.println(callsign_raw); | |
// clear array | |
memset(callsign_format, 0, sizeof(callsign_format)); |
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
journalctl -u satnogs-client.service //ดู Service การทำงานของ Satnogs | |
sudo satnogs-setup // เข้าไป config satnogs | |
// วิธีการเปิด BIAS-T | |
https://www.rtl-sdr.com/forum/viewtopic.php?t=4877 | |
SATNOGS-DEV-ARGS | |
rtl,buffers=32,buflen=16384,bias=1 | |
POST-OBSERVATION-SCRIPT |
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
// Migrate database | |
php artisan migrate | |
// roll back migration | |
php artisan migrate:rollback | |
// check migrate status | |
php artisan migrate:status | |
// running server |
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
using System; | |
using System.Net; | |
using System.Net.Mail; | |
using System.Collections; | |
public class SendMail | |
{ | |
public void send(string fromEN, ArrayList toEN, ArrayList ccEN, string subject, string body) | |
{ |
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
/// <summary> | |
/// Get Gridview Column by Column name | |
/// </summary> | |
/// <param name="row">Gridview Row to check example passed e.Row to function</param> | |
/// <param name="SearchColumnName">Column name need to search</param> | |
/// <returns></returns> | |
int GetColumnIndexByName(GridViewRow row, string SearchColumnName) | |
{ | |
int columnIndex = 0; | |
foreach (DataControlFieldCell cell in row.Cells) |
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
git status - ดูว่ามีไฟล์อะไรเปลี่ยนแปลง | |
git diff <file name with path> - เปรียบเทียบว่ามีโคดบรรทัดไหนแตกต่างกันบ้าง | |
git add * - เพิ่มไล์ใหม่เข้า git ที่ local | |
git commit -m "ข้อความอธิบายการเปลี่ยนแปลง" - update ไฟล์เปลี่ยนแปลงเข้า GIT ที่ local | |
git push origin master - ส่งการเปลี่ยนแปลงเหล่านี้ ไปยัง remote repository | |
git clone https://url/project.git - ดึงโปรเจ็คใหม่มาไว้ที่เครื่อง | |
git log - ดู history การ commit |