Skip to content

Instantly share code, notes, and snippets.

@0xferit
0xferit / commands_for_ror_install
Last active April 14, 2017 10:00
How To Install RoR With All Dependencies
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev libpq-dev nodejs
sudo apt-get install ruby-full
gem install rails
#!/bin/bash
for rev in $(git rev-list --reverse origin/master..HEAD);
do
git push -f origin ${rev}:master
done

Keybase proof

I hereby claim:

  • I am ferittuncer on github.
  • I am ferit (https://keybase.io/ferit) on keybase.
  • I have a public key ASC3gRctSVMYQgPPXZpu4i8oKeZndYvKGW-5DAVxtDNcMwo

To claim this, I am signing this object:

@0xferit
0xferit / ballot.sol
Created May 7, 2019 11:30
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {
Atom Settings

Variable appeal period to avoid unnecessary waiting time on crowdfunding.

Removing ruling options from a dispute, useful for disputes with more than two parties.

Let parties to agree on draw.

Different quorum options for arbitration, instead of only majority.

It's not fair for jurors or crowdfunders when new evidence if submitted to the case. This should be addresses in some way.

  • Don't select non-semantic elements, such as div and span.

  • Avoid conditional styling based of location. If you are changing the look of a module for usage elsewhere on the page or site, sub-class the module instead.

@0xferit
0xferit / github-labels.sh
Last active March 17, 2021 12:58
Reset labels of a repo
USER=userOrOrganizationName
REPO=reponame
AUTHORIZATION_TOKEN=authorization-token
#List labels
# curl -H "Authorization: token $AUTHORIZATION_TOKEN" "https://api.github.com/repos/$USER/$REPO/labels" | jq -r '.[].name'
# Delete labels
curl -H "Authorization: token $AUTHORIZATION_TOKEN" "https://api.github.com/repos/$USER/$REPO/labels" | jq -r '.[].name' |jq -Rr @uri | while read name ; do
# echo ${name}
/**
* @authors: [@mtsalenc]
* @reviewers: [@clesaege]
* @auditors: []
* @bounties: []
* @deployments: []
*/
pragma solidity ^0.4.24;