Skip to content

Instantly share code, notes, and snippets.

View yebt's full-sized avatar
🌱
Whoa. expectant and in awe 🥷🏻

Eduardo Bravo yebt

🌱
Whoa. expectant and in awe 🥷🏻
View GitHub Profile
@gndx
gndx / head
Created February 9, 2023 22:59
Head - Astro
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- Primary Meta Tags -->
<title>{title}</title>
<meta name="title" content={title} />
<meta name="description" content={description} />
<link rel="canonical" href={canonicalURL} />
@bashbunni
bashbunni / .zshrc
Created January 4, 2023 16:28
CLI Pomodoro for Linux
# study stream aliases
# Requires https://github.com/caarlos0/timer to be installed. spd-say should ship with your distro
declare -A pomo_options
pomo_options["work"]="45"
pomo_options["break"]="10"
pomodoro () {
if [ -n "$1" -a -n "${pomo_options["$1"]}" ]; then
val=$1
function showcolors256() {
local row col blockrow blockcol red green blue
local showcolor=_showcolor256_${1:-bg}
local white="\033[1;37m"
local reset="\033[0m"
echo -e "Set foreground color: \\\\033[38;5;${white}NNN${reset}m"
echo -e "Set background color: \\\\033[48;5;${white}NNN${reset}m"
echo -e "Reset color & style: \\\\033[0m"
echo
@yebt
yebt / get_composer_deps.py
Last active May 17, 2024 13:24
This script was created as an helps to recover the require dependencies inside vendor directory of project, if you lost the main composer.json
#!/bin/python
# -*- coding: utf-8 -*-
import json
import sys
# Constant vars
if len(sys.argv) != 2:
print('Error!! -- No file specified ')
print('\t get_composer_deps.py <path/to/vendor/composer/installed.json>')
@dianjuar
dianjuar / i3-shortcuts-screenshot.md
Last active July 9, 2024 11:26
My i3 shortcuts to take screenshots

Requirements

  • maim
  • xclip

Set-up

Set this on your i3 config file ~/.i3/config

# Screenshots
@pedrouid
pedrouid / setup-ssl.md
Last active July 23, 2024 15:07
Setup SSL with NGINX reverse proxy

Get a Free SSL Certificate With Let’s Encrypt

Let’s Encrypt is a free, automated, and open Certificate Authority.

  1. Install tools for using the Let's Encrypt certificates using Certbot
  sudo apt-get update \
  sudo apt-get install software-properties-common
@rashad612
rashad612 / ffd.desktop
Created June 15, 2015 14:54
Firefox Developer Edition | Desktop File | Fedora
[Desktop Entry]
Version=1.0
Name=Firefox Developer Edition
Comment=Browse the Web
Exec=/opt/firefox/firefox --class="firefox-developer" -P dev-edition-default %u
StartupNotify=true
StartupWMClass=firefox-developer
Icon=/opt/firefox/browser/icons/mozicon128.png
Terminal=false
@anytizer
anytizer / css-debug.css
Created December 25, 2013 08:31
CSS Debugging by borders coloring of the tags
http://yysource.com/2011/03/debugging-with-css-outline-all-elements/
* { outline: 2px dotted red }
* * { outline: 2px dotted green }
* * * { outline: 2px dotted orange }
* * * * { outline: 2px dotted blue }
* * * * * { outline: 1px solid red }
* * * * * * { outline: 1px solid green }
* * * * * * * { outline: 1px solid orange }
* * * * * * * * { outline: 1px solid blue }
@pinceladasdaweb
pinceladasdaweb / gist:6662290
Created September 22, 2013 18:04
Get Youtube Video Thumbnail with JavaScript.
var Youtube = (function () {
'use strict';
var video, results;
var getThumb = function (url, size) {
if (url === null) {
return '';
}
size = (size === null) ? 'big' : size;