Skip to content

Instantly share code, notes, and snippets.

View jeremyfiel's full-sized avatar
🏒

Jeremy Fiel jeremyfiel

🏒
View GitHub Profile
@jeremyfiel
jeremyfiel / gitlog-pretty-format.sh
Created July 8, 2022 18:57
git log pretty formatting
[format]
pretty = format:%C(auto, yellow)%h %C(auto, magenta)(%G?) %C(auto, cyan)%D \n%C(auto, cyan)%ar %C(auto, green)%aN \n%C(auto, red)%s \n\n%C(auto, reset)%b\n\n
{
"openapi": "3.0.3",
"servers": [
{
"url": "https://__host__/"
}
],
"info": {
"description": "Test api",
"version": "1.0.0",
{
"openapi": "3.0.3",
"servers": [
{
"url": "https://__host__/"
}
],
"info": {
"description": "Test api",
"version": "1.0.0",
#!/bin/bash
PSQL='psql -U freecodecamp -d periodic_table --tuples-only -c'
if [[ $1 ]]
then
ELEMENT=$1
else
echo "Please provide an element as an argument."
@jeremyfiel
jeremyfiel / insert_data.sh
Created October 20, 2021 17:30
learn-worldcup-database -fcc
#! /bin/bash
if [[ $1 == "test" ]]
then
PSQL="psql --username=postgres --dbname=worldcuptest -t --no-align -c"
else
PSQL="psql --username=freecodecamp --dbname=worldcup -t --no-align -c"
fi
# Do not change code above this line. Use the PSQL variable above to query your database.
@jeremyfiel
jeremyfiel / gist:e9dccbd9a706052a29f0bef266ea6f2f
Created November 15, 2019 05:32
get all github repos from github api
//grep -e matches a string / returns "ssl_url"
curl 'https://api.github.com/users/jeremyfiel/repos' | grep -e 'ssh'