Skip to content

Instantly share code, notes, and snippets.

Fotis Evangelou fevangelou

Block or report user

Report or block fevangelou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
#!/usr/bin/env bash
# Names of latest versions of each package
export VERSION_PCRE=pcre-8.39
export VERSION_ZLIB=zlib-1.2.8
export VERSION_LIBRESSL=libressl-2.4.2
export VERSION_NGINX=nginx-1.11.3
# URLs to the source directories
Jarred-Sumner / comcast.js
Last active May 12, 2019
Comcast injects this into webpages to show copyright notices
View comcast.js
// Comcast Cable Communications, LLC Proprietary. Copyright 2014.
// Intended use is to display browser notifications for critical and time sensitive events.
var _ComcastAlert = (function(){
return {
SYS_URL: '/e8f6b078-0f35-11de-85c5-efc5ef23aa1f/aupm/'
, dragObj: {zIndex: 999999}
, browser: null
, comcastCheck: 1
, comcastTimer: null
, xmlhttp: null
samuelpismel /
Created Nov 9, 2015
Shell script to change and convert mysql databases charset and collate.
echo "Changing charset of database: $database"
chrismdp /
Last active Aug 2, 2019
Uploading to S3 in 18 lines of Shell (used to upload builds for
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (
# Based on a modified script from here:
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
Skalman / index.php
Created Apr 20, 2015
Dynamic RSS feeds from Youtube links
View index.php
if (!isset($_GET['url'])) {
<!DOCTYPE html>
<meta charset="utf-8">
<title>Youtube RSS creator</title>
<p>Create an RSS feed for the videos on the following page:
<p><input name="url" placeholder="E.g." style="width: 30em">
drkarl / gist:739a864b3275e901d317
Last active Jul 2, 2019
Ask HN: Best Linux server backup system?
View gist:739a864b3275e901d317

Linux Backup Solutions

I've been looking for the best Linux backup system, and also reading lots of HN comments.

Instead of putting pros and cons of every backup system I'll just list some deal-breakers which would disqualify them.

Also I would like that you, the HN community, would add more deal breakers for these or other backup systems if you know some more and at the same time, if you have data to disprove some of the deal-breakers listed here (benchmarks, info about something being true for older releases but is fixed on newer releases), please share it so that I can edit this list accordingly.

Amanda (comments by sammcj)

  • It has a lot of management overhead and that's a problem if you don't have time for a full time backup administrator.


The only cross-platform browser that fits in a Gist!

One line install. Works on Linux, MacOSX and Windows.

Local Install

$> npm install
kricore / default.php
Last active Feb 24, 2017
Simple Image Gallery Pro responsive template using Foundation's block grid.
View default.php
* @version 3.0.x
* @package Simple Image Gallery Pro
* @author JoomlaWorks -
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
* @license
// no direct access
jgornick / gist:0b10798608193ba4fd6d
Last active Dec 19, 2015
Nginx: Advanced proxy_pass depending on file exists
View gist:0b10798608193ba4fd6d
server {
listen 443;
root /var/www/;
ssl on;
ssl_certificate /usr/local/etc/ssl/star.crt;
ssl_certificate_key /usr/local/etc/ssl/star.key;
hdragomir / sm-annotated.html
Last active Apr 29, 2019
The deferred font loading logic for Smashing Magazine.
View sm-annotated.html
<script type="text/javascript">
(function () {
"use strict";
// once cached, the css file is stored on the client forever unless
// the URL below is changed. Any change will invalidate the cache
var css_href = './index_files/web-fonts.css';
// a simple event handler wrapper
function on(el, ev, callback) {
if (el.addEventListener) {
el.addEventListener(ev, callback, false);
You can’t perform that action at this time.