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
alias l='exa' | |
alias la='exa -a' | |
alias ll='exa -lah' | |
alias ls='exa --color=auto' |
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
"Bek Brace @ 30.11.2022 | |
:set relativenumber | |
:set number | |
:set autoindent | |
:set tabstop=4 | |
:set shiftwidth=4 | |
:set smarttab | |
:set softtabstop=4 | |
:set mouse=a |
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
# Get editor completions based on the config schema | |
"$schema" = 'https://starship.rs/config-schema.json' | |
# Inserts a blank line between shell prompts | |
add_newline = true | |
# Replace the '❯' symbol in the prompt with '➜' | |
[character] # The name of the module we are configuring is 'character' | |
success_symbol = '[➜](bold green)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green' | |
error_symbol = "[✖](bold red) " |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
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 tabsize 4 | |
set tabstospaces | |
set autoindent | |
set trimblanks | |
set linenumbers | |
set constantshow | |
set titlecolor white,green | |
set keycolor cyan | |
set functioncolor cyan | |
set numbercolor yellow |
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
Overview of nano's shortcuts | |
The editor's keystrokes and their functions | |
File handling | |
Ctrl+S Save current file | |
Ctrl+O Offer to write file ("Save as") | |
Ctrl+R Insert a file into current one | |
Ctrl+X Close buffer, exit from nano | |
Editing |
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
First, delete package-lock.json and node modules | |
Second, run the command : npm cache clean --force | |
Next, run the command : npm install | |
Finally, you should be able to run your react server : npm start |
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
using namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
# S way | |
# oh-my-posh --init --shell pwsh --config ~/jblab_2021.omp.json | Invoke-Expression | |
# S theme | |
# oh-my-posh --init --shell pwsh --config C:\Users\amirb\AppData\Local\Programs\oh-my-posh\themes\ohmyposhv3-v2.json | Invoke-Expression | |
# OMP way |
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
for fizzbuzz in range(51): | |
if fizzbuzz % 3 == 0 and fizzbuzz % 5 == 0: | |
print("fizzbuzz") | |
continue | |
elif fizzbuzz % 3 == 0: | |
print("fizz") | |
continue | |
elif fizzbuzz % 5 == 0: | |
print("buzz") | |
continue |
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
# Program to display the Fibonacci sequence up to n-th term | |
nterms = int(input("How many terms? ")) | |
# first two terms | |
n1, n2 = 0, 1 | |
count = 0 | |
# check if the number of terms is valid | |
if nterms <= 0: |
NewerOlder