Skip to content

Instantly share code, notes, and snippets.

View hclivess's full-sized avatar
🏠
Working from home

Jan Kučera hclivess

🏠
Working from home
View GitHub Profile
@jalbam
jalbam / unfollow-non-followers-twitter.js
Last active September 1, 2024 08:19
Code to stop following those ones who are not following you back on Twitter and keeping those you want or follow anyone you want, with certain filters (working in July 2019)
/*
Unfollow (stop following) those people who are not following you back on Twitter (or unfollow everyone if desired).
This will work for new Twitter web site code structure (it was changed from July 2019, causing other unfollow-scripts to stop working).
Instructions:
1) The code may need to be modified depending on the language of your Twitter web site:
* For English language web site, no modification needed.
* For Spanish language web site, remember to set the 'LANGUAGE' variable to "ES".
* For another language, remember to set the 'LANGUAGE' variable to that language and modify the 'WORDS' object to add the words in that language.
@hclivess
hclivess / tezos-rolling.md
Last active February 18, 2020 07:05
Tezos Rolling Mode Guide (How To)

Tezos Rolling Mode Guide (How To)

Running Tezos in this mode will only store the blocks after latest snapshot, no longer requiring hundreds of gigabytes of drive storage space.

The software modification is provided by Nomadic Labs, details: https://blog.nomadic-labs.com/introducing-snapshots-and-history-modes-for-the-tezos-node.html

Upgrade only:

rm -rf tezos
wget https://gitlab.com/nomadic-labs/tezos/-/archive/mainnet-snapshots/tezos-mainnet-snapshots.zip
unzip tezos-mainnet-snapshots.zip
@dschep
dschep / raspbian-python3.6.rst
Last active November 21, 2024 15:10 — forked from BMeu/raspbian-python3.5.rst
Installing Python 3.6 on Raspbian

Installing Python 3.6 on Raspbian

As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you.

  1. Install the required build-tools (some might already be installed on your system).
@nhumrich
nhumrich / gevent_example.py
Last active August 19, 2018 04:42
async blog post gevent example
import gevent.monkey
from urllib.request import urlopen
gevent.monkey.patch_all()
urls = ['http://www.google.com', 'http://www.yandex.ru', 'http://www.python.org']
def print_head(url):
print('Starting {}'.format(url))
data = urlopen(url).read()
print('{}: {} bytes: {}'.format(url, len(data), data))
@nephics
nephics / client.py
Created August 9, 2011 19:33
Test of experimental Tornado feature for a streaming request body handler
#
# Test of experimental Tornado feature for a streaming request body handler, see
# https://github.com/nephics/tornado/commit/1bd964488926aac9ef6b52170d5bec76b36df8a6
#
#
# Client sending file to server
#
import tornado.httpclient as httpclient