Skip to content

Instantly share code, notes, and snippets.

adibas03

Block or report user

Report or block adibas03

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@adibas03
adibas03 / 01_pkcs12-cacerts-workaround.sh
Created Jun 20, 2018 — forked from mikaelhg/01_pkcs12-cacerts-workaround.sh
Workaround for java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
View 01_pkcs12-cacerts-workaround.sh
# Ubuntu 18.04 and various Docker images such as openjdk:9-jdk throw exceptions when
# Java applications use SSL and HTTPS, because Java 9 changed a file format, if you
# create that file from scratch, like Debian / Ubuntu do.
#
# Before applying, run your application with the Java command line parameter
# java -Djavax.net.ssl.trustStorePassword=changeit ...
# to verify that this workaround is relevant to your particular issue.
#
# The parameter by itself can be used as a workaround, as well.
@adibas03
adibas03 / gh-pages-deploy.md
Last active Jan 3, 2018 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).
View gh-pages-deploy.md

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@adibas03
adibas03 / whisper.js
Last active Feb 28, 2017 — forked from achiko/whisper.js
whisper sample
View whisper.js
console.log('shh clien ....');
var Web3 = require('Web3');
if(typeof web3 !== 'undefined')
web3 = new Web3(web3.currentProvider);
else
//web3 = new Web3(new Web3.providers.HttpProvider("http://67.205.160.17:3555"));
web3 = new Web3(new Web3.providers.HttpProvider("http://pokereum.cloudapp.net:8545"));
View ubuntu14.04-command-line-install-android-sdk
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
@adibas03
adibas03 / SuperdaoActionDb
Created Apr 15, 2016 — forked from anonymous/SuperdaoActionDb
Created using soleditor: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://chriseth.github.io/browser-solidity/?gist=
View SuperdaoActionDb
import "SuperdaoActions";
contract SuperdaoActionDb is SuperdaoActionManagerEnabled {
// This is where we keep all the actions.
mapping (bytes32 => address) public Superdaoactions;
//ensure call is from action manager
modifier verifyAm(){
if(!isActionManager()){
throw;
You can’t perform that action at this time.