Skip to content

Instantly share code, notes, and snippets.

View jjaimealeman's full-sized avatar
😄
Having a great experience learning Vue3!

Jaime Aleman jjaimealeman

😄
Having a great experience learning Vue3!
View GitHub Profile
/* *******************************************************************************************
* TAILWIND.CSS
* DOCUMENTATION: https://tailwindcss.com/
* ******************************************************************************************* */
/*
* Available breakpoints
* --------------------
* sm: min-width: 640px;
* md: min-width: 768px;
@jjaimealeman
jjaimealeman / css
Created September 18, 2021 02:19
center a div
.parentDiv {
align-items: center;
display: flex;
justify-content: center;
}
@jjaimealeman
jjaimealeman / README.md
Created October 9, 2021 21:25 — forked from renestalder/README.md
Unfollow all on Facebook

Facebook: Unfollow people and pages

  1. Open news feed preferences on your Facebook menu (browser)
  2. Click people or pages
  3. Scroll down (or click see more) until your full list is loaded
  4. Run the script in your browser console

Facebook will block this feature for you while you use it, depending on how much entities you try to unfollow. It automatically unblocks in a couple of hours and you will be able to continue.

See comments section for more up-to-date versions of the script. The original script is from 2017 and will not work as is.

@jjaimealeman
jjaimealeman / meta-tags.html
Last active January 11, 2022 22:04
My collection of SEO and meta tags for web development.
<!-- DON'T FORGET TO EDIT THESE FOR YOUR WEBSITE. -->
<!--
Meta descriptions can be any length, but Google generally truncates snippets to ~155–160 characters. It's best to keep
meta descriptions long enough that they're sufficiently descriptive, so we recommend descriptions between 50–160 characters.
-->
<meta name="description" content="This is exactly 155 characters long. Lorem pisicing elit. Repellat, aspernatur quam? Dignissimos error, eum labore officia quibusdam aliquid, totam laborum." />
<!--
READ MORE ABOUT THE OPENGRAPH PROTOCOL HERE: https://ogp.me/
https://developers.facebook.com/docs/sharing/webmasters
@jjaimealeman
jjaimealeman / myscrot
Last active October 25, 2021 01:50
A simple bash screenshot script that writes my filename as I like.
#!/bin/bash
# learning to version control my gists
# /home/jammo/Pictures/myscrot.sh
# Sun Oct 24 06:09:37 PM MDT 2021
# I recently came across a default configuration in Pop OS 21.01 that I wanted to change.
# https://www.reddit.com/r/pop_os/comments/qdzj3h/how_can_i_change_the_default_screenshot_filename/
#
# I was unable to successfully make any edits using 'dconf-editor' because the setting doesn't exit.
@jjaimealeman
jjaimealeman / funsplash
Last active March 25, 2024 06:44
My simple Unsplash image downloader scripts with width & height options.
#!/bin/bash
# funsplash.sh
funsplash() {
clear
printf -- "\n ========================================\n"
printf -- "\n This script presents you with 2 options:\n"
printf -- "\n 1. Choose the width of your pic.\n"
printf -- "\n 2. Choose the height of your pic.\n"
@jjaimealeman
jjaimealeman / chat
Last active August 26, 2023 20:05
A shell script for accessing your ChatGPT via API call.
#!/bin/bash
GLOBIGNORE="*"
CHAT_INIT_PROMPT="You are ChatGPT, a Large Language Model trained by OpenAI. You will be answering questions from users. You answer as concisely as possible for each response (e.g. don’t be verbose). If you are generating a list, do not have too many items. Keep the number of items short. Before each user prompt you will be given the chat history in Q&A form. Output your answer directly, with no labels in front. Do not start your answers with A or Anwser. You were trained on data up until 2021. Today's date is $(date +%d/%m/%Y)"
SYSTEM_PROMPT="You are ChatGPT, a large language model trained by OpenAI. Answer as concisely as possible. Current date: $(date +%d/%m/%Y). Knowledge cutoff: 9/1/2021."
COMMAND_GENERATION_PROMPT="You are a Command Line Interface expert and your task is to provide functioning shell commands. Return a CLI command and nothing else - do not send it in a code block, quotes, or anything else, just the pure text CONTAINING ONLY THE COMMAND. If possible, return