Skip to content

Instantly share code, notes, and snippets.

View terales's full-sized avatar
🐌
I may be slow to respond.

Alex Terehov terales

🐌
I may be slow to respond.
View GitHub Profile

Turning Off Github Issues

My friend Michael Jackson turned off github issues on one of his smaller projects. It got me thinking...

Maintainers getting burned out is a problem. Not just for the users of a project but the mental health of the maintainer. It's a big deal for both parties. Consumers want great tools, maintainers want to create them, but maintainers don't want to be L1 tech support, that's why they

@terales
terales / facebook-user-script.js
Created May 9, 2017 08:52
Hide friend suggestions stories
// Looping like this works in Firefox 50+ and Blink browsers (Chrome, Yandex.Broswer and so on)
document.querySelectorAll('[id^="hyperfeed_story"]').forEach(hideIfPromos)
function hideIfPromos(story) {
if (story.textContent.includes('See all friend suggestions')) {
story.style.display = 'none'
}
}
@terales
terales / DeprecateProperties.php
Last active July 9, 2017 21:55
DeprecateProperties for embedding into blog post
<? php// from https://github.com/terales/deprecate-properties/blob/master/DeprecateProperties.php
class DeprecateProperties
{
private $dataObject;
private $deprecatedProps = array('db', 'user', 'payment');
public function __construct()
{
// Use what we had in the codebase
@terales
terales / download-from-socatar.sh
Last active February 7, 2018 06:38
An example of downloading file from Socatar.com
// cURL save image to your current folder
curl https://socatar.com/github/terales/50-50 -o terales.jpg
// Windows via PowerShell, save image to your Desktop
Invoke-WebRequest https://socatar.com/github/terales/50-50 -OutFile "$([Environment]::GetFolderPath("Desktop"))\terales.jpg"