Skip to content

Instantly share code, notes, and snippets.

🐊

Guro Bokum JIoJIaJIu

🐊
View GitHub Profile
View big.sh 32Mb x 40 = 1.3Gb
#!/bin/bash
DIR=${1:-example}
mkdir -p $DIR
for i in `seq 1 10`; do
mkdir -p $DIR/$i
dd if=/dev/urandom of=$DIR/$i/file-${i} bs=50M count=1
dd if=/dev/urandom of=$DIR/$i/another-file-${i} bs=50M count=1
dd if=/dev/urandom of=$DIR/$i/second-file-${i} bs=50M count=1
dd if=/dev/urandom of=$DIR/$i/third-file-${i} bs=50M count=1
View pbar.py
import sys
import os
from random import random
from tqdm import trange, tqdm
from concurrent.futures import ThreadPoolExecutor
from time import sleep
from dvc.progress import Tqdm
View sort vs sorted
import sys
import cProfile
from random import shuffle;
l=list(range(10**6));
shuffle(l);
def get_entry(x):
return x + 1
View TON_Collaboration.md

The problem is that collators have no idea how long message processing may take. And so limited amount of resources are allocated essentially for free

I havent digged at the problem so deep, but now I did. accept_message only set Infinity limit for gas into VM, what allows TVM to safely execute method. In fact gas amount change happens in Transcation action phase based on computed phase. I wonder about such thing - if you used blockchain computation power - you must pay for it, even the block was discarded. accept_message should be used ONLY with external messages cause they don't store any grams in the body.

Conclusion.

I think the TON behavior is correct, accept_message should be used only for external messages, any checking shouldn't be applied

View crash.log
This file has been truncated, but you can view the full file.
2019/09/11 01:40:39 [INFO] Terraform version: 0.12.8
2019/09/11 01:40:39 [INFO] Go runtime version: go1.12.9
2019/09/11 01:40:39 [INFO] CLI args: []string{"/home/jiojiajiu/local/bin/terraform", "plan"}
2019/09/11 01:40:39 [DEBUG] Attempting to open CLI config file: /home/jiojiajiu/.terraformrc
2019/09/11 01:40:39 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/09/11 01:40:39 [DEBUG] checking for credentials in "/home/jiojiajiu/.terraform.d/plugins"
2019/09/11 01:40:39 [DEBUG] checking for credentials in "/home/jiojiajiu/.terraform.d/plugins/linux_amd64"
2019/09/11 01:40:39 [INFO] CLI command args: []string{"plan"}
2019/09/11 01:40:39 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
@JIoJIaJIu
JIoJIaJIu / .babelrc.js
Created May 2, 2019 — forked from nodkz/.babelrc.js
Babel 7.0 with .babelrc.js
View .babelrc.js
/* eslint-disable prefer-template */
const path = require('path');
const aliases = require('./aliases');
// ///////////////////////////////////////////////////////////////
// ////////////////// PLUGINS ////////////////////////////////
// ///////////////////////////////////////////////////////////////
const commonPlugins = [
@JIoJIaJIu
JIoJIaJIu / gist:97f74bb6ba2acbfa1b3feea5406b5ada
Created Mar 28, 2018 — forked from jendiamond/gist:6128723
Creating your own Gem & Command Line Interface Using Bundler
View gist:97f74bb6ba2acbfa1b3feea5406b5ada

Presentation slides

Create a Gem - Make it a CLI - Add Rspec Tests

Create a Gem - Make it a Command Line Interface - Add Rspec Tests Using Bundler & Thor

#Creating your own Gem

  1. Run this command in your Terminal. This creates and names all the files you need for your gem. We are going to create a Lorem Ipsum Generator; you can call it whatever you want but seeing as we are creating a Lorem Ipsum generator we'll call it lorem. Read about gem naming conventions.
@JIoJIaJIu
JIoJIaJIu / volume.rb
Created Feb 13, 2018 — forked from uriel1998/volume.rb
Set PulseAudio volume, mute, unmute, and change default sink (and automagically switch running audio streams) from the commandline
View volume.rb
#!/usr/bin/ruby
#
# Moved to: https://github.com/uriel1998/volumerb
#
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
# Unported License. To view a copy of this license, visit
# http://creativecommons.org/licenses/by-sa/3.0/.
#
# Forked/derived from original by Jasper Van der Jeugt (jaspervdj);
@JIoJIaJIu
JIoJIaJIu / gdbinit
Created Dec 26, 2017 — forked from CocoaBeans/gdbinit
.gdbinit - A user-friendly gdb configuration file
View gdbinit
# INSTALL INSTRUCTIONS: save as ~/.gdbinit
#
# DESCRIPTION: A user-friendly gdb configuration file.
#
# REVISION : 7.3 (16/04/2010)
#
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit,
# truthix the cyberpunk, fG!, gln
#
# FEEDBACK: https://www.reverse-engineering.net
View keybase.md

Keybase proof

I hereby claim:

  • I am jiojiajiu on github.
  • I am jiojiajiu (https://keybase.io/jiojiajiu) on keybase.
  • I have a public key whose fingerprint is A07F C351 CBC9 229B 7276 44FC B464 158C 4E41 7697

To claim this, I am signing this object:

You can’t perform that action at this time.