Skip to content

Instantly share code, notes, and snippets.

@rchrd2
rchrd2 / proxy.js
Created November 4, 2020 01:12
Cloudflare worker CORS proxy
// forked from: https://github.com/chebyrash/cors
addEventListener("fetch", event => {
event.respondWith(handleRequest(event.request))
})
async function handleRequest(request) {
try {
const url = new URL(request.url);
if (url.pathname === "/") {
@srafay
srafay / fix git password prompt - Windows
Created February 15, 2019 13:46
Disable annoying bitbucket or source tree password prompts on windows
$ git config --global --replace-all credential.interactive false
$ git config --global --replace-all credential.modalPrompt false
$ git config --edit --system
# remove line
helper = manager
# To disable openssh password prompt, add these 2 lines
[core]
@taskylizard
taskylizard / fmhy.md
Last active May 13, 2024 13:30
/r/freemediaheckyeah, in one single file (view raw)
@rgs
rgs / intersect.sh
Created March 15, 2024 12:20
Get the intersection of an arbitrary number of json files with jq
#!/usr/bin/env bash
function intersectJson {
echo $* | \
jq -nS '
def intersect:
.[0] as $a |
.[1] as $b |
if ($a | type) == "object" then
if ($b | type) == "object" then
@AFayad0
AFayad0 / fine-tuning-bert.ipynb
Created November 5, 2023 18:05
Fine-Tuning BERT.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
layout title description path
barewithrelated
Book Authoring Using GitHub and Git
Formats, tips and techniques for using GitHub and Git as the version control and collaborative platform for writing short and long form books.
usecases/_posts/2001-01-01-book-authoring-using-git-and-github.md

GitHub and Git are not just for writing programming code. They can also be an effective tool for writing articles and books. Matthew McCullough has written a quick guide to writing books in lightweight formats. This article will be folded into this Teaching repository over the coming months.

What is this?

@robwent
robwent / forcing-w3-total-cache-to-clear-parent-category-listing-pages-on-post-save.php
Last active May 13, 2024 13:26
Forcing W3 Total Cache to Clear Parent Category Listing Pages on Post Save
<?php
/**
* Clear Total Cache term listing pages for a post
* @param $post_id
* @param $post
*
* @return void
*/
function rw_clear_total_cache_terms_pages( $post_id, $post ) {
if ( function_exists( 'w3tc_flush_url' ) ) {
@dvf
dvf / change-codec.md
Last active May 13, 2024 13:24
Enable High Quality mode on your headphones (Updated for macOS Catalina)

If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.

Find out what codec you're using

  1. Play a song on your headphones
  2. Option (⌥) click the Bluetooth button at the top of your screen Inspect the Bluetooth Coded
  3. If you're using AAC or aptX, you can stop here—those are the highest quality codecs.

Change your codec to AAC or aptX

@jonlabelle
jonlabelle / ldap_search_filter_cheatsheet.md
Last active May 13, 2024 13:24
LDAP Search Filter Cheatsheet
@chrisryana
chrisryana / useful.md
Last active May 13, 2024 13:23
Список полезных ресурсов ☕️

Полезные ресурсы для Frontend-разработчика

  • Онлайн-конвертер видео в gif
  • Screentogif – сервис для записи экрана в gif со следящим курсором (пример на хабре)
  • Google Earth Studio – имитация аэросъемки, позволяет делать ролики, снятые будто в полете над Землей или даже из космоса
  • Generated Photos – генератор аватарок пользователей
  • SlidesGo – Бесплатные Google Слайды и PowerPoint шаблоны
  • Shields – цветные бэйджики для GitHub
  • Blobmixer – онлайн сервис для создания трехмерных объектов с заголовком. Можно выбирать из 16 объектов с разной формой, цветом и текстурой. Объекты можно настраивать и добавлять им разные эффекты
  • GetMentor – найти ментора по любому направлению и