Skip to content

Instantly share code, notes, and snippets.

colemanw / font-awesome-mime-type-icons.php
Last active Nov 9, 2021 — forked from guedressel/font-awesome-mime-type-icons.php
Font Awesome File Icons: Mapping MIME Types to correct icon classes
View font-awesome-mime-type-icons.php
* Get font awesome file icon class for specific MIME Type
* @see
function ($mime_type) {
// List of official MIME Types:
$icon_classes = array(
marisks / CreatedAndModifiedDateInterceptor.cs
Created Feb 27, 2016
Entity Framework soft delete, modiefied and created date interceptors
View CreatedAndModifiedDateInterceptor.cs
using System;
using System.Data.Entity.Core.Common.CommandTrees;
using System.Data.Entity.Core.Metadata.Edm;
using System.Data.Entity.Infrastructure.Interception;
using System.Linq;
public class CreatedAndModifiedDateInterceptor : IDbCommandTreeInterceptor
public const string CreatedColumnName = "Created";
public const string ModifiedColumnName = "Modified";
View ios-8-web-app.html
<!doctype html>
<!-- -->
<title>iOS 8 web app</title>
jonmaim / zip.php
Last active May 17, 2021
PHP script to remotely create zip archives of your FTP
View zip.php
* This script will backup your web site by remotely archiving all files on the root FTP directory.
* It will work even if your web server is memory limited buy splitting zips in several arhive files it they are too many files.
* All zip files will be stored in a directory called temporary which must be writable.
* How to use it:
* - Place the script at the root of your FTP.