Discover gists
This file contains 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
" _ _ " | |
" _ /|| . . ||\ _ " | |
" ( } \||D ' ' ' C||/ { % " | |
" | /\__,=_[_] ' . . ' [_]_=,__/\ |" | |
" |_\_ |----| |----| _/_|" | |
" | |/ | | | | \| |" | |
" | /_ | | | | _\ |" | |
It is all fun and games until someone gets hacked! |
This file contains 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
# The previous part of this tutorial is at https://gist.github.com/janakiramm/55d2d8ec5d14dd45c7e9127d81cdafcd | |
from vertexai.language_models import TextEmbeddingModel | |
from google.cloud import aiplatform | |
import vertexai | |
from vertexai.preview.generative_models import GenerativeModel, Part | |
import json | |
import os | |
project=”YOUR_GCP_PROJECT” |
This file contains 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
###Enable Google Cloud APIs and login with your credentials | |
#gcloud services enable compute.googleapis.com aiplatform.googleapis.com storage.googleapis.com | |
#gcloud auth application-default login | |
###Install required Python modules | |
#pip install pypdf2 | |
#pip install google-cloud-storage | |
#pip install google-cloud-aiplatform | |
#pip install jupyter |
- remote SSH shell on macOS does not use
/etc/paths
- this is not an issue of ansible, it is the way macOS processes config files on remote shells:
- see
ssh localhost echo \$PATH
- ...if not specified otherwise and macOS does not read any startup files
- example:
[...]localhost '/bin/sh -c '"'"'sudo -H -S -n -u test /bin/sh -c '"'"'"'"'"[...]
- even
/bin/bash
does not read any startup files by default
This file contains 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
#!/usr/bin/env bash | |
# checck if pidof exists | |
PIDOF="$(which pidof)" | |
# and if not - install it | |
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof | |
# find app in default paths | |
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS | |
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS |
This file contains 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
javascript: fbid = /share_fbid":"(\d+)"/g.exec([...document.getElementsByTagName("script")].filter(x => x.innerHTML.includes("share_fbid"))[0].innerHTML)[1]; alert(location.href.split("/").slice(0, -1).join("/") + "/" + fbid); | |
// can be used in console / bookmark / address bar (remember to add back javascript if the browser strips it automatically) |
This file contains 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
1. In PostgreSQL database | |
1.1 Create user | |
create user <user_name> with password '<password>'; | |
1.2 Create database | |
create database <db_name> with owner <user_name> encoding 'UTF8'; | |
2. Edit <sonar_install_dir>/conf/sonar.properties |
This file contains 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
/// DEBUG SCREEN CRACK (RECOMMENDED) /// | |
1.7-1.20 (Win32-UWP-Android): | |
https://cdn.discordapp.com/attachments/1090766119326994502/1102104352530898975/debug_screen.json | |
Copy this file to: "Minecraft Education Edition/data/resource_packs/vanilla/ui" and replace it | |
/// PTR CRACK (Partially fixed since 1.18.42) /// | |
1.19.52.0 (Win32): |
NewerOlder