Skip to content

Instantly share code, notes, and snippets.

sudo apt install xfce4-terminal
sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/xfce-terminal 0
sudo update-alternatives --config x-terminal-emulator
This file has been truncated, but you can view the full file.
{
"name": "Development",
"id": "dev",
"chainType": "Development",
"bootNodes": [],
"telemetryEndpoints": null,
"protocolId": "dot",
"properties": null,
"forkBlocks": null,
"badBlocks": null,
sudo apt install feh compton i3status i3lock playerctl dmenu light xfce4-notifyd -y
git clone https://github.com/noot/dotfiles
cp dotfiles/.i3/config .config/i3
mv dotfiles/sunset_3440x1440_by_axiomdesign-dazvjl3.png Pictures/
sudo chmod u+s /usr/bin/light
@noot
noot / i3-gaps install >=v4.19
Last active August 25, 2022 18:57
i3-gaps install >=v4.19
sudo apt install gcc make git meson libstartup-notification0-dev libxcb-xkb-dev libxcb-xinerama0-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-util-dev libxcb-cursor-dev libxcb-keysyms1-dev libxcb-icccm4-dev libxcb-xrm-dev libxkbcommon-dev libxkbcommon-x11-dev libyajl-dev libpcre3-dev libcairo2-dev librust-pangocairo-dev libev-dev
git clone https://github.com/Airblader/i3
cd i3
git checkout gaps
meson build
cd build
meson install
0061 736d 0100 0000 0195 0119 6003 7f7f
7f01 7f60 027f 7f01 7f60 027f 7f00 6002
7e7e 0060 017e 017e 6003 7e7e 7f01 7e60
017e 0060 017e 017f 6000 017e 6003 7e7e
7e00 6002 7e7e 017e 6004 7e7e 7e7f 017e
6002 7e7e 017f 6001 7f01 7e60 027f 7e01
7f60 037f 7f7e 017e 6003 7f7e 7f01 7f60
027f 7f01 7e60 017f 017f 6001 7f00 6000
0060 037f 7f7f 0060 057f 7f7f 7f7f 017f
6004 7f7f 7f7f 017f 6005 7f7f 7f7f 7f00
@noot
noot / call.js
Last active January 8, 2019 19:20
const ethers = require('ethers')
const Wallet = ethers.Wallet
const providers = ethers.providers
// change ContractName to the name of your contract
const contractJson = require('./build/contracts/ContractName.json')
const abiEncoder = new ethers.utils.AbiCoder()
const deploy = async() => {
// copy your private key here
let wallet = new Wallet("privatekey")
@noot
noot / Call.sol
Last active January 8, 2019 19:27
contract MyContract {
function callContract(address _addr, bytes _data) returns (uint8) {
uint8 result;
uint256 length = _data.length + 32;
assembly {
let x := mload(0x40) // get empty storage location
let ret := call (gas,
_addr,
pragma solidity ^0.4.8;
contract ERC223Receiver {
function tokenFallback(address _sender, address _origin, uint _value, bytes _data) returns (bool ok);
}
pragma solidity ^0.4.8;
import "./ERC20.sol";
contract ERC223 is ERC20 {
function transfer(address to, uint value, bytes data) returns (bool ok);
function transferFrom(address from, address to, uint value, bytes data) returns (bool ok);
}
pragma solidity ^0.4.8;
/* ERC223 additions to ERC20 */
import "./interface/ERC223.sol";
import "./interface/ERC223Receiver.sol";
import "./StandardToken.sol";
contract Standard223Token is ERC223, StandardToken {