Skip to content

Instantly share code, notes, and snippets.

View blacksmithop's full-sized avatar
😉
Preparing

Abhinav blacksmithop

😉
Preparing
View GitHub Profile
@blacksmithop
blacksmithop / docker-compose.yml
Created September 11, 2024 08:59
Docker compose for Ollama
version: '3.8'
services:
app:
build: .
ports:
- 8000:8000
- 5678:5678
volumes:
- .:/code
command: uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload
@blacksmithop
blacksmithop / ruby_revealer.sh
Created September 11, 2024 06:51
A recovered copy of geoff-codes ruby_revealer.sh
#!/usr/bin/sudo sh
## ruby_revealer.sh -- decrypt obfuscated GHE .rb files. 2.0.0 to 2.3.1+.
## From `strings ruby_concealer.so`:
##
## > This obfuscation is intended to discourage GitHub Enterprise customers
## > from making modifications to the VM.
##
## Well, good, as long as its not intended to discourage *me* from doing this!
@blacksmithop
blacksmithop / docker-compose.yml
Created August 13, 2024 11:51
Ollama docker compose custom
version: '3.8'
services:
app:
build: .
ports:
- 8000:8000
- 5678:5678
volumes:
- .:/code
command: uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload
CHEAT SHEET
1. Database Creation
CREATE DATABASE SampleGraphDatabase
This creates a database named SampleGraphDatabase
2. View data
{
"openapi": "3.1.0",
"info": {
"title": "FastAPI",
"version": "0.1.0"
},
"paths": {
"/": {
"get": {
"summary": "Root",
(function(sttc){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
'use strict';var aa={},n=this||self;function ba(a){a=a.split(".");for(var b=n,c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b}function ca(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"}function da(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ea(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function fa(a){return Object.prototype.hasOwnProperty.call(a,ha)&&a[ha]||(a[ha]=++ia)}
var ha="closure_uid_"+(1E9*Math.random()>>>0),ia=0;function ja(a,b,c){return a.call.apply(a.bind,arguments)}function ka(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}
function la(a,b,c){la=Function.prototype.bind&&-1!=Function.prototy
@blacksmithop
blacksmithop / songs.md
Last active April 10, 2024 06:20
Songs that evoke anemoia

Anemoia

Songs that make you nostalgic for a time or a place you haven't been in

Achilles Come Down Youtube

Soldier, Poet, King Youtube

@blacksmithop
blacksmithop / Readme.md
Created March 6, 2023 09:30
Text to Speech demo (with pyttsx3 & streanlit)

image

@blacksmithop
blacksmithop / custom-ner-model-training.ipynb
Last active March 1, 2023 11:53
custom-ner-model-training.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@blacksmithop
blacksmithop / requirements.txt
Created November 21, 2022 10:56
Basic requirements of (almost) every Data Science project
pandas
openpyxl
spacy