Skip to content

Instantly share code, notes, and snippets.

View cmd-save's full-sized avatar

Beast Node cmd-save

  • Nature Inc.
  • Earth
View GitHub Profile
@cmd-save
cmd-save / sublimelinter_style.json
Created June 1, 2018 06:57
sublimelinter_style
// SublimeLinter Settings - User
{
"styles": [
{
"mark_style": "outline",
"priority": 1,
"icon": "dot",
"scope": "region.yellowish markup.changed.sublime_linter markup.warning.sublime_linter",
"types": ["warning"]
},
@cmd-save
cmd-save / RemoveBoomDevice.md
Last active August 20, 2021 21:06
Remove Boom Device from mac os system preferences.

Open Terminal app and run the following command(s)...

To remove BoomDevice

sudo kextunload -b com.globaldelight.driver.BoomDevice

To remove Boom2Device

sudo kextunload -b com.globaldelight.driver.Boom2Device

@cmd-save
cmd-save / tmuxCheatSheet.md
Last active July 24, 2018 03:17
tmux CheatSheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@cmd-save
cmd-save / eslintrc_on_package_json.json
Created November 30, 2018 03:07
Eslint congfigurations on package.json
{
"name": "app_name",
"version": "0.0.1",
"description": "Some descriptions",
"main": "dist",
"scripts": {
"dev": "nodemon -w src --exec \"babel-node src --presets es2015,stage-0\"",
"build": "babel src -s -D -d dist --presets es2015,stage-0",
"start": "node dist",
"prestart": "npm run -s build",
@cmd-save
cmd-save / winMySQLDump
Created January 5, 2019 17:02
Windows MySQL Dump
mysqldump.exe --user=root --password=Salmiya81 --max_allowed_packet=5G --host=localhost --port=3306 --result-file="F:\DBBackup\backup.%date:~10,4%%date:~7,2%%date:~4,2%.sql" --default-character-set=utf8 --single-transaction=TRUE --databases "fogbugz2018"
@cmd-save
cmd-save / scp_to_ec2
Last active May 9, 2024 16:27
SCP to amazon EC2 server
To Secure copy from your local computer to Amazon EC2 instance, use the following script:
scp -i <.pem file> /path/to/file ubuntu@ec2-52-14-247-23.us-east-2.compute.amazonaws.com:/your/destination/directory
@cmd-save
cmd-save / lighthouse.md
Last active January 31, 2019 16:39
Lighthouse server deployment

##Lighthouse server deployment

When installing/running on Amazon EC2, do not forget to install chrome-launcer

sudo yarn add chrome-launcher

If your getting this error

Error: connect ECONNREFUSED 127.0.0.1:38075

@cmd-save
cmd-save / url.js
Created August 6, 2019 15:32
Regex for url that accepts without protocol or a sub domain
const urlReqex = /^((https?|ftp|smtp):\/\/)?(www.)?[a-z0-9]+\.([a-z].+)?[a-z]+(\/[a-zA-Z0-9#]+\/?)*$/;
@cmd-save
cmd-save / SampleMenu.json
Created January 28, 2020 19:16
Sample Menu
[
{
"menus": [
{
"active": true,
"icon": "dashboard",
"key": "/portal/dashboard",
"primaryText": "Dashboard"
},
{
@cmd-save
cmd-save / tmux-cheatsheet.markdown
Created February 5, 2020 18:54 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname