Skip to content

Instantly share code, notes, and snippets.

View deostroll's full-sized avatar
😄
indeed...!

arun.jayapal deostroll

😄
indeed...!
View GitHub Profile
@deostroll
deostroll / dateformatting
Last active July 21, 2021 11:48 — forked from DevelopKim/dateformatting
javascript date formatting
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)}`;
}
fmtDate(today);
//ex . Wed Aug 28 2013 17:50:28 GMT+0900 (KST) -> "20130828_17-50-28"
@deostroll
deostroll / x11vnc_server_on_startup.md
Last active September 20, 2020 11:00 — 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.

#include <SoftwareSerial.h>
SoftwareSerial skbd(D1, D2); //RX. TX
#include <dummy.h>
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
skbd.begin(9600);
<!DOCTYPE html>
<html>
<head>
<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;
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "mylbproj1"
},
"basePath": "/api",
"paths": {
"/Users/{id}/accessTokens/{fk}": {
"get": {
@deostroll
deostroll / wait-pid.sh
Created December 14, 2017 04:22
script to wait for a particular pid - bash
#!/bin/bash
pid=$1
me="$(basename $0)($$):"
echo "$me"
if [ -z "$pid" ]
then
echo "$me a PID is required as an argument" >&2
exit 2
fi

Differences in trace output

@deostroll
deostroll / README.md
Last active November 12, 2017 19:51
simple alarm system

Here is the source code for my simple alarm system:

Scripts for the wemos wifi mini:

boot.py
main.py
httpclient.py

Scripts for the web server:

@deostroll
deostroll / .eslintrc
Created June 22, 2017 17:43 — forked from Javiani/.eslintrc
.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
deostroll / .jshintrc
Created June 15, 2017 05:57
sample jshintrc file
{
// JSHint Default Configuration File (as on JSHint website)
// See http://jshint.com/docs/ 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