https://learning.oreilly.com/profile/
console.log(JSON.stringify(document.cookie.split(';').map(c => c.split('=')).map(i => [i[0].trim(), i[1].trim()]).reduce((r, i) => {r[i[0]] = i[1]; return r;}, {})))
# - bash history id | |
# - current pwd but only last folder | |
# - colored git branch | |
# v0.1 | |
PS1='\! ${PWD#"${PWD%/*/*}/"}\n\e[1;34m\W$(__git_ps1 " (%s)")] \e[m' |
while read line; do | |
printf "%s %s\n" "git mv $line https§§§__$line" | |
done <"$1" |
v 0.4
simple steps (I use) and share with you to absorb new concept using more active study
# Markdown Preview Plus
https://chrome.google.com/webstore/detail/markdown-preview-plus/febilkbfcbhebfnokafefeacimjdckglPS C:\Users\mario\Dropbox\0to100gcloud> git add . ; git commit -m "wip" ; git push |
https://help.dropbox.com/sync/ignored-files | |
Set-Content -Path 'C:\Users\yourname\Dropbox(Personal)\YourFileName.pdf' -Stream com.dropbox.ignored -Value 1 | |
or better | |
PS C:\Users\mario\Dropbox\gcloud_0to100> Set-Content ./.git:com.dropbox.ignored -value 1 | |
> https://www.dropboxforum.com/t5/Apps-and-Installations/Ignoring-a-directory-does-not-work/td-p/679164 |
import string | |
def apply_formatter(mk_format: str): | |
formatted_string = "" | |
if mk_format in ("header", "plain", "bold", "italic", "inline-code"): | |
if mk_format == "header": | |
while True: | |
header_lvl = int(input("Level:")) | |
if 1 <= header_lvl <= 6: |
camel = r""" | |
Switching on the camera in the camel habitat... | |
___.-''''-. | |
/___ @ | | |
',,,,. | _.'''''''._ | |
' | / \ | |
| \ _.-' \ | |
| '.-' '-. | |
| ', | |
| '', |
alias old_branch_delete='git fetch -p && git branch -vv | awk "/: gone]/{print \$1}" | xargs git branch -D' |
For your alias to be insert in commands bash, you need to include that in .bashrc, so take this example and to be happy:
echo alias g=\'git\' >> .bashrc
If you have a success with this command, you can now call git with 'g' command.
Now, if you like alias git, you can create your personal alias file, take this example and edit your file ~ / .gitconfig: