Skip to content

Instantly share code, notes, and snippets.

View chokelive's full-sized avatar

Chokeumnuay Khowsakool chokelive

View GitHub Profile
@chokelive
chokelive / gist:78a4be0890891a4e99cf783061af1019
Created March 3, 2020 04:19
install pm2 as window service
npm install pm2 -g -s
download https://github.com/jessety/pm2-installer
npm run configure
npm run setup
That's it.
@chokelive
chokelive / callsign_extract.c
Last active February 16, 2020 08:10
extract call-sign and suffix value
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));
@chokelive
chokelive / Satnogs.txt
Last active January 12, 2020 14:45
Satnogs Command
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
@chokelive
chokelive / LaravelCommand.txt
Last active January 15, 2019 09:47
Laravel cmd frequency used
// Migrate database
php artisan migrate
// roll back migration
php artisan migrate:rollback
// check migrate status
php artisan migrate:status
// running server
@chokelive
chokelive / sendMail.cs
Created July 13, 2017 04:32
Send Email Function
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)
{
@chokelive
chokelive / Utilities.cs
Last active September 1, 2017 07:15
C# Utilities Function
/// <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)
@chokelive
chokelive / githubCommand.txt
Last active December 7, 2017 02:59
คำสั่ง GIT ที่ใช้บ่อยๆ
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