Skip to content

Instantly share code, notes, and snippets.


arun.jayapal deostroll

View GitHub Profile
deostroll / dateformatting
Last active Jul 21, 2021 — forked from DevelopKim/dateformatting
javascript date formatting
View dateformatting
var today = new Date();
function fmtDate(today) {
return `${today.getFullYear()}${('0' + (today.getMonth() + 1)).slice(-2)}${('0' + today.getDate()).slice(-2)}-${('0' + today.getHours()).slice(-2)}_${('0' + today.getMinutes()).slice(-2)}_${('0' + today.getSeconds()).slice(-2)}`;
//ex . Wed Aug 28 2013 17:50:28 GMT+0900 (KST) -> "20130828_17-50-28"
deostroll /
Last active Sep 20, 2020 — forked from YourFriendCaspian/x11vnc_server_on_startup.txt
Configure your system to have x11vnc running at startup.

Ubuntu 15.04 – Configure your system to have x11vnc running at startup.

Hello World,

If you are following us, you probably remember that we wrote already a post about this topic (see Ubuntu 14.10 – Configure your sytem to have x11vnc running at startup). Since Ubuntu 15.04 is using systemd, the instructions found in the previous post are not applicable anymore. Some of our readers had issues after upgrading to Ubuntu 15.04. The x11VNC is not running at startup anymore.

View serial_experiments2.ino
#include <SoftwareSerial.h>
SoftwareSerial skbd(D1, D2); //RX. TX
#include <dummy.h>
void setup() {
// put your setup code here, to run once:
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
:root {
--radius: 7px;
--border-string: 2px solid hotpink;
View swagger.json
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "mylbproj1"
"basePath": "/api",
"paths": {
"/Users/{id}/accessTokens/{fk}": {
"get": {
deostroll /
Created Dec 14, 2017
script to wait for a particular pid - bash
me="$(basename $0)($$):"
echo "$me"
if [ -z "$pid" ]
echo "$me a PID is required as an argument" >&2
exit 2

Differences in trace output

deostroll /
Last active Nov 12, 2017
simple alarm system

Here is the source code for my simple alarm system:

Scripts for the wemos wifi mini:

Scripts for the web server:

deostroll / .eslintrc
Created Jun 22, 2017 — forked from Javiani/.eslintrc
View .eslintrc
"rules": {
"indent": [2,"tab"],
"quotes": [2,"single"],
"linebreak-style": [2,"unix"],
"semi": [2,"never"],
"no-unused-vars": ["error", { "vars": "all", "args": "none" }]
"env": {
"es6": true,
deostroll / .jshintrc
Created Jun 15, 2017
sample jshintrc file
View .jshintrc
// JSHint Default Configuration File (as on JSHint website)
// See for more details
"maxerr" : 50, // {int} Maximum error before stopping
// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : false, // true: Identifiers must be in camelCase
"curly" : true, // true: Require {} for every new block or scope