Skip to content

Instantly share code, notes, and snippets.

@veekaybee
veekaybee / normcore-llm.md
Last active May 6, 2024 16:10
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@mwaskom
mwaskom / replacing_seaborn_distplot.ipynb
Last active May 3, 2024 05:04
A guide to replacing the deprecated `seaborn.distplot` function.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ellisbrown
ellisbrown / private_fork.md
Last active September 22, 2022 02:16 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

Creating a Private Fork of a GitHub Repository

Basic Steps

  1. Create a new private repository on Github

  2. Fork the repo (BASE_REPO_URL) to your new private repo (PRIVATE_REPO_URL) as follows:

    BASE_REPO_URL=<BASE>  # remote URL of repo you are forking
    PRIVATE_REPO_URL=<PRIVATE>  # remote URL of your new private fork repo
@shankara-n
shankara-n / .tmux.conf
Last active March 21, 2023 03:38
Tmux Conf for Kali Linux
# SHORCUTS
# Ctrl - T new vertical pane
# Ctrl + U new hroizontal plane
# Alt + P kill pane
# Alt + W kill window
# Alt + P kill session
# Page Up / Page Down - shift windows
# 0 is too far from ` ;)
set -g base-index 1
@magickatt
magickatt / github_clone_using_token.sh
Created September 6, 2019 17:31
Clone a GitHub repository using a Personal Access Token
export GITHUB_USER=magickatt
export GITHUB_TOKEN=secret
export GITHUB_REPOSITORY=magickatt/ContainerisingLegacyApplicationsTalk
git clone https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}
@LoganGray
LoganGray / chromeinstall_ubu16.sh
Last active June 6, 2023 14:35
this worked to install selenium and google chrome on my Ubuntu 16 server.
#!/usr/bin/env bash
# used to install offical chrome and selenium on Ubuntu 16.04.1 LTS, 18.04, 20.04.1 LTS desktop, Jan 2021
# also tested and works on Elem OS 5.1 :)
#
# make sure script is run as root or sudo
if [[ $(whoami) != "root" ]] ; then
echo ; echo "This script, $0, SHOULD be run as ROOT. " ; echo
exit 1
fi
#
@BIGBALLON
BIGBALLON / extract_ILSVRC.sh
Created May 13, 2018 20:09
script for ImageNet data extract.
#!/bin/bash
#
# script to extract ImageNet dataset
# ILSVRC2012_img_train.tar (about 138 GB)
# ILSVRC2012_img_val.tar (about 6.3 GB)
# make sure ILSVRC2012_img_train.tar & ILSVRC2012_img_val.tar in your current directory
#
# https://github.com/facebook/fb.resnet.torch/blob/master/INSTALL.md
#
# train/
@lfender6445
lfender6445 / applescript_force_internal_microphone.scpt
Last active November 7, 2022 19:25
AppleScript - Switch to hardware mic
-- Force mac book pro 10.13.3 to switch audio input to hardware mic
tell application "System Preferences" to activate
tell application "System Preferences"
reveal anchor "input" of pane id "com.apple.preference.sound"
end tell
tell application "System Events" to tell process "System Preferences"
select (row 1 of table 1 of scroll area 1 of tab group 1 of window "Sound" whose value of text field 1 is "Internal Microphone")
end tell
quit application "System Preferences"
@0xjac
0xjac / private_fork.md
Last active May 6, 2024 13:25
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@winogradoff
winogradoff / timeout.py
Last active January 25, 2023 16:48
Python timeout decorator
import time
from functools import wraps
from multiprocessing.context import TimeoutError
from multiprocessing.pool import ThreadPool
def timeout(seconds):
def timeout_wrapper(func):
@wraps(func)
def wrapped(*args, **kwargs):