Skip to content

Instantly share code, notes, and snippets.

View zoghal's full-sized avatar
🏠
Working from home

Saleh Souzanchi zoghal

🏠
Working from home
View GitHub Profile
// Font Smoothie copyright 2013,14 Torben Haase <http://pixelsvsbytes.com>
// Source-URL <https://gist.github.com/letorbi/5177771>
//
// Font Smoothie is free software: you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License as published by the Free
// Software Foundation, either version 3 of the License, or (at your option) any
// later version.
//
// Font Smoothie is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
from robofab.tools.remoteTCP import FontLabServer
myServer = FontLabServer()
myServer.run()
@zoghal
zoghal / RemoteTCP.py
Last active August 29, 2015 14:09 — forked from lamberta/RemoteTCP.py
#===============================================================================
# RemoteTCP.py, v0.1, released 01.26.08.
# Installation notes, usage and commentary:
# http://lamberta.posterous.com/remotetcp-for-robofab-and-fontlab
#
# Copyright (c) William Lamberta, <www.lamberta.org>
# Released under the BSD License,
# see www.opensource.org/licenses/bsd-license.php for details.
# Includes code from RoboFab <www.robofab.org>,
# Copyright (c) The RoboFab Developers, Just van Rossum, Tal Leming, Erik van Bloklandwhich.
@zoghal
zoghal / reset-this.css
Created December 17, 2014 10:57
reset inherited css from an element
.reset-this {
animation : none;
animation-delay : 0;
animation-direction : normal;
animation-duration : 0;
animation-fill-mode : none;
animation-iteration-count : 1;
animation-name : none;
animation-play-state : running;
animation-timing-function : ease;
incorect: awk ‘$3 ~ /^cwd/{print $3}’ /var/log/exim_mainlog | sort | uniq -c | sed “s|^ *||g” | sort -nr
correct :awk '$3 ~ /^cwd/{print $3}' /var/log/exim_mainlog | sort | uniq -c | sed "s|^ *||g" | sort -nr
@zoghal
zoghal / nginx.conf
Last active August 29, 2015 14:17 — forked from dekart/nginx.conf
timer_resolution 100ms;
worker_priority -5;
events {
use epoll;
worker_connections 2048;
}
server {
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
#!/usr/bin/env bash
# names of latest versions of each package
export VERSION_PCRE=pcre-8.36
export VERSION_OPENSSL=openssl-1.0.2
export VERSION_NGINX=nginx-1.7.10
# URLs to the source directories for each package
export SOURCE_OPENSSL=https://www.openssl.org/source/
export SOURCE_PCRE=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
#!/bin/bash
./configure --prefix=/usr \
--user=nobody \
--group=nogroup \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-log-path=/var/log/nginx/access.log \
--http-proxy-temp-path=/var/lib/nginx/proxy \
.configure \
--prefix=/usr/share/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--user=www-data \
--group=www-data \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-log-path=/var/log/nginx/access.log \
--http-proxy-temp-path=/var/lib/nginx/proxy \
SRC=/usr/src
NPS_VERSION=1.9.32.3
NGINX_VERSION=1.7.10 # stable=1.6.2, mainline=1.7.10
cd $SRC
wget https://github.com/pagespeed/ngx_pagespeed/archive/release-${NPS_VERSION}-beta.zip
unzip release-${NPS_VERSION}-beta.zip
cd $SRC/ngx_pagespeed-release-${NPS_VERSION}-beta/
wget https://dl.google.com/dl/page-speed/psol/${NPS_VERSION}.tar.gz