Skip to content

Instantly share code, notes, and snippets.

View karbassi's full-sized avatar
🌱

Ali Karbassi karbassi

🌱
View GitHub Profile
@karbassi
karbassi / README.md
Created May 1, 2023 15:04
Create Animated GIFs from Images with FFmpeg Using a Bash Script

Creating a GIF from a series of images is a simple process with the right tools. This bash script simplifies the process using FFmpeg, a popular multimedia tool for handling multimedia data.

How to use the script

Here's how to use the script:

./create-gif.sh <path-to-images> [pattern] [output] [fps]
name: Publish Website to GitHub Pages
on:
push:
branches:
- master
- main
jobs:
build-deploy:
@karbassi
karbassi / clear-all.js
Last active July 15, 2021 03:12
Tweetdeck Clear All - 2021
function clearAll() {
document.querySelectorAll('.js-column').forEach((column) => {
column.querySelector('a[data-action="options"]').click();
setTimeout(() => {
column.querySelector('[data-action="clear"]').click();
setTimeout(() => {
column.querySelector('a[data-action="options"]').click();
}, 150);
}, 200);
});
[
{
"input": {
"r": 1.00,
"g": 0.65,
"b": 0.00
},
"output": {
"orange": 1
}
[
"I think therefore I am",
"The only thing I know is that I know nothing",
"The mind is furnished with ideas by experience alone",
"Philosophy is a battle against the bewitchment of our intelligence by means of language",
"Leisure is the mother of philosophy",
"Happiness is the highest good",
"Philosophy is at once the most sublime and the most trivial of human pursuits"
]
[
"0+0=0",
"0+1=1",
"0+2=2",
"0+3=3",
"0+4=4",
"0+5=5",
"1+0=1",
"1+1=2",
@karbassi
karbassi / Git gpg stuck.md
Created February 5, 2020 15:26
If your git process gets stuck during the `gpg` signing phase, you can restart `gpg` by running

If your git process gets stuck during the gpg signing phase, you can restart gpg by running

gpgconf --kill gpg-agent
@karbassi
karbassi / README.md
Last active October 3, 2024 09:09
Archive all messages in Google Messages web app

Archive all messages in Google Messages web app

This code was something I quickly put together to archive over 5000 text messages in Google Messages. I have no idea if Google frowns on this or not, but it's basically the same as if a human sat there and archived all the messages by hand.

Tested and working as of Monday, November 4, 2019.

How to run

  1. Sign into https://messages.google.com/web/
  2. Open Chrome Developers console by going to View > Developer > JavaScript Console.
  3. Copy and paste the code below into console. It should automatically run.
var start = null;
function step(timestamp) {
// console.log(timestamp);
if (!start) {
start = timestamp;
}
var progress = timestamp - start;
@karbassi
karbassi / extensions.txt
Last active August 4, 2021 17:05
VSCode Extensions and Settings
https://marketplace.visualstudio.com/items?itemName=hookyqr.beautify
https://marketplace.visualstudio.com/items?itemName=pranaygp.vscode-css-peek
https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
https://marketplace.visualstudio.com/items?itemName=ecmel.vscode-html-css
https://marketplace.visualstudio.com/items?itemName=mkaufman.htmlhint
https://marketplace.visualstudio.com/items?itemName=zignd.html-css-class-completion