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.

import argparse | |
import json | |
import logging | |
import os | |
import re | |
import shutil | |
from concurrent.futures import ProcessPoolExecutor, as_completed | |
from dataclasses import dataclass | |
from datetime import datetime | |
from typing import Any, Callable, Dict, List, Literal, Optional, Tuple |
#!/bin/bash | |
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont' |
<? | |
// | |
// AUTO KEYWORD-BASED FOLLOWER CURATION BOT (by @levelsio) | |
// | |
// File: twitterFollowerCuratorBot.php | |
// | |
// Created: May 2021 | |
// License: MIT | |
// |
/** Multisheet Duplicate Finder ** | |
To use, paste this code into a Google Spreadsheets Apps Script (Tools - Script editor) | |
Loops through all of the sheets in the current spreadsheet. | |
Identifies duplicates in the chosen column. | |
Skips the chosen number of header rows. | |
Creates and alert box listing the duplicates, and colors the duplicate cells red. | |
The directive below limits the script to only be able to access this spreadsheet. | |
* @OnlyCurrentDoc | |
*/ |
Most of it is taken from this gist. I just tweaked the script to check the right theme at startup in case the theme change occured when iTerm2 was closed.
Make sure the theme is the same as the themes you have installed (Preferences > Profiles > Colors > Color Presets...). I personally use Solarized Dark and Solarized Light
From someone on the linked gist:
First-time installation steps for me:
- Download the script from GitHub by right-clicking on Raw button and save as...
- copy the script to
$HOME/Library/Application Support/iTerm2/Scripts/AutoLaunch
- create AutoLaunch folder if it does not exist
- go to iTerm2 > Scripts > AutoLaunch
// Pre Placement Revision Guide! | |
// All the very best for placements! | |
#include <bits/stdc++.h> | |
using namespace std; | |
/* | |
THIS RESOURCE WAS MADE FOR END MIN REVISION OF SOME INBUILT DS AND CONTAINERS THAT C++ STL | |
HAS TO OFFER. | |
IF THERE IS ANY BUG OR ERROR PLEASE LET ME KNOW! |
x = document.querySelectorAll('div.f4.lh-condensed.text-bold.text-gray-dark'); | |
for(let i=0; i<x.length; i++) { | |
const [a, b] = x[i].children[0].innerText.split('/'); | |
if(a === b) | |
x[i].parentElement.parentElement.remove(); | |
} |