Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Alex Terehov terales

I may be slow to respond.
View GitHub Profile
View TAPICC Legal
terales /
Last active Feb 7, 2018
An example of downloading file from
// cURL save image to your current folder
curl -o terales.jpg
// Windows via PowerShell, save image to your Desktop
Invoke-WebRequest -OutFile "$([Environment]::GetFolderPath("Desktop"))\terales.jpg"
terales / DeprecateProperties.php
Last active Jul 9, 2017
DeprecateProperties for embedding into blog post
View DeprecateProperties.php
<? php// from
class DeprecateProperties
private $dataObject;
private $deprecatedProps = array('db', 'user', 'payment');
public function __construct()
// Use what we had in the codebase
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)
function hideIfPromos(story) {
if (story.textContent.includes('See all friend suggestions')) { = 'none'

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