Skip to content

Instantly share code, notes, and snippets.

View kibernick's full-sized avatar
🦾
2024 is your year!

Nick Rankovic kibernick

🦾
2024 is your year!
View GitHub Profile
@kibernick
kibernick / install_psycopg2_mac_m1.md
Created September 8, 2022 20:43 — forked from bruno-uy/install_psycopg2_mac_m1.md
Install psycopg2 in Mac M1

Install psycopg2 in Mac M1

Error while installing through pip install psycopg2 looks like this:

Please add the directory containing pg_config to the PATH

or specify the full executable path with the option (...)

Reference to the solution here.

@kibernick
kibernick / minikube.md
Created August 5, 2021 16:20 — forked from rahulkumar-aws/minikube.md
Install/Uninstall Minikube from Mac
minikube stop; minikube delete
docker stop $(docker ps -aq)
rm -r ~/.kube ~/.minikube
sudo rm /usr/local/bin/localkube /usr/local/bin/minikube
systemctl stop '*kubelet*.mount'
sudo rm -rf /etc/kubernetes/
docker system prune -af --volumes
@kibernick
kibernick / install_pyenv.sh
Last active June 12, 2019 11:39 — forked from jmvrbanac/install_pyenv.sh
Install pyenv on Ubuntu
#!/bin/bash
sudo apt-get install git python-pip make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl
if [ ! -d "~/.pyenv" ]; then
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
fi
if [ ! -d "~/.pyenv/plugins/pyenv-virtualenv" ]; then
git clone https://github.com/pyenv/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
@kibernick
kibernick / dynamic_cases.py
Created February 10, 2014 11:40
MongoDB in Python through MongoEngine - playing with DynamicDocuments and instantiating different types of Documents in the same collection
from mongoengine import Document, DynamicDocument
class AppelateCase(Document):
appelate_blob = StringField()
class BankruptcyCase(Document):
bankrupcy_blob = StringField()
class MyCase(DynamicDocument):
@kibernick
kibernick / directives.js
Created February 7, 2014 13:19
Angular.js directive for manipulating data in the form of an array of strings (e.g. address lines, etc.)
myApp.directive("testing", [function() {
return {
restrict: "E",
templateUrl: "testing.html",
link: function(scope, element, attrs) {
scope.logIt = function() {
console.log(scope.someobj);
};
scope.addLine = function() {
scope.someobj.push("");