Skip to content

Instantly share code, notes, and snippets.

@kizu
kizu / dabblet.css
Created November 28, 2012 13:04
CSS Dot Leaders With Textured Background
/**
* CSS Dot Leaders With Textured Background
*/
html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
font: 20px/1.4 Helvetica, Arial sans-serif
}
@vielhuber
vielhuber / .htaccess
Last active February 24, 2023 06:01
Apache: htaccess force www and https ssl #server
# force HTTPS and www.
RewriteEngine On
RewriteCond %{HTTP_HOST} (?!^www\.)^(.+)$ [OR]
RewriteCond %{HTTPS} off
RewriteRule ^ https://www.%1%{REQUEST_URI} [R=301,L]
# alternative way
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
@craigvantonder
craigvantonder / install-configure-letsencrypt.md
Last active April 26, 2022 08:58
Install and configure LetsEncrypt on Ubuntu Server 14.04 & 16.04 (Apache)
#!/bin/bash
# https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-14-04
# Download the Let’s Encrypt Client
cd /usr/local/sbin
sudo wget https://dl.eff.org/certbot-auto
sudo chmod a+x /usr/local/sbin/certbot-auto
# Set Up the SSL Certificate
#!/bin/bash
# https://github.com/svpernova09/cloud9-php71/blob/master/install.sh
# ajouter le depot de php72
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update -y
# installer les modules nécessaires et utiles pour php72
sudo apt-get install libpcre3 -y
sudo apt-get install php7.2 php7.2-curl php7.2-cli php7.2-gd php7.2-intl php7.2-json php7.2-mysql php7.2-opcache php7.2-bcmath php7.2-mbstring php7.2-soap php7.2-xml php7.2-zip php-sqlite3 -y
@bradtraversy
bradtraversy / docker-help.md
Last active November 15, 2024 17:06
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@markheath
markheath / docker-compose-v1.yml
Last active September 6, 2024 01:23
Elasticsearch docker compose examples
version: '2.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.1
container_name: elasticsearch
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
@kisildev
kisildev / class-widget.php
Last active October 17, 2020 11:00
WP widget
/**
* new WordPress Widget format
* Wordpress 2.8 and above
* @see http://codex.wordpress.org/Widgets_API#Developing_Widgets
*/
class PREFIX_Name_Widget extends WP_Widget {
/**
* Constructor
*
@Beyarz
Beyarz / Dockerfile
Last active March 14, 2024 10:52 — forked from jcavat/Dockerfile
Updated version of: docker-compose with Php 7.2.6, Mysql 8.0.16, Phpmyadmin 4.8 & Apache
FROM php:7.2.6-apache
RUN docker-php-ext-install mysqli