Skip to content

Instantly share code, notes, and snippets.

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 27, 2024 16:01
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@gnprice
gnprice / .gitconfig
Last active December 22, 2023 20:53
gitconfig
# This is a snapshot of my ~/.gitconfig file, minus a few bits
# that are obsolete or non-reusable.
#
# For explanation of each setting, see `git help config`
# or https://git-scm.com/docs/git-config .
#
[user]
name = Greg Price
email = gnprice@gmail.com
[alias]
@mateuszmandera
mateuszmandera / gsoc_final_report.md
Last active August 6, 2020 08:39
Google Summer of Code 2019: Final Report

Google Summer Of Code 2019 - Zulip

My main areas in Zulip are the email mirror, retention and rate limiting subsystems. My work during this GSoC was spread out across various small and medium sized projects and the best way to view it is through my commit history. Of course for the purposes of this final GSoC report, the commits with relevant dates should be considered.

Below I will briefly describe the major pieces of my work:

Message retention policy

@thedeveloperr
thedeveloperr / find-test-file-producing-spam.py
Last active July 15, 2020 18:25
[Zulip test-backend spam producing test finder script] It finds test that produce spam, in this case logs of code under test. Developed for issue https://github.com/zulip/zulip/issues/1587. #zulip_dev_utility script #zulip_dev
# Developed for https://github.com/zulip/zulip/issues/1587
# Usage, run following command in vagrant: ./tools/test-backend --parallel=1 |& python find-test-file-producing-spam.py >> spam_to_remove.txt
valid_line_patterns = [
"^Running ", # Example: Running zerver.tests.test_attachments.AttachmentsTests.test_delete_unauthenticated
"^\*\* Test is TOO slow: ", # Example: ** Test is TOO slow: analytics.tests.test_counts.TestRealmActiveHumans.test_end_to_end (0.581 s)
"^----------------------------------------------------------------------", # Example: ----------------------------------------------------------------------
"^INFO: URL coverage report is in", # Example: INFO: URL coverage report is in var/url_coverage.txt
"^INFO: Try running:", # Example: INFO: Try running: ./tools/create-test-api-docs
"^-- Running tests in", # Example: -- Running tests in parallel mode with 4 processes