Skip to content

Instantly share code, notes, and snippets.

View kishvanchee's full-sized avatar

Kishore Vancheeshwaran kishvanchee

View GitHub Profile
@asemic-horizon
asemic-horizon / example.md
Last active October 7, 2021 19:35
rust bottlenecking

In this example we calculate "distance covariance" matrices (look it up on Wikipedia)

Python code

import numpy as np
from math import sqrt

def distance_matrix(X):
  D = np.empty(shape=(X.shape[0],X.shape[0]))
@xbns
xbns / why-this-partitioning-scheme.md
Last active September 14, 2023 11:18
Why this partitioning scheme #arch-linux

Why this partitioning scheme

Laptop 1: hp-4540s-i5 (BIOS/MBR)

$ sudo dmidecode | grep -A3 '^System Information'
System Information
@xbns
xbns / arch-linux-installation-on-mbr-system.md
Last active June 21, 2024 09:48
Arch Linux Installation Process for a Legacy/BIOS/MBR System #arch-linux

Arch Linux Installation Process for a Legacy/BIOS/MBR System

We will tackle this process in 10 steps listed below.

I didn't want to repeat some sections well explained in the UEFI Process. You can refer there and follow due process.

Namely;

  • Connecting to WiFi.
@xbns
xbns / arch-linux-installation-on-uefi-gpt-system.md
Last active May 15, 2024 20:42
Installing Arch Linux for UEFI/GPT System #arch-linux

Installing Arch Linux for UEFI/GPT System

For BIOS/MBR Legacy system refer to here

Installation process over a Wi-Fi

Download the .iso file from Arch Linux Official Site.

Step 1: Make a Live USB Disk and boot from it.

@Raymo111
Raymo111 / UWaterloo Mail.md
Last active January 23, 2022 23:37
How to connect to UWaterloo's new email system via any mail client

How to connect to UWaterloo's new email system via any mail client

By Raymond Li (Raymo111), July 1st, 2020 (Happy Canada Day!)

Last updated 12 Sept 2021
Credits to PixlOne for O365Interactive mode and headless Davmail

Step 1: Get Davmail.

  • I'm on Arch Linux, so I installed it from the AUR.
@tjluoma
tjluoma / youtube-rss.sh
Last active January 3, 2023 09:00
Did you know YouTube has RSS feeds? No? Probably because YouTube makes them nearly impossible to find. But here's an easy way to get the RSS feed for any YouTube user. Inspired by <https://eggfreckles.net/notes/youtube-rss/>
#!/usr/bin/env zsh -f
# Purpose: get the RSS feed for a YouTube page
# Inspired By: https://eggfreckles.net/notes/youtube-rss/
# Gist: https://gist.github.com/tjluoma/fdbc63ceb78a2aecd3d638fd18b6ec6e
#
# From: Timothy J. Luoma
# Mail: luomat at gmail dot com
# Date: 2020-01-17; updated 2021-01-10
# 2021-01-10 YouTube currently has both 'rssUrl' and
@dabeaz
dabeaz / aproducer.py
Created October 17, 2019 17:46
"Build Your Own Async" Workshop - PyCon India - October 14, 2019 - https://www.youtube.com/watch?v=Y4Gt3Xjd7G8
# aproducer.py
#
# Async Producer-consumer problem.
# Challenge: How to implement the same functionality, but no threads.
import time
from collections import deque
import heapq
class Scheduler:
@wgopar
wgopar / MySQL_practice_problems.md
Last active June 22, 2024 14:49
MySQL Employees Sample Database exercise problems + solutions.

MySQL practice problems using the Employees Sample Database along with my solutions. See here for database installation details.

Problem 1

Find the number of Male (M) and Female (F) employees in the database and order the counts in descending order.

SELECT gender, COUNT(*) AS total_count
FROM employees 
GROUP BY gender

Prepare for SQL interview questions

Tutorial

SQL tutorial: https://tutorial.techaltum.com/SQLServer.html

Sample questions and solutions

@jaydorsey
jaydorsey / ublock
Last active July 4, 2024 14:16
uBlock for LinkedIn
# Block things on LinkedIn with uBlock Origin that LinkedIn won't let you block
# Choose "Options" in uBlock Origin with a right-click, and add these to
# "My filters"
# ADDING YOUR OWN FILTERS
#
# Using Linkedin.com as an example
#
# 1. Open up the webpage
# 2. Find some text you want to block