Skip to content

Instantly share code, notes, and snippets.

View ikane's full-sized avatar

Ibrahima Kane ikane

  • Paris
View GitHub Profile
import java.util.Objects;
public class User {
private String name;
private int age;
private String passport;
//getters and setters, constructor
@Override
(function () {
'use strict';
angular
.module('app')
.factory('UserService', UserService);
UserService.$inject = ['$http'];
function UserService($http) {
var service = {};
readlink -f $(which java)
keytool -genkeypair -alias config-server-key -keyalg RSA -keysize 4096 -sigalg SHA512withRSA -dname "CN=Config Server,OU=u,O=org, L=Paris,S=IDF,C=FR" -keypass changeit -keystore config-server.jks -storepass changeit -validity 365
#
# The JRE certificate keystore default password is : changeit
#
keytool -list -keystore %JAVA_HOME%\jre\lib\security\cacerts
keytool -list -keystore $JAVA_HOME/jre/lib/security/cacerts
### export the certificate if not already done
keytool -export -keystore vzywvmmsapp1.jks -alias vzywvmmsapp1 -file vzywvmmsapp1.crt
$ cat /etc/*release
@ikane
ikane / rabbitmq.txt
Created October 30, 2017 08:57 — forked from sdieunidou/rabbitmq.txt
create admin user on rabbitmq
rabbitmqctl add_user test test
rabbitmqctl set_user_tags test administrator
rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
BEGIN
--Bye Sequences!
FOR i IN (SELECT us.sequence_name FROM USER_SEQUENCES us)
LOOP
EXECUTE IMMEDIATE 'drop sequence '|| i.sequence_name ||'';
END LOOP;
--Bye Tables!
FOR i IN (SELECT ut.table_name FROM USER_TABLES ut)
(function () {
"use strict";
angular.module('common.services',
['ngResource'])
.constant('appSettings',
{
serverPath: "http://localhost:51003/About"
});
}());
@ikane
ikane / wildfly-install.sh
Created September 27, 2017 12:51 — forked from sukharevd/wildfly-install.sh
Script to install JBoss Wildfly 10.x as service in Linux
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash wildfly-install.sh
#tested-version1 :10.0.0.CR3
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22
#tested-version2 :10.0.0.Final
@ikane
ikane / Password.java
Created September 15, 2017 12:17 — forked from craSH/Password.java
A simple example Java class to safely generate and verify bcrypt password hashes for use in authentication systems.
/**
* Author: Ian Gallagher <igallagher@securityinnovation.com>
*
* This code utilizes jBCrypt, which you need installed to use.
* jBCrypt: http://www.mindrot.org/projects/jBCrypt/
*/
public class Password {
// Define the BCrypt workload to use when generating password hashes. 10-31 is a valid value.
private static int workload = 12;