Skip to content

Instantly share code, notes, and snippets.

View devvspaces's full-sized avatar
👩‍💻
Blockchain and Web3

Ayanwola Ayomide devvspaces

👩‍💻
Blockchain and Web3
View GitHub Profile
@karpathy
karpathy / add_to_zshrc.sh
Created August 25, 2024 20:43
Git Commit Message AI
# -----------------------------------------------------------------------------
# AI-powered Git Commit Function
# Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gcm` command. It:
# 1) gets the current staged changed diff
# 2) sends them to an LLM to write the git commit message
# 3) allows you to easily accept, edit, regenerate, cancel
# But - just read and edit the code however you like
# the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/
gcm() {
@Emmanuerl
Emmanuerl / go-chat.MD
Last active March 16, 2024 12:15
a snapchat inspired backend chat application
@shawty
shawty / adduser.sh
Created July 28, 2022 12:01
Provisioning Scripts that I use for managing containers running DOTNET 6 projects on LXD/LXC installs under Ubuntu server.
#!/bin/bash
if [ -z "$1" ]
then
echo "User name must be provided on first parameter"
echo "USAGE: createuser.sh <username> <containername>"
exit 1
fi
if [ -z "$2" ]
then
@devvspaces
devvspaces / action.md
Created July 20, 2022 21:32
What is github action all about?

This is an example of a github action that automatically merges master branch with production branch Use cases of this is wide:

  1. Example is automatically running test on your source code and if they passed, you can automatically build the file and push it to production, and then deploy the production branch on an online server

Learn more about github actions here

name: Update Production
@brandtg
brandtg / perf-tool.py
Last active March 19, 2024 22:58
A script that runs Netflix's "Linux Performance Analysis in 60,000 Milliseconds"
#!/usr/bin/env python3
#
# A script that runs the commands to perform Netflix's
# "Linux Performance Analysis in 60,000 Milliseconds"
#
# (http://techblog.netflix.com/2015/11/linux-performance-analysis-in-60s.html)
#
# First install Performance monitoring tools for Linux
# `apt install sysstat`
#
@keeguon
keeguon / countries.json
Created April 5, 2012 11:11
A list of countries in JSON
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},