Skip to content

Instantly share code, notes, and snippets.

View vchrombie's full-sized avatar

Venu Vardhan Reddy Tekula vchrombie

View GitHub Profile
@vchrombie
vchrombie / out1
Created April 27, 2020 18:39
zulip backend
/home/p0tt3r/chaoss/sources/VENV_DIR/bin/python /home/p0tt3r/chaoss/zulip/python-zulip-api/zulip/zulip/script.py
{'anchor': 0,
'found_anchor': False,
'found_newest': False,
'found_oldest': True,
'history_limited': False,
'messages': [{'avatar_url': 'https://zulip-avatars.s3.amazonaws.com/1000/1cd87892343b6620726b112851f0b66cbda4a68f?x=x&version=4',
'client': 'Internal',
'content': 'Welcome to #**importlib**.',
'content_type': 'text/x-markdown',
/home/p0tt3r/chaoss/sources/VENV_DIR/bin/python /home/p0tt3r/chaoss/zulip/script.py
{'anchor': 10000000000000000,
'found_anchor': False,
'found_newest': True,
'found_oldest': True,
'history_limited': False,
'messages': [{'avatar_url': 'https://zulip-avatars.s3.amazonaws.com/1000/1cd87892343b6620726b112851f0b66cbda4a68f?x=x&version=4',
'client': 'Internal',
'content': '<p>Welcome to <a class="stream" '
'data-stream-id="187177" '
@vchrombie
vchrombie / README.md
Last active September 8, 2022 17:01
automation script to setup the GrimoireLab project 🦉 🚀

glab-dev-env-setup

While setting up the developer environment of the GrimoireLab, one step is to fork all the GrimoireLab components, clone them to a target local folder (e.g., sources) and each local repo should have two remotes: origin points to the forked repo, while upstream points to the parent repo.

Reference: Cloning the repositories

This script automates the whole process.

@vchrombie
vchrombie / README.md
Last active April 1, 2020 14:21
super awesome script for not letting the computer go to sleep

super awesome script for lazy programmers who don't want to let their laptops go to sleep as something important is running behind and you are too lazy to switch off the go-to-sleep-after-inactivity

what does it do: very simple > moves the mouse pointer 10 px and 10 px down, in a loop

why the script

2020-03-21 00:47:20,098 Reading projects data from ./projects.json
2020-03-21 00:47:30,737 [askbot] enrichment phase starts
2020-03-21 00:47:34,123 Created index http://localhost:9200/askbot_enriched
2020-03-21 00:47:34,155 [askbot] enrichment starts for https://askbot.org/
2020-03-21 00:47:34,629 Alias {'alias': 'askbot', 'index': 'askbot_enriched'} created on http://localhost:9200/askbot_enriched.
2020-03-21 00:47:34,718 Alias {'alias': 'affiliations', 'index': 'askbot_enriched'} created on http://localhost:9200/askbot_enriched.
2020-03-21 00:47:34,794 Alias {'alias': 'all_enriched', 'index': 'askbot_enriched'} created on http://localhost:9200/askbot_enriched.
2020-03-21 00:47:42,258 [sortinghat] Trying to add a None identity. Ignoring it.
2020-03-21 00:47:55,595 [sortinghat] Trying to add a None identity. Ignoring it.
2020-03-21 00:48:12,876 [sortinghat] Trying to add a None identity. Ignoring it.
@vchrombie
vchrombie / README.md
Last active April 1, 2020 14:52
automate a few tasks for the GrimoireLab project 🚀 🦉

automate a few tasks for the GrimoireLab project 🚀 🦉

To use these scripts, you need to install the PyGitHub and GitPython modules in the virtualenvironment (or the machine).

python3 -m pip install PyGitHub GitPython

How to use

  1. First of all, you need a GitHub Personal Access Token. You can get one form here,
@vchrombie
vchrombie / README.md
Last active February 28, 2020 09:29 — forked from kirang89/replace_lines_in_file.py
license automation script
@vchrombie
vchrombie / README.md
Last active March 17, 2020 08:29
Scripts for maintaining GrimoireLab 🚀 🦉
@vchrombie
vchrombie / README.md
Created February 20, 2020 09:21
log and reports of grimoirela-elk tests

grimoirelab_elk/tests

p0tt3r@wand ~/chaoss/grimoirelab-elk/tests [14:23:29]  
> $ sudo python3 -m coverage run run_tests.py --source=grimoire_elk 2> run_tests_log
p0tt3r@wand ~/chaoss/grimoirelab-elk/tests [14:39:09]  
> $ sudo python3 -m coverage report -m > run_tests_result