Skip to content

Instantly share code, notes, and snippets.

View igorbarinov's full-sized avatar
🫡
I may be slow to respond.

Igor Barinov igorbarinov

🫡
I may be slow to respond.
View GitHub Profile
9fa60618-2b2c-443d-8640-48cb3e16467a
In the world of post-modernism, it is no longer clear that any one identity is ‘real’. 9fa60618-2b2c-443d-8640-48cb3e16467a
@igorbarinov
igorbarinov / 0_reuse_code.js
Created July 24, 2016 03:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon -s
sudo sh -c "printf '/swapfile none swap sw 0 0\n' >> /etc/fstab"
sudo sh -c "printf 'vm.swappiness=10\n' >> /etc/sysctl.conf"
sudo sysctl vm.vfs_cache_pressure=50
sudo sh -c "printf 'vm.vfs_cache_pressure = 50\n' >> /etc/sysctl.conf"
{
"file": {
"link": "...",
"name": "...",
"size": "...",
"hash": "..."
},
"signee": {
"email": "..."
}

Keybase proof

I hereby claim:

  • I am igorbarinov on github.
  • I am itsbeta (https://keybase.io/itsbeta) on keybase.
  • I have a public key ASDTi_Hl8dF4Od1toUn1ZgoqIRYjw7P-bhSvhURwt1uYvgo

To claim this, I am signing this object:

0x8BeadF636208cC2DB066f0308f334a7d76e2E475
@igorbarinov
igorbarinov / MyToken.sol
Last active July 9, 2017 21:12
Combined contract
pragma solidity ^0.4.11;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
0x1798014475d139AC0FDFfC5747d14AFD106855FD
0x2c57E1E3AD53F0b971422696c1470cEB84F83B1B