Skip to content

Instantly share code, notes, and snippets.

View blacksmithop's full-sized avatar
🫠
Preparing

Abhinav blacksmithop

🫠
Preparing
View GitHub Profile
co = checkout
cob = checkout -b
coo = !git fetch && git checkout
br = branch
brd = branch -d
brd = branch -D
merged = branch --merged
st = status
aa = add -A .
cm = commit -m
@blacksmithop
blacksmithop / Prepare_Code_Dataset.sh
Created September 18, 2024 12:12
Create a dataset folder with all your github code
#!/usr/bin/env bash
# Constants
GREEN='\033[0;32m'
RED='\033[0;31m'
YELLOW='\033[0;33m'
NC='\033[0m' # No Color
# ---
CODE_DIRECTORY='code_dataset'
# Get GitHub repo information
@blacksmithop
blacksmithop / bookmarks.json
Created September 18, 2024 03:32
My bookmarks
[
{"title":"golang-for-python","url":"https://golang-for-python-programmers.readthedocs.io/en/latest/","tags":["learning"]},
{"title":"Titanic Dataset Analysis","url":"https://www.linkedin.com/pulse/what-i-learned-analyzing-famous-titanic-dateset-murilo-gustineli/","tags":["learning"]},
{"title":"The Transformer Model","url":"https://machinelearningmastery.com/the-transformer-model/","tags":["learning"]},
{"title":"2205.13504.pdf","url":"https://arxiv.org/pdf/2205.13504.pdf","tags":["learning"]},
{"title":"Stacks","url":"https://stackoverflow.design/product/guidelines/using-stacks/#how-to-best-use-stacks","tags":["learning","useful"]},
{"title":"What is git stash?","url":"https://www.theserverside.com/definition/git-stash","tags":["learning","useful","Git"]},
{"title":"[ide] Git Bash","url":"https://medium.com/danielpadua/git-bash-with-vscode-593d5998f6be","tags":["learning","useful","Git"]},
{"title":"speciific git ignore","url":"https://stackoverflow.com/questions/987142/make-gitignore-ignor
@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