Skip to content

Instantly share code, notes, and snippets.

View Sevichecc's full-sized avatar
🥝

Sevi Sevichecc

🥝
View GitHub Profile
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active October 18, 2024 03:47
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub
@marlosirapuan
marlosirapuan / mime.types
Last active September 11, 2023 16:51
NGINX Config - Content-Security-Policy (Google, Google Fonts, Facebook, Zendesk, MaxCDN-FontAwesome, CKEditor), Cache, Mime-Types, Puma
# /etc/nginx/mime.types
types {
font/ttf ttf;
font/opentype otf;
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/javascript js;
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active October 15, 2024 09:13
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@umonaca
umonaca / cfworker.js
Last active February 18, 2023 05:49
Cloudflare worker media proxy (for Mastodon)
// DO Spaces isn't handling OPTIONS properly so I am manually setting them. It does not affect user experience, though.
// For DO Spaces, if Origin header is not set, DO won't return CORS headers at all. Must be set in the worker.
// Other references:
// https://community.cloudflare.com/t/injecting-cors-headers-in-response-larger-requests-fail/98479/7
// https://www.digitalocean.com/community/questions/setting-access-control-allow-origin-in-my-space-doesn-t-work-with
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
@umonaca
umonaca / cf-mastodon-proxy.js
Last active July 12, 2023 17:51
Unfinished Mastodon Cloudflare Worker Proxy
// Website you intended to retrieve for users.
//const upstream = 'www.google.com'
const upstream = '5a1eddaec0e1.ngrok.io'
// Custom pathname for the upstream website.
const upstream_path = '/'
// Website you intended to retrieve for users using mobile devices.
//const upstream_mobile = 'www.google.com'
const upstream_mobile = '5a1eddaec0e1.ngrok.io'
@eldadfux
eldadfux / .env
Last active June 29, 2022 05:24
Appwrite 0.14 - Stack
_APP_ENV=production
_APP_LOCALE=en
_APP_OPTIONS_ABUSE=enabled
_APP_OPTIONS_FORCE_HTTPS=disabled
_APP_OPENSSL_KEY_V1=your-secret-key
_APP_DOMAIN=localhost
_APP_DOMAIN_TARGET=localhost
_APP_CONSOLE_WHITELIST_ROOT=enabled
_APP_CONSOLE_WHITELIST_EMAILS=
_APP_CONSOLE_WHITELIST_IPS=
@kepano
kepano / obsidian-web-clipper.js
Last active October 16, 2024 13:31
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@zhoreeq
zhoreeq / vulpes-nord.json
Created August 10, 2021 16:30 — forked from Omega9/vulpes-nord.json
Vulpes Nord theme for Pleroma
{
"_pleroma_theme_version": 2,
"theme": {
"themeEngineVersion": 3,
"shadows": {
"panel": [
{
"color": "#000000",
"x": 0,
"y": "10",
export default class EventEmitter
{
constructor()
{
this.callbacks = {}
this.callbacks.base = {}
}
on(_names, callback)
{