Skip to content

Instantly share code, notes, and snippets.

View ibrahimcesar's full-sized avatar
☁️
Learn and Be Curious

Ibrahim Cesar ibrahimcesar

☁️
Learn and Be Curious
View GitHub Profile
@ibrahimcesar
ibrahimcesar / getRelativeTimeString.ts
Created June 2, 2022 13:13 — forked from LewisJEllis/getRelativeTimeString.ts
Simplified getRelativeTimeString
// from https://twitter.com/Steve8708/status/1504131981444980739
// simplified to a function body of 8 tidy lines
// no loop needed, no 2d array of 3-tuples needed
// just 2 arrays, a findIndex call, and some indexing :)
export function getRelativeTimeString(
date: Date | number,
lang = "en"
): string {
const timeMs = typeof date === "number" ? date : date.getTime();
@ibrahimcesar
ibrahimcesar / pandoc-cheatsheet.md
Created April 20, 2022 08:40 — forked from cferdinandi/pandoc-cheatsheet.md
CLI cheats for creating a markdown ebook with Pandoc.

epub

pandoc assets/metadata.yml chapters/*.md -o book.epub -S

pdf

Using WKHTMLtoPDF (no page numbers)

@ibrahimcesar
ibrahimcesar / how-ai-enhanced-journalism.md
Created January 8, 2020 01:29
Resources from my talk about AI and ML's role in journalism 🗞

How AI is Enhancing Journalism

🖥 PDF Slides 📝 Abstract

Bots

🤖 Heliograf from The Washington Post
A robot reporter that produced around 850 articles in its first year and earned The Post an award for its “Excellence in Use of Bots” from its work on the 2016 US election coverage.

@ibrahimcesar
ibrahimcesar / how-ai-enhanced-journalism.md
Created January 8, 2020 01:29
Resources from my talk about AI and ML's role in journalism 🗞

How AI is Enhancing Journalism

🖥 PDF Slides 📝 Abstract

Bots

🤖 Heliograf from The Washington Post
A robot reporter that produced around 850 articles in its first year and earned The Post an award for its “Excellence in Use of Bots” from its work on the 2016 US election coverage.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@ibrahimcesar
ibrahimcesar / root.sh
Created October 27, 2016 09:57 — forked from Arinerron/root.sh
"Root" via dirtyc0w privilege escalation exploit (automation script) / Android (32 bit)
#!/bin/bash
# Give the usual warning.
clear;
echo "[INFO] Automated Android root script started.\n\n[WARN] Exploit requires sdk module \"NDK\".\nFor more information, visit the installation guide @ https://goo.gl/E2nmLF\n[INFO] Press Ctrl+C to stop the script if you need to install the NDK module. Waiting 10 seconds...";
sleep 10;
clear;
# Download and extract exploit files.
echo "[INFO] Downloading exploit files from GitHub...";