Skip to content

Instantly share code, notes, and snippets.

View ogeday26's full-sized avatar
🧑‍🚀
Focusing

Ogeday ogeday26

🧑‍🚀
Focusing
  • 18:11 (UTC +05:00)
View GitHub Profile
var script = document.createElement('script');
script.onload = async function() {
var baseUrl = "https://www.nirsoft.net/countryip/";
var parser = new DOMParser();
var {
data: baseDom
} = await axios.get(baseUrl);
var parsedBaseDom = parser.parseFromString(baseDom, 'text/html');
@ogeday26
ogeday26 / apple-gen-secret.mjs
Created December 19, 2022 08:51 — forked from balazsorban44/apple-gen-secret.mjs
Script to generate Apple Client secret
#!/bin/node
import { SignJWT } from "jose"
import { createPrivateKey } from "crypto"
if (process.argv.includes("--help") || process.argv.includes("-h")) {
console.log(`
Creates a JWT from the components found at Apple.
By default, the JWT has a 6 months expiry date.
Read more: https://developer.apple.com/documentation/sign_in_with_apple/generate_and_validate_tokens#3262048
@ogeday26
ogeday26 / config
Created August 9, 2021 17:56 — forked from pksunkara/config
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
[sendemail]
smtpencryption = tls