Skip to content

Instantly share code, notes, and snippets.

saosangmo

Block or report user

Report or block saosangmo

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
View organization.js
<script type="application/ld+json">
{ "@context": "https://schema.org",
"@type": "Organization",
"name": "Elite Strategies",
"legalName" : "Elite Strategies Llc",
"url": "http://www.elite-strategies.com",
"logo": "http://cdn.elite-strategies.com/wp-content/uploads/2013/04/elitestrategies.png",
"foundingDate": "2009",
"founders": [
{
@saosangmo
saosangmo / css-compress.php
Created Jul 21, 2019 — forked from manastungare/css-compress.php
On-the-fly CSS Compression
View css-compress.php
<?php
/**
* On-the-fly CSS Compression
* Copyright (c) 2009 and onwards, Manas Tungare.
* Creative Commons Attribution, Share-Alike.
*
* In order to minimize the number and size of HTTP requests for CSS content,
* this script combines multiple CSS files into a single file and compresses
* it on-the-fly.
*
@saosangmo
saosangmo / popup.html
Created Apr 5, 2019 — forked from Moollihawkja/popup.html
Creating a pop up in pure javascript
View popup.html
<!DOCTYPE html>
<html>
<head>
<style>
.popup {
position: fixed;
top: 50vh;
left: 50%;
width:400px;
margin-left: -200px;
@saosangmo
saosangmo / cdn-nginx.conf
Created Oct 24, 2018 — forked from alsyundawy/cdn-nginx.conf
Nginx CDN Server Configuration
View cdn-nginx.conf
server {
listen 80;
server_name cdn.domain.org;
root /usr/share/nginx/cdn
location / {
proxy_pass http://domain.org;
proxy_set_header Host $host;
proxy_set_header True-Client-IP $remote_addr;
@saosangmo
saosangmo / install-php7.2-mcrypt.sh
Created Apr 7, 2018 — forked from arzzen/install-php7.2-mcrypt.sh
Install PHP 7.2 MCrypt extension
View install-php7.2-mcrypt.sh
#
# Check version php and pecl
#
php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php
pecl version
#
# Install mcrypt extension
# see http://pecl.php.net/package-info.php?package=mcrypt&version=1.0.1
#
@saosangmo
saosangmo / LICENSE.txt
Created Jan 7, 2018 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@saosangmo
saosangmo / php-html-css-js-minifier.php
Created Aug 27, 2017 — forked from Rodrigo54/php-html-css-js-minifier.php
PHP Function to Minify HTML, CSS and JavaScript
View php-html-css-js-minifier.php
<?php
/**
* -----------------------------------------------------------------------------------------
* Based on `https://github.com/mecha-cms/mecha-cms/blob/master/system/kernel/converter.php`
* -----------------------------------------------------------------------------------------
*/
// HTML Minifier
function minify_html($input) {
You can’t perform that action at this time.