Skip to content

Instantly share code, notes, and snippets.

# Clone the repo
git clone https://github.com/imartinez/privateGPT
cd privateGPT
# Install Python 3.11
pyenv install 3.11
pyenv local 3.11
# Install dependencies
poetry install --with ui,local
@M3G4THEKING
M3G4THEKING / sc_mon.sh
Created September 28, 2020 22:26 — forked from afriza/sc_mon.sh
Shoutcast Scripts to during start up and to keep it running
#!/bin/sh
#!/usr/bin/perl
### Shoutcast (SC_SERV)
# Taken from: http://forums.winamp.com/showthread.php?postid=2487604
## SC_SERV Server 1
if ( ! ps auxwww | grep "/home/user/sc_serv/sc_serv /home/user/sc_serv/sc_serv.conf" | grep -v grep )
then echo "Shoutcast not running..."
@M3G4THEKING
M3G4THEKING / gist:a9a3de135c1a9d3dec3fa3882095cf06
Created May 11, 2019 09:47 — forked from ctrl-freak/gist:9abb5aea0d89d7bd9df6a3d0ac08b73c
Android ADB `adb shell input keyevent` Codes
// http://stackoverflow.com/questions/7789826/adb-shell-input-events
0 --> "KEYCODE_0"
1 --> "KEYCODE_SOFT_LEFT"
2 --> "KEYCODE_SOFT_RIGHT"
3 --> "KEYCODE_HOME"
4 --> "KEYCODE_BACK"
5 --> "KEYCODE_CALL"
6 --> "KEYCODE_ENDCALL"
7 --> "KEYCODE_0"
@M3G4THEKING
M3G4THEKING / gist:91462191a956fc4930a42b3a3de6b618
Created February 15, 2019 21:16
iitc-plugin-ingressportalcsvexport@zetaphor.js
// ==UserScript==
// @id iitc-plugin-ingressportalcsvexport@zetaphor
// @name IITC Plugin: Ingress Portal CSV Export
// @category Information
// @version 0.0.2
// @description Exports portals to a CSV list. Modified for MAD!
// @include https://intel.ingress.com/intel*
// @match https://intel.ingress.com/intel*
// @grant none
// ==/UserScript==
@M3G4THEKING
M3G4THEKING / ingress-passcode.js
Created December 28, 2018 15:33 — forked from idealhack/ingress-passcode.js
ingress passcode auto run
// disable iitc plugin if it's on
// go to https://www.ingress.com/intel
// open console and paste in the code below, press enter
// join https://t.me/passcodes for more passcodes
// add jquery
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
@M3G4THEKING
M3G4THEKING / synck.txt
Created December 23, 2018 19:04
sync fork github
1. Clone your fork:
git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
2. Add remote from original repository in your forked repository:
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
3. Updating your fork from original repo to keep up with their changes:
git pull upstream master

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
<?php
$conn = mysql_connect("localhost", "USER", "PASSWORD") or die(mysql_error());
mysql_select_db("DB") or die(mysql_error());
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>POKEMON MAPS ONLY GYMS</title>
<style type="text/css">
<?php
$conn = mysql_connect("localhost", "USER", "PASSWORD") or die(mysql_error());
mysql_select_db("DATABASE") or die(mysql_error());
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Maps</title>
<style type="text/css">