Skip to content

Instantly share code, notes, and snippets.

View lin1005q's full-sized avatar
🏠
Working from home

lin1005q

🏠
Working from home
View GitHub Profile
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: prometheus
name: prometheus
data:
prometheus.yml: |
global:
evaluation_interval: 1m
@lin1005q
lin1005q / delete-likes-from-twitter.md
Created June 11, 2022 06:59 — forked from aymericbeaumet/delete-likes-from-twitter.md
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@lin1005q
lin1005q / RsaExample.java
Created April 6, 2021 12:51 — forked from nielsutrecht/RsaExample.java
Example of RSA generation, sign, verify, encryption, decryption and keystores in Java
import javax.crypto.Cipher;
import java.io.InputStream;
import java.security.*;
import java.util.Base64;
import static java.nio.charset.StandardCharsets.UTF_8;
public class RsaExample {
public static KeyPair generateKeyPair() throws Exception {
KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA");