This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $XDG_CONFIG_HOME/k9s/plugins.yaml | |
plugins: | |
jqlogs: | |
shortCut: Ctrl-J | |
confirm: false | |
description: "Logs (jq)" | |
scopes: | |
- pod | |
command: sh | |
background: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dNOPAUSE -dQUIET -dBATCH -dPrinted=false -sOutputFile=foo-compressed.pdf foo.pdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# requires python3 | |
# replace <path> | |
source <(python <<EOF | |
with open('<path>', 'r') as fi: | |
content = fi.readlines() | |
trans = [line.strip().replace(': ', '=').replace('\'', '"') for line in content if line.strip() and line.strip()[0] != '#'] | |
envs = '\n'.join([f'export {line}' for line in trans]) | |
print(envs) | |
EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set user name | |
git config --global user.name "Ammar Najjar" | |
# set user email | |
git config --local user.email <email> | |
# set user sign key -S | |
git config --local user.signingkey <key> | |
# current branch name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RED='\033[0;31m' | |
YELLOW='\033[0;33m' | |
LIGHT_GREEN='\033[0;32m' | |
LIGHT_GRAY='\033[0;37m' | |
NORMAL='\033[0m' | |
function prompt_right() { | |
echo -e "${LIGHT_GRAY}\\\t${NORMAL}" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface SeatingGroup { | |
id: string; | |
name: string; | |
freeSeats: number; | |
} | |
interface Customer { | |
id: number; | |
name: string; | |
tag: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- => Header ---------------------- {{{ | |
-- Fie: init.lua | |
-- Author: Ammar Najjar <[email protected]> | |
-- Description: My neovim lua configurations file | |
-- }}} | |
-- => General ---------------------- {{{ | |
--- Change leader key to , | |
vim.g.mapleader = ',' | |
local editor_root=vim.fn.expand("~/.config/nvim/") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from gql import Client | |
from gql import gql | |
from gql.transport.requests import RequestsHTTPTransport | |
from typing import Any | |
from typing import Dict | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
render() { | |
return ( | |
<div> | |
<div className="board-row"> | |
{this.renderSquare(0)} | |
{this.renderSquare(1)} | |
{this.renderSquare(2)} | |
</div> | |
<div className="board-row"> | |
{this.renderSquare(3)} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"types": [ | |
"feat", | |
"fix", | |
"docs", | |
"style", | |
"refactor", | |
"perf", | |
"test", | |
"build", |
NewerOlder