Skip to content

Instantly share code, notes, and snippets.

View edgarsandi's full-sized avatar
👋
Hi there

Edgar R. Sandi edgarsandi

👋
Hi there
View GitHub Profile
@shortjared
shortjared / list.txt
Last active November 15, 2024 11:42
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
@bishboria
bishboria / springer-free-maths-books.md
Last active October 3, 2024 09:17
Springer made a bunch of books available for free, these were the direct links
@felipecwb
felipecwb / goal.php
Last active August 29, 2015 14:15
Functional PHP with goal challenge.
<?php
/*
* Now with uniform variable syntax (https://wiki.php.net/rfc/uniform_variable_syntax)
* We can do this nice things like in others languages.
*
* Tested in:
* $ php -v
* > PHP 7.0.0-dev (cli) (built: Feb 11 2015 02:07:44)
* > Copyright (c) 1997-2015 The PHP Group
* > Zend Engine v3.0.0-dev, Copyright (c) 1998-2015 Zend Technologies
@edgarsandi
edgarsandi / gist:6302898
Last active August 31, 2022 18:23 — forked from fluxsauce/gist:5282006
install from phpbrew
# Make sure the prerequisites are installed.
sudo apt-get -y install autoconf automake curl build-essential libxslt1-dev re2c libxml2-dev bison
# If don't have installed php use:
sudo apt-get install php5 php5-dev php-pear php5-mysql php5-intl php5-mcrypt php5-sqlite php5-xdebug php5-xmlrpc php5-xsl php5-xcache php5-memcache libxslt1-dev
# Install php archiver
sudo pear install PHP_Archive-alpha
# Install PHP 5 dependencies.
@zachleat
zachleat / reading_time.rb
Last active October 21, 2020 23:00
Read this in X minutes Liquid Filter Plugin (for Jekyll)
# Outputs the reading time
# Read this in “about 4 minutes”
# Put into your _plugins dir in your Jekyll site
# Usage: Read this in about {{ page.content | reading_time }}
module ReadingTimeFilter
def reading_time( input )
words_per_minute = 180