Skip to content

Instantly share code, notes, and snippets.

View Bhupesh-V's full-sized avatar

Bhupesh Varshney Bhupesh-V

View GitHub Profile
@tiran
tiran / python-on-debian.md
Last active May 21, 2024 08:46
Negative Python user experience on Debian/Ubuntu

Negative Python user experience on Debian/Ubuntu

The user experience of Python on a minimal Debian or Ubuntu installation is bad. Core features like virtual environments, pip bootstrapping, and the ssl module are either missing or do not work like designed and documented. Some Python core developers including me are worried and consider Debian/Ubuntu's packaging harmful for Python's reputation and branding. Users don't get what they expect.

Reproducer

The problems can be easily reproduced with official Debian and Ubuntu containers in Docker or Podman. Debian Stable (Debian 10 Buster) comes with Python 3.7.3. Ubuntu Focal (20.04 LTS) has Python 3.8.5.

Run Debian container

@StarfallProjects
StarfallProjects / guest-writer-programs.md
Last active September 10, 2023 11:18
A collection of freelance writing opportunities, focused on guest writer programs.

Paid content marketing programs

This is a collection of content marketing programs. I've tried to limit it to ones that pay (and have excluded some that paid insultingly low!) but exact pay ranges aren't always available.

Most of these programs are developer-oriented.

This list isn't very actively maintained, so some programs may no longer be running when you're viewing this.

List of programs

@graninas
graninas / What_killed_Haskell_could_kill_Rust.md
Last active February 18, 2025 19:32
What killed Haskell, could kill Rust, too

At the beginning of 2030, I found this essay in my archives. From what I know today, I think it was very insightful at the moment of writing. And I feel it should be published because it can teach us, Rust developers, how to prevent that sad story from happening again.


What killed Haskell, could kill Rust, too

What killed Haskell, could kill Rust, too. Why would I even mention Haskell in this context? Well, Haskell and Rust are deeply related. Not because Rust is Haskell without HKTs. (Some of you know what that means, and the rest of you will wonder for a very long time). Much of the style of Rust is similar in many ways to the style of Haskell. In some sense Rust is a reincarnation of Haskell, with a little bit of C-ish like syntax, a very small amount.

Is Haskell dead?

@MineRobber9000
MineRobber9000 / README.md
Created July 7, 2020 03:29
Import Python modules from GitHub

githubimport

Allows you to import Python modules from the top level of a GitHub repository. Basically, golang's import semantics but in Python fashion.

>>> import githubimport
>>> from MineRobber9000.test_modules import blah
>>> blah.foo()
"bar"
@kirk86
kirk86 / emojione-picker.py
Created July 3, 2020 18:41
emojione-picker
#!/usr/bin/python3
# -*- coding: UTF-8 -*-
#
import os
import subprocess
import time
import socket
import sys
import json
@caseywatts
caseywatts / 0-self-publishing.md
Last active April 6, 2025 10:39
Self-Publishing via Markdown
@prashant-shahi
prashant-shahi / The Technical Interview Cheat Sheet.md
Last active May 2, 2021 15:10 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Big-O Complexity Chart

Data Structure Basics

Common Data Structure operations

@rain-1
rain-1 / checksum-colorizer.go
Created March 18, 2019 23:39
checksum colorizer
package main
import (
"bufio"
"fmt"
"os"
"log"
"regexp"
)
@mdawaffe
mdawaffe / diff-changed-lines.sh
Last active March 25, 2025 11:24
Get line numbers of changed lines - git, diff - Full of bashisms
#!/bin/bash
# Call like you would `diff`
# `./diff-changed-lines.sh old new`
# Outputs the lines numbers of the new file
# that are not present in the old file.
# That is, outputs line numbers for new lines and changed lines
# and does not output line numbers deleted or unchanged lines.
@cubedtear
cubedtear / script.sh
Last active July 7, 2023 04:37
Self-updating bash script
#!/usr/bin/env bash
VERSION="0.0.2"
SCRIPT_URL='https://gist.github.com/cubedtear/54434fc66439fc4e04e28bd658189701/raw'
SCRIPT_DESCRIPTION=""
SCRIPT_LOCATION="${BASH_SOURCE[@]}"
rm -f updater.sh
function update()
{