Skip to content

Instantly share code, notes, and snippets.

View nonsensecreativity's full-sized avatar

Hermanto Lim nonsensecreativity

View GitHub Profile
@nonsensecreativity
nonsensecreativity / jetbrains-reset-eval.sh
Created May 19, 2020 04:48
Reset Jetbrains Evaluation
#!/bin/bash
clion() {
find ~/.config/JetBrains -mindepth 2 -maxdepth 2 -type d -wholename '*CLion*/eval' -exec rm -rf {} \;
find ~/ -mindepth 3 -maxdepth 3 -type d -wholename '*.CLion*/eval' -exec rm -rf {} \;
sed --quiet -i -E -e 's/.*<property.*evlsp.*//g' -e '/^$/d' ~/.config/JetBrains/CLion*/options/other.xml ~/.CLion*/config/options/other.xml 2>/dev/null
}
webstorm() {
find ~/.config/JetBrains -mindepth 2 -maxdepth 2 -type d -wholename '*WebStorm*/eval' -exec rm -rf {} \;

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from Feb

@nonsensecreativity
nonsensecreativity / vanilla-js-cheatsheet.md
Created February 5, 2018 18:32 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
Data Science
http://radar.oreilly.com/2010/06/what-is-data-science.html,What is data science? (oreilly.com)
http://hortonworks.com/blog/how-to-get-started-in-data-science/,How To Get Started In Data Science (hortonworks.com)
http://www.insidephilanthropy.com/home/2014/4/14/whos-getting-the-big-bucks-for-data-science-and-why.html,Who's Getting The Big Bucks? (insidephilanthropy.com)
http://www.citeworld.com/article/2139987/big-data-analytics/heres-how-one-company-built-its-data-science-operation.html,How To Build A data Science Team (citeworld.com)
http://www.computerworld.com/s/article/9248050/Cornell_Tech_funded_startup_launching_bootcamp_for_data_scientists,Data Science Bootcamp (computerworld.com)
http://www.datasciencetoolkit.org/,Data Science Toolkit (datasciencetoolkit.org)
http://blog.stephenwolfram.com/2013/04/data-science-of-the-facebook-world/,Data Science of the Facebook World (blog.stephenwolfram.com)
http://strata.oreilly.com/2011/05/data-science-terminology.html,Why The Term “Data Scien
use ::Trie;
use _test::Bencher;
use std::collections::*;
#[bench]
fn bench_qptrie_insert(b: &mut Bencher) {
let mut trie = Trie::default();
let a = 1_234;
let mut x = 0;
b.iter(move || for _ in 0..499_980 {
@nonsensecreativity
nonsensecreativity / permissions.txt
Created August 7, 2017 21:05 — forked from Arinerron/permissions.txt
A list of all Android permissions...
android.permission.ACCESS_ALL_DOWNLOADS
android.permission.ACCESS_BLUETOOTH_SHARE
android.permission.ACCESS_CACHE_FILESYSTEM
android.permission.ACCESS_CHECKIN_PROPERTIES
android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY
android.permission.ACCESS_DOWNLOAD_MANAGER
android.permission.ACCESS_DOWNLOAD_MANAGER_ADVANCED
android.permission.ACCESS_DRM_CERTIFICATES
android.permission.ACCESS_EPHEMERAL_APPS
android.permission.ACCESS_FM_RADIO
@nonsensecreativity
nonsensecreativity / LICENSE.txt
Created August 6, 2017 17:52 — forked from LeverOne/LICENSE.txt
generate random v4 UUIDs (107 bytes)
DO WTF YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Alexey Silin <pinkoblomingo@gmail.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WTF YOU WANT TO PUBLIC LICENSE
@nonsensecreativity
nonsensecreativity / iteration-and-recursive-iteration.php
Created July 28, 2017 11:09 — forked from hakre/iteration-and-recursive-iteration.php
Iteration and Recursive Iteration Examples Code
<?php
/*
* Iteration and Recursive Iteration Examples Code
*
* @link http://stackoverflow.com/questions/12077177/how-does-recursiveiteratoriterator-works-in-php
* @author hakre <http://hakre.wordpress.com>
*/
### To have these examples to work, a directory with subdirectories is needed,
### I named mine "tree":
@nonsensecreativity
nonsensecreativity / TextRange.php
Created July 28, 2017 10:12 — forked from hakre/TextRange.php
TextRange and TextRangeTrimmer HTML/DOMDocument text processing classes
<?php
/**
* TextRange.php - DOMDocument based Textrange and text manipulation
*
* @author hakre <http://hakre.wordpress.com/credits>
* @version 1.1.1
*/
/**
* TextRange - Collection of DOMText nodes