Skip to content

Instantly share code, notes, and snippets.

View kid1412621's full-sized avatar
🤣
why there is no bug in known universe

kid1412621

🤣
why there is no bug in known universe
View GitHub Profile
#!/bin/bash
###
### my-script — does one thing well
###
### Usage:
### my-script <input> <output>
###
### Options:
### <input> Input file to read.
### <output> Output file to write. Use '-' for stdout.
@idleberg
idleberg / scoop.md
Last active November 29, 2023 05:43
Scoop Aliases

Common aliases for the scoop package manager

# Install app
scoop alias add i 'scoop install $args[0]' 'Install app'
scoop alias add add 'scoop install $args[0]' 'Install app'

# Uninstall app
scoop alias add rm 'scoop uninstall $args[0]' 'Uninstall an app'
scoop alias add remove 'scoop uninstall $args[0]' 'Uninstall an app'
@webdevel
webdevel / vim-cheat-sheet.md
Last active February 14, 2024 01:03
Vim Cheat Sheet

Vim Cheat Sheet

Vim is an advanced CLI based text editor. Many key combinations used in Vim are easily associated with a memorable phrase. One effective way to use Vim is to associate phrases with Operators, Text Objects and Motions. Then compose a phrase for what you want to do. Start with an Operator followed by a Text Object or Motion. Prefix an Operator, Command or Motion with a number/count to extend it.

Table of Contents
@easternHong
easternHong / StringUtils.java
Last active March 2, 2018 09:41
ByteArrayToHexString HexStringToByteArray
/**
* Utility method to convert a byte array to a hexadecimal string.
*
* @param bytes Bytes to convert
* @return String, containing hexadecimal representation.
*/
public static String ByteArrayToHexString(byte[] bytes) {
final char[] hexArray = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
char[] hexChars = new char[bytes.length * 2]; // Each byte has two hex characters (nibbles)
int v;
@patriques82
patriques82 / Vim cheat sheet
Last active June 4, 2023 08:04
Vim cheat sheet
Vim commands helpsheet
Contents
My .vimrc commands
Basics
Movement
Search and replacement
Buffers and Windows
Buffers
Windows
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 25, 2024 06:23
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname