Skip to content

Instantly share code, notes, and snippets.

View asmuiahmad's full-sized avatar
:dependabot:
Do my stuff

𐎠𐎿𐎸𐎡 𐎠𐏃𐎶𐎭 asmuiahmad

:dependabot:
Do my stuff
View GitHub Profile
@zinovyev
zinovyev / rpmtoarch
Created November 8, 2018 14:21
Convert rpm package to Archlinux package (makepkg -s command required afterwards)
#!/usr/bin/env ruby
require "fileutils"
class Package
FILTERED_PARTS = %w[rpm x86_64]
INSTALL_SECTIONS = %w[pre_install post_install pre_upgrade
post_upgrade pre_remove post_remove].freeze
@taviso
taviso / delete-twitter-dm.js
Created November 3, 2017 16:33
Automate deleting twitter direct messages.
// Open direct messages window, paste this into console.
function deleteNextConversation()
{
if (!(dm = document.getElementsByClassName("DMInbox-conversationItem")[0])) {
clearInterval(tmr)
return;
}
dm.firstChild.click();
setTimeout('document.getElementsByClassName("js-actionDeleteConversation")[0].click()', 1000);