Skip to content

Instantly share code, notes, and snippets.

@oca159
oca159 / tmux.conf
Last active January 17, 2025 06:16
tmux
# Set terminal colors
set-option -sa terminal-overrides ",xterm*:Tc"
# Enable mouse support
set -g mouse on
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
@oca159
oca159 / config
Last active January 17, 2025 06:16
ghostty
theme = catppuccin-mocha
adjust-cell-height = 10%
command = /bin/zsh -c "tmux new -A -s work"
copy-on-select = true
font-family = "TX-02"
font-size = 16
font-thicken = true
mouse-hide-while-typing = true
macos-non-native-fullscreen=visible-menu
@chaudharyachint08
chaudharyachint08 / gate_da_material.md
Last active January 17, 2025 06:15
GATE(DA) Preparation Material

Probability and Statistics (with Counting/Combinatorics)

  • Mathematics (Class 11 & 12) - NCERT Relevant Chapters
    • Class 11 - Ch 1. Sets
    • Class 11 - Ch 2. Relations and Functions
    • Class 12 - Ch 1. Relations and Functions
    • Class 11 - Ch 6. Permutations and Combinations
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML5 Canvas Rectangles</title>
<style>
body {
margin: 0;
display: flex;
@fm4dd
fm4dd / gcc compiler optimization for arm systems.md
Last active January 17, 2025 06:12
GCC compiler optimization for ARM-based systems

GCC compiler optimization for ARM-based systems

2017-03-03 fm4dd

The gcc compiler can optimize code by taking advantage of CPU specific features. Especially for ARM CPU's, this can have impact on application performance. ARM CPU's, even under the same architecture, could be implemented with different versions of floating point units (FPU). Utilizing full FPU potential improves performance of heavier operating systems such as full Linux distributions.

-mcpu, -march: Defining the CPU type and architecture

These flags can both be used to set the CPU type. Setting one or the other is sufficient.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML5 Canvas Rectangles</title>
<style>
body {
margin: 0;
display: flex;
@bahamas10
bahamas10 / readme.md
Created July 28, 2020 21:23
ThinkPad TouchPad on Void Linux fix

Synaptics Touchpad

I did an XBPS upgrade on my Void Linux system and my touchpad stopped working (ThinkPad X1 Carbon Gen6). The TrackPoint (little red nub thingy in the keyboard) still worked just fine.

Find the device

@ivanpanshin
ivanpanshin / train_transform.py
Created April 12, 2020 13:30
train and valid transforms for cancer classification
train_transforms = transforms.Compose([
transforms.Resize((196, 196)),
transforms.RandomChoice([
transforms.ColorJitter(brightness=0.5),
transforms.ColorJitter(contrast=0.5),
transforms.ColorJitter(saturation=0.5),
transforms.ColorJitter(hue=0.5),
transforms.ColorJitter(brightness=0.1, contrast=0.1, saturation=0.1, hue=0.1),
transforms.ColorJitter(brightness=0.3, contrast=0.3, saturation=0.3, hue=0.3),
transforms.ColorJitter(brightness=0.5, contrast=0.5, saturation=0.5, hue=0.5),
@canton7
canton7 / 0main.md
Last active January 17, 2025 06:09
Local versions of tracked config files

How to have local versions of tracked config files in git

This is a fairly common question, and there isn't a One True Answer.

These are the most common techniques:

If you can modify your application

@Fanman03
Fanman03 / UAP-Guide.md
Last active January 17, 2025 06:05
UniFi AP Buyers Guide

UniFi AP Buyers Guide

(updated June 2024)

The APs in this list are ordered from highest to lowest performance. However, unless you have an insane amount of devices you likely do NOT need to buy the most expensive, highest performance AP. You can also check Ebay for deals, especially on older equipment. In terms of best price-to-performance, the U6 Pro/Mesh/InWall series is the sweet spot in my opinion and is the best choice for most deployments.

All APs in this list support both wired backhaul and mesh modes. However, wired connections are strongly recommended for better performance and reliability.

Number of spatial streams are listed in order of 2.4GHz, 5GHz, 6GHz.

Good Choices: