Skip to content

Instantly share code, notes, and snippets.

@stevenswafford
stevenswafford / google-dorks
Created June 6, 2015 05:57
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!

Warpscon's List of Skins

Heres some social media links.

All of the skins that I have made/put together over the years.

* None of the artwork used is mine

@janakiramm
janakiramm / rag_gemini.py
Created March 8, 2024 06:14
Python code to implement RAG with Vertex AI Vector Search and Gemini Pro
# 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
@janakiramm
janakiramm / vector_search.py
Created March 8, 2024 05:39
Python Code to create Vertex AI Vector Search Index and Deploying it.
###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
@DrPsychick
DrPsychick / macOS-remote-environment.md
Last active May 9, 2024 18:36
macOS / OSX ansible path test

INFO

  • 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

ANSIBLE executes remote shell /bin/sh

  • ...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
@santaklouse
santaklouse / CrossOver.sh
Last active May 9, 2024 18:36
unlimited CrossOver trial (MacOS)
#!/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
@t-wy
t-wy / fb_post_id_script.js
Created November 28, 2022 12:22
Get Facebook canonical Post ID (share URL) without pfbid parameter
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)
@marek-panek
marek-panek / SonarQubeConfig.txt
Last active May 9, 2024 18:34
SonarQube configuration with PostgreSQL
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
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 9, 2024 18:33
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@OptiJuegos
OptiJuegos / Login Progress Pointer Paths.
Last active May 9, 2024 18:32
Login Progress Pointer Paths.
/// 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):