Step 1
If any version of postman is installed we need to remove it
sudo rm -rf /opt/Postman
Step 2
--- | |
import Header from "../components/Header.astro"; | |
import BaseHead from "../components/BaseHead.astro"; | |
import { SITE_TITLE, SITE_DESCRIPTION } from '../consts'; | |
import markdownIt from 'markdown-it'; | |
import shiki from 'shiki' | |
const response = await fetch('https://raw.githubusercontent.com/shikijs/shiki/main/README.md'); | |
// const response = await fetch('https://raw.githubusercontent.com/wiki/adam-p/markdown-here/Markdown-Cheatsheet.md'); | |
const markdownResponse = await response.text(); |
<!-- paste svg(s) here --> |
from instagram_private_api import Client, ClientCompatPatch | |
from instagram_private_api_extensions import pagination | |
import json, time | |
user_name = 'UserName' | |
password = 'PassWord' | |
api = Client(user_name, password) | |
items=[] |
{ | |
"Jest test component": { | |
"scope": "typescriptreact", | |
"prefix": "sdt", | |
"body": [ | |
"import {render, act} from \"@/tests/testUtil\";\nimport userEvent from \"@testing-library/user-event\"; \n\n", | |
"describe(\"${TM_FILENAME_BASE/(.test)//}\", () => {", | |
"\t test(\"$1\", () => {", | |
"\t\t$2});", | |
"\t});" |
ccd: Change current directory to subfolders | |
cd (fd --type d . | fzf) | |
Batch rename files in fish | |
for file in *.md | |
mv -v -- "$file" (basename $file .md).txt | |
end |
#!/usr/bin/env bash | |
# Change file location to your preferred path | |
filelocation="$HOME/Notes/bookamarks.txt" | |
# Thanks to https://stackoverflow.com/a/3184819 | |
regex='^(https?|ftp|file)://[-A-Za-z0-9\+&@#/%?=~_|!:,.;]*[-A-Za-z0-9\+&@#/%=~_|]$' | |
while clipnotify; do | |
text=$(xclip -o) | |
if [[ $(xclip -o) ]];then |
sudo -u postgres psql
postgres=# create database mydb;
postgres=# create user myuser with encrypted password 'mypass';
postgres=# grant all privileges on database mydb to myuser;
const content = document.querySelectorAll('.entry-content > p > a'); | |
content.forEach(e => console.log(e.href)) |