Skip to content

Instantly share code, notes, and snippets.

@BrockA
BrockA / waitForKeyElements.js
Created May 7, 2012 04:21
A utility function, for Greasemonkey scripts, that detects and handles AJAXed content.
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);
@GaryRogers
GaryRogers / ComposerPHPUnit.md
Last active May 15, 2023 16:01
Getting Composer and PHPUnit to autoload namespaces

Getting Composer and PHPUnit to autoload namespaces.

Overview

Details

Project Structure

ProjectRoot
 src
@vorozhba
vorozhba / Как удалить commit в Github.txt
Last active October 17, 2024 12:17
Как удалить commit в Github
1. Получаем хэш-код коммита, к которому хотим вернуться.
2. Заходим в папку репозитория и пишем в консоль:
$ git reset --hard a3775a5485af0af20375cedf46112db5f813322a
$ git push --force
@tynrare
tynrare / delete-all.js
Last active October 20, 2023 16:16
VK delete all tracks
//Сюда вписать через запятую названия своих треков, которые хотите сохранить
//Например: ["Цвет настроения", "За любовь", "Каждый раз"]
// Кстати Цвет настроения сохранится и черный и синий :D
var filter = ["Your-favorite-track-name"];
//scroll down at max
function scrollDown(callback){
let scroll = document.body.scrollHeight;
let lastScroll = scroll;
window.scrollTo(0,document.body.scrollHeight);
@jaoye
jaoye / AppStore_API.md
Last active October 15, 2024 11:10
[AppStore API] AppStore API #AppStore
@Snarp
Snarp / google-docs-copy.js
Last active October 14, 2024 04:25
Script to allow copying from a protected Google Doc
/*
<https://stackoverflow.com/questions/40296831/is-it-possible-to-force-a-copy-of-a-protected-google-doc>
NOTE - 2021-05-24
-----------------
The script below isn't the fastest way to copy-and-paste from a protected
Google Doc. Before trying it, I'd suggest following MikoFrosty's advice from
the comments:
@ewen-lbh
ewen-lbh / remove_deployments_tab.py
Last active September 14, 2023 01:48
Remove the "Deployments" tab from github.com
"""
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
@gsrai
gsrai / install_go.sh
Last active October 29, 2024 14:50
Install Go on M1/M2/M3 mac (apple silicon)
#!/usr/bin/env bash
# find filename on https://go.dev/dl/
GO_FILE_NAME="go1.19.3.darwin-arm64.tar.gz"
# usage:
# chmod u+x install_go.sh
# sudo ./install_go.sh
mkdir /tmp/downloads