Skip to content

Instantly share code, notes, and snippets.

View EngPeterShaker's full-sized avatar

Peter Shaker EngPeterShaker

View GitHub Profile
Uppenbarelseboken 21:22-23, 25 B2000 Bi.
22 Nagot tempel sag jag inte i staden, ty Herren Gud, allhärskaren, är dess tempel, han och Lammet. 2 Och staden behövde varken sol eller mane för att fa ljus, ty Guds härlighet lyser över den, och Lammet är dess lampa,
25 Och dess portar skall aldrig stängas om dagen - natt blir det inte där.
@EngPeterShaker
EngPeterShaker / iTerm2.md
Created April 26, 2023 10:04 — forked from soifou/iTerm2.md
iTerm2 Shortcuts

iTerm2 Shortcuts

Tab navigation

  • open new tab: Cmd + t
  • next tab: Cmd + Shift + ]
  • previous tab: Cmd + Shift + [

Pane navigation

@EngPeterShaker
EngPeterShaker / .gitconfig
Created September 12, 2022 10:52 — forked from 0livare/.gitconfig
My git alias list. Running 'git alias' will pretty-print these commands to the terminal.
# Some options that may or may not be applicable to you
[user]
name = Zach Posten
email = zach@posten.io
[push]
default = upstream
[core]
autocrlf = input # Force replacing CRLF line endings with LF
ignorecase = false
[merge]
@EngPeterShaker
EngPeterShaker / readme.md
Created July 26, 2021 15:47 — forked from benstr/readme.md
Gist Markdown Cheatsheet

#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6


Paragraph

Ubuntu To Mac OS Mojave theme

Mc OS Mojave Ubuntu Look alike


Pre-requisites

  • sudo apt update
  • sudo apt install gnome-tweaks
  • sudo apt-get install gir1.2-clutter-1.0 gir1.2-clutter-gst-3.0 gir1.2-gtkclutter-1.0
@EngPeterShaker
EngPeterShaker / yarn.md
Created January 20, 2021 15:26
Useful aliases for Yarn

Basic Commands

alias y="yarn"
alias yi="yarn init -y"

Install And Remove Packages

* `https://githowto.com/aliases`
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.br branch
git config --global alias.pl pull
git config --global alias.ps push
git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"
git config --global alias.type 'cat-file -t'
console.log('%cHellooo',"font-weight:bold ; color: cyan ; font-size:18px")
@EngPeterShaker
EngPeterShaker / longestWord.js
Created February 25, 2020 11:18
find longest word
const str = sen.replace(/[^a-zA-Z ]/g, ""); // replace strange characters
const words = str.split(' '); // convert to array of strings
const sorted = words.sort((a, b) => b.length - a.length); // sort descending according string length
return sorted[0]
@EngPeterShaker
EngPeterShaker / function that returns a function
Created April 7, 2019 09:59
function that returns a function that returns a function
function a(a) {
function b(b) {
function c(c){
return a * b * c;
}
return c;
}
return b;
}
console.log(a(33)(22)(2)) // a* b *c