Skip to content

Instantly share code, notes, and snippets.

View rjalexa's full-sized avatar
💭
Learning python through little projects

Robert Alexander rjalexa

💭
Learning python through little projects
  • Rome, Italy
View GitHub Profile
@staberas
staberas / interactive_websearch_chat.py
Last active March 23, 2024 15:21
interactive_websearch_chat.py
# This script requires to have some basic Python skills
# - Install python dependencies (thanks to TitwitMuffbiscuit on reddit) :
# pip install nltk beautifulsoup4 googlesearch-python trafilatura wolframalpha
#
# If you get this error "Resource punkt not found", it's because Punkt sentence tokenizer for Natural Language Toolkit is missing.
# Edit the file and add this before
# from nltk.tokenize import word_tokenize ,
# it will download the necessary english.pickle:
# import nltk
# nltk.download('punkt')
@reinvanoyen
reinvanoyen / terminal-prompt-git-branch-zsh.md
Last active April 12, 2024 22:18
Add Git Branch Name to Terminal Prompt (MacOS zsh)

Add Git Branch Name to Terminal Prompt (zsh)

Updated for MacOS with zsh

  • Catalina
  • Big Sur
  • Monterey
  • Ventura
  • Sonoma

screenshot

@kevin-smets
kevin-smets / 1_kubernetes_on_macOS.md
Last active January 6, 2024 22:04
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

@vratiu
vratiu / .bash_aliases
Last active April 22, 2024 01:54
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@damienlabat
damienlabat / GeonamesFCodes.json
Created February 5, 2013 16:26
GeoNames Feature Codes JSON
{"ADM1":["first-order administrative division","a primary administrative division of a country, such as a state in the United States"],"ADM1H":["historical first-order administrative division","a former first-order administrative division"],"ADM2":["second-order administrative division","a subdivision of a first-order administrative division"],"ADM2H":["historical second-order administrative division","a former second-order administrative division"],"ADM3":["third-order administrative division","a subdivision of a second-order administrative division"],"ADM3H":["historical third-order administrative division","a former third-order administrative division"],"ADM4":["fourth-order administrative division","a subdivision of a third-order administrative division"],"ADM4H":["historical fourth-order administrative division","a former fourth-order administrative division"],"ADM5":["fifth-order administrative division","a subdivision of a fourth-order administrative division"],"ADMD":["administrative division","an adm
@pdesterlich
pdesterlich / nomi_italiani.txt
Last active January 6, 2024 11:15
lista nomi italiani
-- DISCLAIMER --
il presente elenco consiste in una raccolta di nomi presenti sul territorio italiano (non necessariamente "italiani")
viene generato prendendo processando automaticamente uno o più archivi anagrafici e non è controllato in alcun modo
è pertanto altamente possibile che ci siano errori o refusi
non è nè pretende di essere un elenco omnicomprensivo di tutti i nomi esistenti
----------------
abaco
abbondanza
abbondanzia