Skip to content

Instantly share code, notes, and snippets.

Avatar
🐌
I may be slow to respond.

Alex Terehov terales

🐌
I may be slow to respond.
View GitHub Profile
View TAPICC Legal Agreement.md
@terales
terales / download-from-socatar.sh
Last active Feb 7, 2018
An example of downloading file from Socatar.com
View download-from-socatar.sh
// 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"
@terales
terales / DeprecateProperties.php
Last active Jul 9, 2017
DeprecateProperties for embedding into blog post
View DeprecateProperties.php
<? 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 / facebook-user-script.js
Created May 9, 2017
Hide friend suggestions stories
View facebook-user-script.js
// 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'
}
}
View issues.md

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