Skip to content

Instantly share code, notes, and snippets.


Jonathan Cunanan jcunanan05

View GitHub Profile
jcunanan05 /
Last active Apr 5, 2021
Apple fresh install commands
# prevent photos app from launching, just change to NO if you change your mind
defaults -currentHost write disableHotPlug -bool YES
# show hidden files, if you want to hide it, just set to false.
defaults write AppleShowAllFiles true
# install xcode command line tools
# install homebrew
jcunanan05 / .block
Last active Apr 19, 2020
making an axis
View .block
license: mit
View solve node sass windows error

link to github comments

I also found helpful this comment. After installing Python 2.7 and Visual C++ Build Tools I deleted node_modules folder, opened CMD from Administrator and ran npm install --msvs_version=2015. Aaand it installed successfully!

This link helped me to install Python and VS C++ build tools.

docs on how to install it

jcunanan05 / .block
Last active Apr 12, 2020
fresh block bar graph
View .block
license: mit
jcunanan05 /
Last active Jan 19, 2020
My notes on how to setup a ssh connection to a VPS in windows


  • Git Bash
  • VPS to put the generated private key

Generate SSH key on your machine

  1. Open your git bash
  2. cd /c/Program Files/Git/etc/ssh
  3. run ssh-keygen, name your key (id_rsa is default) then enter enter..
View axios promise.js
const getUser = axios.get('url'); // promise lang talaga to pag console.log
const handleUserDetails = (userDetails) => {
// pagka react
this.setState({ user: userDetails });
jcunanan05 / ghostcms.gitignore
Created Aug 25, 2019
Gitignore for GhostCMS
View ghostcms.gitignore
# Node template
# Logs
# Runtime data
jcunanan05 / reactIntlSample.js
Created Aug 23, 2019
react-intl sample code using messages for locale
View reactIntlSample.js
import React, { useState } from "react";
import { IntlProvider, FormattedMessage } from "react-intl";
const messages = {
en: {
"app.hello": "Hello"
fr: {
"app.hello": "Bonjour"
jcunanan05 /
Created Aug 5, 2019
Rails commands that i forget / commonly use
# run rails on a docker container / virtual container
rails server -p $PORT -b
# bundle
bundle update
bundle install
# enable git push ssh on multiple repos
# delete cached
ssh-add -D
#1. go to your ~/.ssh
#2. open your favorite local editor