Skip to content

Instantly share code, notes, and snippets.

View sethsandaru's full-sized avatar
Forget the past, it only clouds the future

Seth Phat sethsandaru

Forget the past, it only clouds the future
View GitHub Profile
sethsandaru /
Created December 10, 2023 06:33
RoadToJobs Cloud Platform - Closing Notice

RoadToJobs Cloud - Closing Notice

Hey all,

It's me Seth, the owner of RoadToJobs platform.

Thank you for supporting the RoadToJobs OSS version & RoadToJobs Cloud Platform for the past few months.

I want to inform to you guys that the Cloud Platform will be shutdown on 31st December, 2023.

sethsandaru / node.js
Created September 12, 2023 10:44
ExpressJS CSV download
View node.js
const express = require('express');
const app = express();
// Sample data in CSV format
const csvData = [
['Name', 'Email'],
['John Doe', ''],
['Jane Smith', ''],
sethsandaru / supervisor.conf
Last active July 29, 2023 12:59
Run supervisor for ubuntu's user without sudo
View supervisor.conf
While many of our readers will get away with running the command again with sudo, and succeeding, there is a better way! The permission error stems from access permissions to supervisord’s socket file, which by default is owned by root, and not writeable by other users. We can make supervisord chown and chmod the file to a particular user or group on startup, granting the user or group permission to stop and start the services we’ve configured without requiring sudo.
Let’s create a group, add ourselves to it by doing the following
groupadd supervisor
usermod -a -G supervisor
After logging-out/logging-in (so that the new group membership takes effect), edit the supervisord configuration file (/etc/supervisor/supervisor.conf) to make the unix_http_server section look as follows
sethsandaru /
Created February 25, 2020 01:54
Android Java Force Intent to open URL in Google Chrome
String url = "";
try {
Uri uri = Uri.parse("googlechrome://navigate?url=" + url);
Intent i = new Intent(Intent.ACTION_VIEW, uri);
} catch (ActivityNotFoundException e) {
// Chrome is probably not installed
sethsandaru /
Created September 10, 2019 10:37

Keybase proof

I hereby claim:

  • I am sethsandaru on github.
  • I am sethphat ( on keybase.
  • I have a public key ASDiebLsbJ9eFy0STO7FwAwu0sEqe1BKWgPFlxjqRzAHMgo

To claim this, I am signing this object:

sethsandaru / placeholder-loading-demo.html
Created July 6, 2019 07:41
Placeholder Loading Block
View placeholder-loading-demo.html
<title>Placeholder Loading - SethPhat</title>
<link rel="stylesheet" href="" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="">
<div class="container mt-4">
<h2>1 row 1 item basic info</h2>
sethsandaru / GithubAuthController.php
Last active May 4, 2019 09:26
Laravel Socialite Github Login Demo
View GithubAuthController.php
* Created by PhpStorm.
* User: Seth Phat
* Date: 5/4/2019
* Time: 3:41 PM
namespace App\Http\Controllers\Social;
sethsandaru / map.html
Created March 27, 2019 13:31
Example for LeafletJS: Init map, create marker, popup, tooltip & styling popup content
View map.html
Code By Seth Phat
<meta charset="utf-8" />
<title>LeafletJS - OpenStreetMap API by Seth Phat</title>
<link rel="stylesheet" href="" integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA==" crossorigin=""/>
<script src="" integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg==" crossorigin=""></script>