Skip to content

Instantly share code, notes, and snippets.

View Kremilly's full-sized avatar
👋
Hello, World!

Kremilly Kremilly

👋
Hello, World!
View GitHub Profile
@Kremilly
Kremilly / wikipedia_stats.json
Created April 24, 2024 20:27
Wikipedia stats
[
{
"id": 1,
"language": "English",
"language_local": "English",
"wiki": "en",
"articles": "6,816,312",
"all_pages": "60,522,733",
"edits": "1,215,838,531",
"admins": 861,
{
"scripts": [
".js",
".ts",
".tsx",
".vue",
".min.js"
],
"styles": [
@Kremilly
Kremilly / sciscrape.yml
Last active March 29, 2024 10:23
SciScrape default settings
general:
force_https: false # Boolean
disable_cache: false # Boolean
format_date: '%Y-%m-%d' # String
calculate_request_time: true # Boolean
json_indent_size: 2 # Integer (unsigned)
default_user_agent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36' # String
results:
auto_generate_bibtex: false # Boolean
fetch('https://gh-pinned-api.vercel.app/api?user=kremilly').then(
json => json.json()
).then(callback => {
console.log(callback)
})
@Kremilly
Kremilly / setup.py
Created November 16, 2023 16:40
setup.py pip
import os
import sys
from setuptools import find_packages, setup
def read(rel_path: str) -> str:
here = os.path.abspath(os.path.dirname(__file__))
# intentionally *not* adding an encoding option to open, See:
# https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690
with open(os.path.join(here, rel_path)) as fp:
@Kremilly
Kremilly / .env
Last active April 2, 2024 10:40
.env Linkscraper template
# Env file created with Linkscraper (v.2.5.1)
# File generated in: 2024-02-21 09:21:58
# Get key: https://www.virustotal.com/gui/my-apikey
VIRUSTOTAL_KEY=YOUR_VIRUSTOTAL_KEY
# Get key: https://api.imgur.com/oauth2/addclient
IMGUR_CLIENT_API=YOUR_CLIENT_API
# Get key: https://console.cloud.google.com/apis/credentials
@Kremilly
Kremilly / allow-ext.json
Created October 25, 2023 04:02
Extensions allowed in Linkscraper
[
".js", "min.js",
".css", ".min.css",
".png", ".gif", ".svg", ".tiff", ".webp", ".avif", ".jpeg", ".jpg", ".jxr", ".wdp", ".hdp", ".jp2", ".j2k", ".jpf", ".jpx", ".jpm", ".mj2"
]
@Kremilly
Kremilly / paimon.txt
Last active October 10, 2023 21:04
paimon-example.txt
// ENGLISH
// -> Comment
! -> Parameter
!name -> String -> What name the downloaded file will have (OPTIONAL)
RANDOM_NAME -> Macro that allows generating random names for the file (OPTIONAL)
!path -> String -> Which folder the file will be saved in (OPTIONAL, default -> Downloads folder)
DOWNLOAD_PATH -> Macro that fetches the operating system's Downloads folder.
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
body {
font-family: "HelveticaNeue-Light", sans-serif, "宋体","Segoe WPC", "Segoe UI", "SFUIText-Light","Droid Sans Fallback";
font-size: 18px;
padding: 0 12px;
line-height: 1.6;
@Kremilly
Kremilly / languages.json
Created March 31, 2023 12:55
ISO code of languages in world
[
{
"code": "aa",
"name": "Afar",
"native": "Afar"
},
{
"code": "ab",
"name": "Abkhazian",
"native": "Аҧсуа"