Here is some code on how to embed Base64 in HTML:
<img src="data:image/jpeg;base64,BASE64_STRING"/>
for var in $(printenv); do env_arr="${env_arr}{\"key\":\"${var%%=*}\",\"value\":\"${var#*=}\"},"; done | |
export ENV_JSON=[${env_arr%,}] | |
echo "${ENV_JSON}" |
const requestData = { | |
grant_type: 'client_credentials', | |
client_id: pm.environment.get('bitbucket_client_id'), | |
client_secret: pm.environment.get('bitbucket_client_secret'), | |
} | |
const payload = Object | |
.entries(requestData) | |
.map(([key, value]) => `${key}=${value}`,) | |
.join('&'); |
import requests | |
def delete_bitbucket_project(access_token: str, account: str, project_key: str): | |
project_repositories = [] | |
default_api_headers = { | |
'authorization': f'Bearer {access_token}' | |
} | |
current_page = 1 |
(() => { | |
const preEl = document.querySelector("pre"); | |
const jsonPreEl = document.createElement('pre'); | |
jsonPreEl.innerText = [ | |
"Your pretty json 😉", | |
'', | |
JSON.stringify(JSON.parse(document.querySelectorAll("pre")[0].textContent), null, 2), | |
].join('\n'); | |
#!/bin/bash | |
npx nodemon --watch './**/*' --ext '.go' --signal SIGTERM --exec 'go' run ./cmd/ | |
# or whatever creepy folder you entry point is |
#!/bin/bash | |
$AWS_ECR_ENDPOINT="" | |
echo "export AWS_DEFAULT_REGION=us-east-1" >> ~/.bashrc | |
source ~/.bashrc | |
# Docker installation | |
sudo whoami |
export interface TreeType { | |
name: string; | |
children: TreeType[]; | |
} | |
const originalTree: TreeType = { | |
name: "root", | |
children: [ | |
{ children: [], name: "products" }, | |
{ |
Write-Output "Gonna press Enter for u 😎" | |
Timeout /T 1800 | |
$wshell = New-Object -ComObject wscript.shell; | |
$wshell.AppActivate('Title') | |
Sleep 1 | |
$wshell.SendKeys('~') |