Skip to content

Instantly share code, notes, and snippets.

View harryawk's full-sized avatar
💧

Harry Alvin Waidan Kefas harryawk

💧
View GitHub Profile
@harryawk
harryawk / app.js
Last active November 23, 2021 03:08
Convert PDF to Image on Windows
const app = (file) => {
const path = require('path');
const pdf = require('pdf-poppler');
let opts = {
format: 'jpeg',
out_dir: path.dirname(file),
out_prefix: path.basename(file, path.extname(file)),
page: null
};
@harryawk
harryawk / delete_tweets_and_replies.py
Last active May 31, 2023 03:52
Script to delete all your tweets and replies
"""
This script is using python-twitter SDK (https://github.com/bear/python-twitter)
All key and secret strings can be generated by creating an app in https://apps.twitter.com/
"""
import twitter
consumer_key = ''
consumer_secret = ''
access_token_key = ''