Skip to content

Instantly share code, notes, and snippets.

View codematix's full-sized avatar

Ranganath Kini codematix

View GitHub Profile
@codematix
codematix / list.txt
Created September 28, 2021 15:43 — forked from shortjared/list.txt
List of AWS Service Principals
a4b.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
apigateway.amazonaws.com
appflow.amazonaws.com
application-autoscaling.amazonaws.com
appstream.application-autoscaling.amazonaws.com
@codematix
codematix / keys.go
Created August 27, 2020 14:19 — forked from sdorra/keys.go
Golang RSA Key Generation
/*
* Genarate rsa keys.
*/
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
@codematix
codematix / app.js
Created July 4, 2019 02:25 — forked from shibukawa/app.js
mithril lazy loading
var m = require("mithril");
m.mount(document.querySelector("#menu"), {
view: function() {
return m("ul", [
m("li", m('a[href="/a"]', {config: m.route}, "module A")),
m("li", m('a[href="/b"]', {config: m.route}, "module B")),
m("li", m('a[href="/c"]', {config: m.route}, "module C"))
]);
}
@codematix
codematix / private_fork.md
Created June 28, 2019 06:51 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@codematix
codematix / package.json
Created May 8, 2018 12:57
Webpack without babel-loader
{
"name": "web-client",
"version": "1.0.0",
"description": "Web Client",
"main": "index.js",
"author": "codematix@codematix.me",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"scripts": {
"build": "webpack --mode=development --env=development",
@codematix
codematix / java8-update.sh
Created January 21, 2018 16:43
Java 8 Ubuntu Fix
#!/bin/bash
set -e
add-apt-repository -y ppa:webupd8team/java
apt-get update
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
apt-get install -y oracle-java8-installer || true
#todo remove this kludge and the above || true when the ppa is fixed
@codematix
codematix / .gitignore
Created February 17, 2017 05:37 — forked from chichunchen/.gitignore
Git ignore binary files
# Ignore all
*
# Unignore all with extensions
!*.*
# Unignore all dirs
!*/
### Above combination will ignore all files without extension ###
@codematix
codematix / bower.json
Created December 29, 2015 02:48
Learn Angular
{
"name": "learn-ng",
"description": "",
"main": "index.js",
"authors": [
"Ranganath Kini <codematix@codematix.me>"
],
"license": "ISC",
"moduleType": [
"globals"
@codematix
codematix / development-env.sh
Last active March 7, 2016 16:28
Install Golang
sudo apt-get update
sudo apt-get install build-essential curl vim git mercurial bison
# install gvm
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
# install Go
gvm install go1.4
gvm use go1.4
gvm install go1.5
@codematix
codematix / webpack.config.js
Created September 17, 2015 17:49
Two Explicit Vendor Chunks
var path = require("path");
var CommonsChunkPlugin = require("../../lib/optimize/CommonsChunkPlugin");
module.exports = {
entry: {
vendor1: ["./vendor1"],
vendor2: ["./vendor2"],
pageA: "./pageA",
pageB: "./pageB",
pageC: "./pageC"
},