Skip to content

Instantly share code, notes, and snippets.

@aloha1003
aloha1003 / Uniqid
Created November 3, 2018 23:52 — forked from McKay1717/Uniqid
PHP uniqid in JAVA
public class Uniqid {
/***
* Copy of uniqid in php http://php.net/manual/fr/function.uniqid.php
* @param prefix
* @param more_entropy
* @return
*/
public String uniqid(String prefix,boolean more_entropy)
{
@aloha1003
aloha1003 / simple_args_parsing.sh
Created January 4, 2019 03:15 — forked from jehiah/simple_args_parsing.sh
a simple way to parse shell script arguments
#!/bin/sh
#
# a simple way to parse shell script arguments
#
# please edit and use to your hearts content
#
ENVIRONMENT="dev"
@aloha1003
aloha1003 / GoConfigPrivateRepository.md
Created September 11, 2020 09:37 — forked from rodkranz/GoConfigPrivateRepository.md
Go Get from private repository

I had a problem with go get using private repository on gitlab from our company. I lost a few minutes trying to find a solution.... and I did find one:

  1. You need to get a private token at:

    https://gitlab.mycompany.com/profile/account

  2. Configure you git to add extra header with your private token:

$ git config --global http.extraheader "PRIVATE-TOKEN: YOUR_PRIVATE_TOKEN"