Skip to content

Instantly share code, notes, and snippets.

View harryawk's full-sized avatar
:shipit:
Serving

Harry Alvin Waidan Kefas harryawk

:shipit:
Serving
View GitHub Profile
@harryawk
harryawk / delete_tweets_and_replies.py
Last active August 15, 2024 20:34
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 = ''
@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
};