Skip to content

Instantly share code, notes, and snippets.

💭
🐶

Dan Ξ AndreiD

💭
🐶
Block or report user

Report or block AndreiD

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
@AndreiD
AndreiD / ubuntu desktop setup helper
Last active Jul 14, 2019
ubuntu_desktop_bootstrap
View ubuntu desktop setup helper
# ATTENTION! Note for myself: do by hand, and update the script if necessary
# let'em have colors
end="\033[0m"
red="\033[0;31m"
green="\033[0;32m"
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt install -y dconf-tools build-essential software-properties-common
View stablecoin.sol
/**
* Source Code first verified at https://etherscan.io on Tuesday, November 28, 2017
(UTC) */
pragma solidity ^0.4.17;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
@AndreiD
AndreiD / erc20_one_file
Created Mar 11, 2019
ERC20 Token One File
View erc20_one_file
pragma solidity ^0.5.5;
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function approve(address spender, uint256 value) external returns (bool);
function transferFrom(address from, address to, uint256 value) external returns (bool);
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
event Transfer(address indexed from, address indexed to, uint256 value);
@AndreiD
AndreiD / fedora_setup.md
Last active Dec 27, 2018
fedora desktop setup
View fedora_setup.md

First we setup the repositories so we can install lots of stuff

sudo dnf install fedora-workstation-repositories -y

Install Rpmfusion repo

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -y
@AndreiD
AndreiD / poascount_ubuntu.sh
Last active Nov 27, 2018
poascount blockchain explorer setup ubuntu 16
View poascount_ubuntu.sh
#!/bin/bash
set -e
# let'em have colors
end="\033[0m"
red="\033[0;31m"
green="\033[0;32m"
echo -e "${green}......................................${end}"
echo -e "${green}........ Script Version 1.0a .........${end}"
View keybase.md

Keybase proof

I hereby claim:

  • I am andreid on github.
  • I am andyx (https://keybase.io/andyx) on keybase.
  • I have a public key ASB34CD3TkjaUTEiiA9Oz2nuY-wKpo7JZqTW3bF7JZESXgo

To claim this, I am signing this object:

@AndreiD
AndreiD / error_500_page
Created Oct 31, 2018
cool error 500 page
View error_500_page
<!DOCTYPE html><html><head><title>IGN Error 500 - Internal Server Problem</title><link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,800" rel="stylesheet"><style type="text/css">.cta,h1{letter-spacing:.5px}#wrapper,p{line-height:1.5em}h2,section.right{hyphens:auto}*{box-sizing:border-box;text-rendering:optimizeLegibility}body{background:#B97E39;grid-template-columns:auto;color:#252627;font-family:Montserrat,sans-serif}#wrapper{display:grid;font-size:16px;grid-template-columns:4fr 6fr;grid-gap:4em;height:100vh;padding:5% 10%}section.left,section.right{padding:4em 2em;align-self:center}section.left{border-right:1px solid rgba(255,255,255,.5);display:grid}.cta{text-align:center;display:inline-grid;align-content:center;align-items:center;padding:1em 3em;font-size:1em;border-radius:2em;margin-top:32px;text-decoration:none;transition:background .25s ease-in;position:relative;text-transform:uppercase;font-weight:700}.anotherquote,.anotherquote:hover{transition:background .25s ease-in-out}.secondar
@AndreiD
AndreiD / myvscodesettings
Last active Jun 20, 2019
my vscode settings
View myvscodesettings
{
"go.buildOnSave": "workspace",
"go.lintOnSave": "package",
"go.vetOnSave": "package",
"go.buildFlags": [],
"go.lintFlags": [],
"go.vetFlags": [],
"go.useCodeSnippetsOnFunctionSuggest": false,
"window.zoomLevel": 0,
"go.formatTool": "goreturns",
View fdsa
package com.mex.integrationapp;
import android.os.CountDownTimer;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import com.squareup.okhttp.Call;
import com.squareup.okhttp.Callback;
import com.squareup.okhttp.OkHttpClient;
View gistx
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.mex.integrationapp"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
You can’t perform that action at this time.