Skip to content

Instantly share code, notes, and snippets.

@ShinyZero0
ShinyZero0 / VimClipboard.md
Last active May 10, 2024 07:29
Регистры и системный буфер обмена в vim

Использование регистров

В (n)vim есть много внутренних буферов обмена, называемых регистрами, которые можно активировать с помощью " и названия буфера, например "+ или "0. После этого следует команда, использующая выбранный регистр:

  • "+y чтобы скопировать текст в буфер + (системный)
  • "+p чтобы вставить из него.
@pnsinha
pnsinha / kitty.md
Created January 11, 2024 05:21
Kitty CheatSheet

Default shortcuts

Scrolling

Action Shortcut
Scroll line up ctrl+shift+up (also ⌥+⌘+⇞ and ⌘+↑ on macOS)
Scroll line down ctrl+shift+down (also ⌥+⌘+⇟ and ⌘+↓ on macOS)
Scroll page up ctrl+shift+page_up (also ⌘+⇞ on macOS)
Scroll page down ctrl+shift+page_down (also ⌘+⇟ on macOS)
import click
import numpy as np
import rasterio
def find_dark_object_value(arr):
"""Find the value of the dark object
ie the first dark value that is not an outlier
"""
preval = None
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active May 10, 2024 07:09
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
Maintainers:
veprbl: nlojet, nlojet, nlojet, nlojet
@galaxydata
galaxydata / README.md
Created November 28, 2017 15:38
Отключаем сбор статистики и http://bitrix.info/bx_stat на всех страницах сайта

В файл /bitrix/.settings_extra.php нужно добавить:

<?php
return array(
	'analytics_counter' => array(
		'value' => array(
			'enabled' => false
		),
 'readonly' =&gt; false,
@valgur
valgur / install_cuda.sh
Last active May 10, 2024 07:01
Automatically install CUDA, cuDNN and appropriate drivers
#!/bin/bash
set -e -u -o pipefail -o noglob
set -x
CUDA_VERSION=${CUDA_VERSION:-10.2}
CUDNN_VERSION=${CUDNN_VERSION:-7}
TENSORRT_VERSION=${TENSORRT_VERSION:-7}
UBUNTU_RELEASE=$(lsb_release -rs) # 18.04
DISTRO=ubuntu${UBUNTU_RELEASE//\./} # ubuntu1804

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

@jtrive84
jtrive84 / b_gibbs_lm.md
Last active May 10, 2024 06:51
Gibbs Sampling for Bayesian Linear Regression

Gibbs Sampling for Bayesian Linear Regression

MCMC methods can be used to estimate linear regression models. In what follows, we derive the distributional forms and algorithms associated with two Gibbs sampling approaches: the full conditionals approach and the composition method.

The dataset is available here and represents refrigerator price as a function of available features. Our objective is to estimate PRICE as a function of ECOST, FSIZE, SHELVES and FEATURES, where:

  • PRICE: Response, cost of refrigerator.
@chinglamchoi
chinglamchoi / oid_to_yolo.py
Created January 1, 2020 03:43 — forked from EscVM/oid_to_yolo.py
Translate OIDv4 labels to YOLO format
# ---------------
# Date: 7/25/2018
# Place: Biella
# Author: EscVM
# Project: OID v4 to Yolo
# ---------------
import os
from tqdm import tqdm