Skip to content

Instantly share code, notes, and snippets.

View carloscabo's full-sized avatar
🏠
Working 100% remotely since 2018

Carlos Cabo carloscabo

🏠
Working 100% remotely since 2018
View GitHub Profile
@carloscabo
carloscabo / tags.ps1
Created March 10, 2024 08:19
Script de PowerShell para taggear, añadir la versión en un fichero y pushear al servidor release
# Script de PowerShell para taggear, añadir la versión en un fichero y pushear al servidor release
param (
[string]$command,
[string]$versionString
)
# Ruta del archivo
$file = ".\resources\views\includes\version.blade.php"
@carloscabo
carloscabo / reset.css
Created October 20, 2023 06:42 — forked from atelierbram/reset.css
CSS Typography reset
html, body, div, span, applet, object, iframe, table, caption,
tbody, tfoot, thead, tr, th, td, del, dfn, em, font, img, ins,
kbd, q, s, samp, small, strike, strong, sub, sup, tt, var,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr,
acronym, address, big, cite, code, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend {
vertical-align: baseline;
font-family: inherit;
font-weight: inherit;
font-style: inherit;
@carloscabo
carloscabo / input.scss
Created May 23, 2023 07:22
Generated by SassMeister.com.
// Responsive breakpoints
$mobile: 767px;
$tablet: 1024px;
$medium-desktop: 1366px;
@mixin media($breakpoint) {
@media only screen and (max-width: $breakpoint) {
@content;
}
}
@carloscabo
carloscabo / hosts
Created May 23, 2023 05:36
Block Adobe Hosts \drivers\etc\hosts
# This file is just a list of hosts to prevent adobe activation.
# For more protection, like blocking Adware, Malware, FakeNews,
# Gambling, Porn or Social, go to https://github.com/StevenBlack/hosts
#
# To easily manage multiple host databases, use Hostman.
# http://www.abelhadigital.com/hostsman/
# Or just copy that file to
# "C:\Windows\System32\drivers\etc"
# =================================
@carloscabo
carloscabo / key.md
Created February 3, 2023 09:03
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

#!/bin/bash
# Author : [email protected]
# Copyright (c) Sean Maddison
# Notes:
#
# - My first attempt at writing a bash script!
# Notes
# -----
function setup() {
createCanvas(800, 800);
angleMode(DEGREES);
}
function draw() {
background((95 / 100) * 255);
push();
translate(width / 2, height / 2);
let ratio = 0.01;
@carloscabo
carloscabo / content-tag.php
Created January 19, 2022 06:27 — forked from hugodias/content-tag.php
content_tag function in PHP to work as Rails content_tag function
<?php
/**
* @param $tag
*
* @return string
*/
function close_tag($tag)
{
return "</" . $tag . ">";
@carloscabo
carloscabo / conspiranoia-bot-grammar.json
Created January 13, 2022 14:35
Grmática de tracery para el bot de Twitter https://twitter.com/ConspiranoiaBot
{
"origin": [
"#object# #damage# #scapegoat# #relationship# #enemy#, #motivation# #artifact# #where# #source#."
],
"object": [
"Las vacunas",
"Los hospitales",
"Los medicamentos",
"Las antenas de los móviles",
"Los conservantes"
@carloscabo
carloscabo / ffmpeg.txt
Created October 15, 2021 12:33 — forked from fraguada/ffmpeg.txt
ffmpeg cheat sheet
.png sequence to mp4
ffmpeg -r 30 -i Frame_%05d.png -pix_fmt yuv420p out.mp4
-intra flag useful for seekable mp4, but higher file size
concatenate mp4s
https://stackoverflow.com/questions/7333232/how-to-concatenate-two-mp4-files-using-ffmpeg
:: Create File List
echo file file1.mp4 > mylist.txt
echo file file2.mp4 >> mylist.txt