Skip to content

Instantly share code, notes, and snippets.

import axios from 'axios';
// Define the constants
export const BASE_URL = "http://develop.microideation.local:8080/gateway/";
export const URL_USER_AUTHENTICATE= "api/web/authenticate";
export const URL_REFRESH_TOKEN="api/web/refresh_token";
// Define the miAPI as axios
const miAPI = axios.create({
baseURL: BASE_URL,
@microideation
microideation / linux-basic-commands.md
Last active November 3, 2018 12:36
Linux basic command cheatsheet for developers

Basic Linux Commands

Remote access to server using SSH


  1. Using username and password
    ssh user@hostname
    ssh user@ip
    
  2. Using a key file
@microideation
microideation / slack-dark-mode-snippet.js
Created October 3, 2018 16:12
Dark mode snipped for slack
/**
* Enable this for dark mode
*/
document.addEventListener('DOMContentLoaded', function() {
$.ajax({
url: 'https://gist.githubusercontent.com/sandheepgr/c3c3fa065ffb33d1165438ebb32edec3/raw/7ff92b87f563a5add1361778120002f866d23476/slack-night-mode-custom.css',
success: function(css) {
$("<style></style>").appendTo('head').html(css);
}
});
@microideation
microideation / slack-night-mode-custom.css
Created October 3, 2018 15:55
CSS styling for Slack dark mode
body { background: #404040; color: #e6e6e6; }
a { color: #949494; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #404040; }