Skip to content

Instantly share code, notes, and snippets.

@y-young
y-young / sentry_data_export.py
Created May 23, 2023 08:49
Export project data from sentry.io
"""Export Sentry project data from sentry.io."""
import os
import json
import requests
SENTRY_AUTH_TOKEN = os.environ.get("SENTRY_AUTH_TOKEN")
SENTRY_ORGANIZATION_SLUG = os.environ.get("SENTRY_ORGANIZATION_SLUG")
SENTRY_PROJECT_SLUG = os.environ.get("SENTRY_PROJECT_SLUG")
@y-young
y-young / convert.py
Created July 8, 2021 15:33
Selenium script converter
'''
Selenium IDE Installation:
https://www.seleniumhq.org/selenium-ide/docs/en/introduction/getting-started/#installation
Usage:
python convert.py External_Links_Editor.json5
Output:
A Selenium IDE project file External_Links_Editor.side
@y-young
y-young / twitter-followings-json2yaml.js
Created February 19, 2021 12:06
Twitter Followings JSON to YAML
/*
Twitter Followings JSON to YAML
Usage:
1. Use https://gist.github.com/y-young/031291b39e425472a26d973bd9aa52ee to get `users.json`
2. Install 'js-yaml': 'npm i js-yaml` or `yarn add js-yaml`
3. Run the script: `node twitter-followings-json2yaml.js`
4. Output is in `twitter_data.yaml`, paste it into gist
*/
const fs = require("fs/promises");
@y-young
y-young / twitter-followings-exporter.js
Last active February 19, 2021 12:04
Twitter Followings Exporter
/*
Twitter Followings Exporter
Usage:
1. Go to https://twitter.com/username/following
2. Scoll down to the end
3. Filter requests in the network panel of DevTool like this:
https://twitter.com/i/api/graphql/aBcDeFGHijklMNopqRstUV/Following?variables=
4. Paste the whole response into `followings.json`
5. Run the script: `node twitter-followings-exporter.js`
6. Find other requests, repeat 4 and 5 until completed

Keybase proof

I hereby claim:

  • I am y-young on github.
  • I am yyoung (https://keybase.io/yyoung) on keybase.
  • I have a public key ASCmIi6pxfbe-Ait05_ydDNT1XH6gYsWm9mH5UClofFICAo

To claim this, I am signing this object: