Skip to content

Instantly share code, notes, and snippets.

Jason Panugaling dashawk

  • Cebu City, Philippines
Block or report user

Report or block dashawk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View shell-multi-cmd.js
var chalk = require('chalk')
const { exec } = require('child_process');
var version = require('../version')
var type = process.argv[2],
moduler = process.argv[3],
message = process.argv.slice(4, process.argv.length).join(' '),
commands = [
"git add .",
"git commit -m \"" + type + "@" + version.pro_version + "(" + moduler + "): " + message + "\"",
View nodejs-file-hash.js
// reference https://gist.github.com/GuillermoPena/9233069#gistcomment-2636187
// sha-cli.js
const filename = process.argv[2];
const crypto = require('crypto');
const fs = require('fs');
const hash = crypto.createHash('sha256');
const input = fs.createReadStream(filename);
input.on('readable', () => {
const data = input.read();
@dashawk
dashawk / gist:1679fc60cdbbc4945831fcc0d00d0d4f
Created Feb 28, 2019 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:1679fc60cdbbc4945831fcc0d00d0d4f

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
View scale-factor-points.js
var points = [{x:1,y:1}, {x:2,y:5}, {x:3,y:1}];
var scaleFactor = canvas2width/canvas1width;
var scaledPoints = points.map(function(p) {
return {
x:p.x*scaleFactor,
y:p.y*scaleFactor
};
});
@dashawk
dashawk / Configuration.h
Created Jul 18, 2018 — forked from istepanov/Configuration.h
Marlin Anet A8 config
View Configuration.h
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
View plotter.js
var canvas = document.getElementById('canvas');
var ctx = canvas.getContext("2d");
var myPoints = [
[37.772,-122.214],
[21.291, -157.821],
[-18.142, 178.431],
[-27.467, 153.027]
]
@dashawk
dashawk / node-part-2.md
Created Feb 9, 2018
Run NodeJs with Systemd Part 2
View node-part-2.md
@dashawk
dashawk / node-part-1.md
Last active Feb 9, 2018
Run NodeJS with Systemd Part 1
View node-part-1.md
@dashawk
dashawk / Laravel PHP7 LEMP AWS.md
Created Jan 26, 2018 — forked from santoshachari/Laravel PHP7 LEMP AWS.md
Laravel 5.x on Ubuntu 16.x, PHP 7.x, Nginx 1.9.x
View Laravel PHP7 LEMP AWS.md

#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
View gist:2b508f35f9820df0f6e312bcff8cb521

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
You can’t perform that action at this time.