Skip to content

Instantly share code, notes, and snippets.

View ac130kz's full-sized avatar
🎯
Focusing

Mikhail Krassavin ac130kz

🎯
Focusing
  • Astana, Kazakhstan
View GitHub Profile
This file has been truncated, but you can view the full file.
[INFO] [10-06|04:10:50.808] Build info git_branch= git_tag= git_commit=
[INFO] [10-06|04:10:50.813] Starting Erigon on Ethereum mainnet...
[INFO] [10-06|04:10:50.815] Maximum peer count ETH=100 total=100
[INFO] [10-06|04:10:50.815] starting HTTP APIs APIs=eth,debug,engine,net,trace,web3,erigon,txpool
[INFO] [10-06|04:10:50.815] torrent verbosity level=DBG
[INFO] [10-06|04:10:52.916] Set global gas cap cap=50000000
[INFO] [10-06|04:10:53.005] Opening Database label=chaindata path=/node/ethereum/mainnet/chaindata
mdbx_setup_dxb:16273 open-MADV_DONTNEED 303746150..304087040
mdbx_set_readahead:9624 readahead OFF 0..303746150
[INFO] [10-06|04:10:53.008] Initialised chain configuration config="{ChainID: 1, Homestead: 1150000, DAO: 1920000, DAO Support: true, Tangerine Whistle: 2463000, Spurious Dragon: 2675000, Byzantium: 4370000, Constantinople: 7280000, Petersbur
@ac130kz
ac130kz / vk_delete.js
Created September 28, 2022 14:50
Delete all Vk posts (F12 -> Console -> Paste + Enter)
var h = document.getElementsByClassName("ui_actions_menu _ui_menu ui_actions_menu--actionSheet");
var i = 0;
function del_wall() {
try {
var fn_str = h[i].getElementsByTagName("a")[0].onclick.toString();
} catch (error) {
clearInterval(int_id);
return;
}
var fn_arr_1 = fn_str.split("{");
-- DateDiff function that returns the difference between two timestamps in the given date_part (weeks, months, etc) as an integer
-- This behaves like the DateDiff function in warehouses like Redshift and Snowflake, which count the boundaries between date_parts
CREATE OR REPLACE FUNCTION datediff (date_part VARCHAR(30), start_t TIMESTAMP, end_t TIMESTAMP)
RETURNS INT AS $diff$
DECLARE
years INT = 0;
days INT = 0;
hours INT = 0;
minutes INT = 0;

The document provides description on calibration of three Kinect for Microsoft sensors connected to one computer with several usb controllers. Three cameras setup is shown below:

Figure 1

Intrinsic, extrinsic, and Kinect2Kinect calibration is performed to know the position of each sensor in the space. Our setup is ROS Indigo within Ubuntu 14.04.

ROS Indigo

sudo apt update && sudo apt install software-properties-common python-software-properties usbutils git cmake build-essential -y
sudo add-apt-repository main
@ac130kz
ac130kz / AdList.txt
Last active July 8, 2020 18:08 — forked from slmingol/AdList.txt
Ad Block List
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
https://sysctl.org/cameleon/hosts
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://hosts-file.net/ad_servers.txt
https://mirror1.malwaredomains.com/files/justdomains
https://easylist.to/easylist/easylist.txt
https://easylist.to/easylist/easyprivacy.txt
https://easylist.to/easylist/fanboy-annoyance.txt
@ac130kz
ac130kz / IntelliJ_IDEA__Perf_Tuning.txt
Last active May 6, 2020 11:22 — forked from P7h/IntelliJ_IDEA__Perf_Tuning.txt
Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
# proper AA fonts
-Dawt.useSystemAAFontSettings=on
-Dswing.aatext=true
# from master
-server
-Xms2048m
-Xmx3096m
-XX:NewSize=512m
-XX:MaxNewSize=512m
Goldie - Inner City Life (HD) [03:52]
ERROR: This video contains content from [Merlin] London Music Stream Ltd, who has blocked it on copyright grounds.
ERROR: This video contains content from [Merlin] London Music Stream Ltd, who has blocked it on copyright grounds.
ERROR: This video contains content from [Merlin] London Music Stream Ltd, who has blocked it on copyright grounds.
ERROR: This video contains content from [Merlin] London Music Stream Ltd, who has blocked it on copyright grounds.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 785, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 440, in extract
ie_result = self._real_extract(url)