Skip to content

Instantly share code, notes, and snippets.

View dufferzafar's full-sized avatar

Shadab Zafar dufferzafar

View GitHub Profile
#!/usr/bin/env python3
"""
quicky script that compares two conda environments
can be handy for debugging differences between two environments
This could be made much cleaner and more flexible -- but it does the job.
Please let me know if you extend or improve it.
@Nachtalb
Nachtalb / telegram-desktop-multiple-accounts.rst
Last active April 8, 2025 16:37
Add multiple accounts in Telegram Desktop [Linux | MacOSX | Windows]
@druska
druska / engine.c
Created September 17, 2018 15:18
Quant Cup 1's winning order book implementation
/*****************************************************************************
* QuantCup 1: Price-Time Matching Engine
*
* Submitted by: voyager
*
* Design Overview:
* In this implementation, the limit order book is represented using
* a flat linear array (pricePoints), indexed by the numeric price value.
* Each entry in this array corresponds to a specific price point and holds
* an instance of struct pricePoint. This data structure maintains a list
@hthuwal
hthuwal / merge_two_repos.md
Last active August 30, 2018 16:00
Git Tricks

Suppose you wanna merge repoA and repoB with no common history

  1. cd into repoA
  2. Add repoB as remote
    git remote add repoB <repoB url>
  3. Fetch repoB's content
    git fetch repoB

Alternatively 2 & 3 can be done together as
`git remote add -f repoB

@lukasnellen
lukasnellen / 00-ssh-tmux-iterm.md
Last active September 20, 2024 07:06
Summary of my remote tmux and ssh configuration to benefit from the iterm2-tmux integration, with ssh authentication socket refreshing

Configuration to use remote tmux over ssh in iterm

This is a compilation of information I found in different postings on the net.

All manual invocation

Basic remote tmux session

tmux can be invoked in command mode using tmux -CC. The simplest way to get a remote tmux session into a window of iterm is to invoke it on the remote host

@matt-bailey
matt-bailey / github-pages-custom-domain-gandi-dns-records.md
Last active June 13, 2025 16:36
How to set up DNS records on gandi.net to use a custom domain on Github Pages

How to set up DNS records on gandi.net to use a custom domain on Github Pages

You would think it would be easy to find this information, but none of the Github or Gandi documentation is clear so I have recorded the required steps here.

Create the following A records:

@ 1800 IN A 185.199.108.153
@ 1800 IN A 185.199.109.153
@ 1800 IN A 185.199.110.153
@ivmirx
ivmirx / filter.js
Last active May 7, 2025 23:17
Filter for hckrnews.com (Chromium and Firefox extension)
var words = [
'php', 'js', 'css', 'html', 'webgl', 'java', 'ruby', 'golang', 'kotlin', 'perl', 'zig', 'gcc', 'c++',
'elixir', 'elm ', 'erlang', 'clojure', 'lisp', 'racket', 'scala', 'haskell',
'mozilla', 'firefox', 'wordpress', 'kagi ', 'sql', 'mongo', 'latex',
'kubernetes', 'docker', 'tensor', 'graphql', ' ml ', 'machine learning',
'alphabet', 'facebook', 'amazon', 'aws ', 'dell', 'amd', 'verizon', 'airbnb', 'uber', 'tesla', 'spacex', 'self-driving', 'waymo',
'fundraising', 'investor', 'venture', 'unicorn',
'bitcoin', 'btc', 'ethereum', 'blockchain', 'cryptocurrenc', 'nft',
'gpl', 'drm', 'court', 'legal', 'tiktok',
'francisco', 'new york', 'california', 'bay area', 'texas', 'florida', 'wall street', 'el salvador', 'canad', 'austral',
@mauri870
mauri870 / manjaro-avell-g1513.md
Last active March 2, 2022 02:23
Installation of Manjaro 17 and nvidia/bumblebee drivers on Avell G1513

After a weekend of research, stress and pain I finally figure out how to install manjaro 17 and configure the nvidia/bumblebee drivers on my avell laptop

Here's my notebook specs:

$ inxi -MGCNA

Machine:   Device: laptop System: Avell High Performance product: 1513
           Mobo: N/A model: N/A v: 0.1 UEFI: American Megatrends v: N.1.02 date: 09/28/2016
Battery    BAT0: charge: 44.0 Wh 100.0% condition: 44.0/44.0 Wh (100%)
@max-mapper
max-mapper / bibtex.png
Last active November 6, 2024 09:03
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png