Skip to content

Instantly share code, notes, and snippets.

@oshihirii
oshihirii / example_webpack.config.js
Last active August 27, 2019 08:18
just the config i use, I’m sure it could be better but it’s worked for me for a while.
const path = require('path');
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
// see: https://stackoverflow.com/a/28989476
var webpack = require("webpack");
console.log("the __dirname is: " + __dirname);
module.exports = {
mode: "production",

Frequently Used Commands

show all pods
oc get pods

rsh into a pod, eg:
oc rsh mongodb-1-vs19d

start mongo as admin
mongo -u $MONGODB_USER -p $MONGODB_PASSWORD $MONGODB_DATABASE

@oshihirii
oshihirii / common_css_scenarios.css
Last active June 6, 2016 14:35
solutions to commonly encountered css scenarios
/* vertical align button in absolute div */
/* https://css-tricks.com/centering-css-complete-guide */
/* whitespace between inline-blocks */
@oshihirii
oshihirii / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console