Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am freizl on github.
  • I am freizl (https://keybase.io/freizl) on keybase.
  • I have a public key ASBmEVtdoHmE9GtsAImNqZN0lXvAgS5vmmkwwvMsKc_Xdgo

To claim this, I am signing this object:

@freizl
freizl / readme.md
Created November 30, 2017 18:32
MVN - peer not authenticated
  1. download cert file
  2. import cert
$ cd $JAVA_HOME/jre/lib/security
$ keytool -import -keystore cacerts -file /path/to/company-internal.crt
## it will ask you password (bydefault it is “changeit”)
## It will ask to type yes or no, type “yes”

Keybase proof

I hereby claim:

  • I am freizl on github.
  • I am freizl (https://keybase.io/freizl) on keybase.
  • I have a public key whose fingerprint is 4373 F1C9 4684 9B8E FD68 DE9C 0129 8BAE 47BE 979C

To claim this, I am signing this object:

@freizl
freizl / readme.md
Created December 9, 2015 06:56
Flexible schema

API URI

  • /api/v1/user/{uid}

Response

{
    // base schema
 "firstName": "Kevin",

Set up

  • install karma
  • karma init

karma.conf.js

  • basePath: dir where karma loading files to its cache
  • files: what files shall be loaded into cache from basePath
    • /path/to/an/file
  • /path/to/some/**/*.file
@freizl
freizl / yijing.html
Last active August 29, 2015 13:56
Cant use directive twice
<!doctype html>
<html ng-app="yi">
<head>
<!-- script src="../angular-1.2.9.js"></script -->
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js"></script>
<style type="text/css">
.yang-yao {
background-color: red;
width: 100px;
height: 45px;
@freizl
freizl / directive-inside-ng-repeat
Created February 11, 2014 11:02
Directive inside ng-repeat
<!doctype html>
<html>
<head>
<script src="angular-1.2.9.js"></script>
<style type="text/css">
ul{ margin:0; padding:0}
ul li{list-style:none}
input.toggle {
max-height: 0;
@freizl
freizl / InstallAngular.md
Last active December 31, 2015 14:19
AngularJS

use yeoman to generate angular seed project

Installation

  1. install ruby and compass in order to use compass gem install compass
  2. npm install -g yo bower karma generator-angular generator-karma
  3. mkdir angular-seed-yo
  4. cd angular-seed-yo
  5. yo angular
<!-- This is a Node+WebSocket powered demo to sync videos
across different browsers. This file is the client,
the other one is the Node server. Powered by Node and
http://github.com/miksago/node-websocket-server -->
<style>
.inactive { display: none; }
.active { display: block; }
</style>
<script>
@freizl
freizl / PPTPD-VPN-in-CentOS6.md
Last active April 10, 2019 10:48
PPTPD VPN in CentOS 6

Install packages

yum install ppp iptables
rpm -Uvh http://poptop.sourceforge.net/yum/stable/rhel6/pptp-release-current.noarch.rpm
yum install pptpd

Route config