Skip to content

Instantly share code, notes, and snippets.

View shredthaGNAR's full-sized avatar

Me shredthaGNAR

View GitHub Profile
@shredthaGNAR
shredthaGNAR / roundedcornersgradientborders.css
Created March 27, 2023 19:46
[Rounded Corners Gradient Gradient Borders CSS] Create rounded corners with borders CSS code #css
.rounded-corners-gradient-borders {
width: 300px;
height: 80px;
border: double 4px transparent;
border-radius: 80px;
background-image: linear-gradient(white, white), radial-gradient(circle at top left, #f00,#3020ff);
background-origin: border-box;
background-clip: content-box, border-box;
}
@shredthaGNAR
shredthaGNAR / zshrc Cheatsheet
Last active November 22, 2022 01:54
zshrc-cheatsheet.md
# zshrc-cheat-sheet
### DIRECTORY
```bash
%d # full working directory
%/ # same as %d
%~ # working directory starting from the home dir
%x~ # same as %~but only shows x(int) amount of the lowest directories
```
### NAMES
```bash
@shredthaGNAR
shredthaGNAR / se_hotness_estimator.user.js
Created November 3, 2022 00:32 — forked from vyznev/se_hotness_estimator.user.js
Adds an estimate of "hotness" to the question sidebar, calculated using the formula from http://meta.stackexchange.com/a/61343. Questions with a high hotness value may be selected for the Hot Network Questions list. Note that the hotness value displayed by this script does not include the per-site scaling factors, and so does not match the "arbi…
// ==UserScript==
// @name Stack Exchange hotness estimator
// @namespace http://vyznev.net/
// @description Estimates how highly each Stack Exchange question would rank on the Hot Network Questions list
// @author Ilmari Karonen
// @version 0.4.3
// @license Public domain
// @homepageURL https://meta.stackexchange.com/a/284933
// @downloadURL https://gist.github.com/vyznev/bb2c1adb6e96eb65a87bab3822c74e81/raw/se_hotness_estimator.user.js
// @match *://*.stackexchange.com/questions/*
@shredthaGNAR
shredthaGNAR / WarezSearch.js
Created September 26, 2022 10:42 — forked from rickdog/WarezSearch.js
WarezSearch.js
/*
* This is a JavaScript Scratchpad.
*
* Enter some JavaScript, then Right Click or choose from the Execute Menu:
* 1. Run to evaluate the selected text (Ctrl+R),
* 2. Inspect to bring up an Object Inspector on the result (Ctrl+I), or,
* 3. Display to insert the result in a comment after the selection. (Ctrl+L)
*/
(function () {
var start = function () {
@shredthaGNAR
shredthaGNAR / .bash_profile
Created September 24, 2022 03:54 — forked from monkeymonk/.bash_profile
Mac OS - BASH Configuration and Aliases (eg. `sudo nano ~/.bash_profile`)
# BASH Configuration and Aliases
# source: http://natelandau.com/my-mac-osx-bash_profile/
# source: https://github.com/mathiasbynens/dotfiles
# Sections:
# 0. Execute Only Once (if you want)
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
@shredthaGNAR
shredthaGNAR / powerlevel9k.config
Created September 24, 2022 02:25 — forked from athityakumar/powerlevel9k.config
Powerlevel9k oh-my-zsh theme configuration for screenshots used in https://github.com/athityakumar/colorls
export ZSH=$HOME/.oh-my-zsh
export DEFAULT_USER='athityakumar'
TERM=xterm-256color
ZSH_THEME="powerlevel9k/powerlevel9k"
POWERLEVEL9K_MODE='awesome-fontconfig'
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_RPROMPT_ON_NEWLINE=true
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
@shredthaGNAR
shredthaGNAR / zsh-keyboard-shortucts.md
Created September 23, 2022 23:50 — forked from mkfares/zsh-keyboard-shortucts.md
Common zsh Keyboard Shortcuts on macOS Catalina

Common zsh Keyboard Shortcuts on macOS

Navigation

CTRL + A : Move the cursor to the beginning of the line
CTRL + E : Move the cursor to the end of the line
OPTION + Left Arrow : Move the cursor one word backward
OPTION + Right arrow : Move the cursor one word forward
Left Arrow : Move the cursor one character backward
Right Arrow : Move the cursor one character forward

@shredthaGNAR
shredthaGNAR / macos-lifehacks.md
Created September 23, 2022 23:33 — forked from mieky/macos-lifehacks.md
MacOS Lifehacks

Collection of useful tips & tricks to set up on a Mac.

Safari: bind cmd+alt+arrows to switch between previous/next tab

defaults write -app Safari NSUserKeyEquivalents '{
"Show Next Tab" = "@~\\U2192";
"Show Previous Tab" = "@~\\U2190";
}'
@shredthaGNAR
shredthaGNAR / createFile.applescript
Created September 23, 2022 22:40 — forked from avaccari/createFile.applescript
Apple script to create a file with desired extension in a folder. Can be used in automator to create an app or a quick action.
(*
* An script to create a new empty file based on the current selection in Finder:
* - if there is nothing selected, it will create the file in the currently display folder
* - if a file is selected, it will create the file in the folder of the selected file
* - if a folder is selected, it will create the file in the selected folder
* - if an application is selected, it will not create the file
*
* By default the name extention of the file is .txt. If the function key
* is pressed while calling this script, the user will be prompted for the
* extension.
@shredthaGNAR
shredthaGNAR / vscode-macos-context-menu.md
Created September 23, 2022 21:56 — forked from idleberg/vscode-macos-context-menu.md
“Open in Visual Studio Code” in macOS context-menu

Open in Visual Studio Code

  • Open Automator
  • Create a new document
  • Select Quick Action
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
    • your default shell should already be selected, otherwise use /bin/zsh for macOS 10.15 (”Catalina”) or later
    • older versions of macOS use /bin/bash
  • if you're using something else, you probably know what to do 😉