Skip to content

Instantly share code, notes, and snippets.

View drlinux's full-sized avatar
🤘
I may be slow to respond.

Ibrahim YILMAZ drlinux

🤘
I may be slow to respond.
View GitHub Profile
@drlinux
drlinux / apache.conf
Created September 30, 2015 06:07 — forked from jjulian/apache.conf
Apache rewrite rules to show a maintenance page
# Capistrano-style: if maintenance.html exists, it will be served for any request
# other than style and images. Use status code 503 to tell crawlers to come back later.
ErrorDocument 503 /system/maintenance.html
RewriteEngine On
RewriteCond %{REQUEST_URI} !\.(css|gif|jpg|png)$
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ - [redirect=503,last]
@paulirish
paulirish / how-to-view-source-of-chrome-extension.md
Last active November 29, 2025 17:23
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

@jm42
jm42 / GroupIterator.php
Created October 26, 2014 20:32
PHP `itertools.groupby` implementation
<?php
class GroupIterator implements Iterator
{
protected $keyfunc;
protected $iter;
protected $key = null;
protected $value = null;
@JamesMGreene
JamesMGreene / gitflow-breakdown.md
Last active December 9, 2025 06:56
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@mesuutt
mesuutt / aras_kargo_soap.py
Last active February 25, 2016 12:36
ArasKargo Soap API call example with Python suds library.
import logging
from suds.xsd.doctor import ImportDoctor, Import
from suds.client import Client, WebFault
logger = logging.getLogger(__name__)
wsdl_url = 'http://appls-srv.araskargo.com.tr/arascargoservice/arascargoservice.asmx?WSDL'
client = None
@slogsdon
slogsdon / 01_readme.md
Last active April 2, 2016 22:19
Erlang: User authentication with bcrypt and ChicagoBoss
@sloria
sloria / bobp-python.md
Last active December 8, 2025 02:37
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@macintux
macintux / erlang-resources.md
Last active November 11, 2025 17:41
Erlang online resources

This is not intended to be comprehensive or authoritative, just free online resources I've found valuable while learning more about Erlang.

Joe Armstrong's Swedish Institute of Computer Science homepage (Wayback Machine)

https://web.archive.org/web/20070429181654/http://www.sics.se/~joe/

Similar lists

@creack
creack / Dockerfile
Created June 19, 2013 21:52
Dockerfile for prestashop/lamp
# PrestaShop
#
# VERSION 0.1
# DOCKER-VERSION 0.2
from ubuntu:12.04
# make sure the package repository is up to date
run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
run apt-get update
@creack
creack / prestashop.sh
Created June 19, 2013 21:51
prestasthop orchestration for docker
#!/bin/sh
# Set conveniance variables0
PS_PATH=/var/www/prestashop
PS_SETTINGS_FILE=$PS_PATH/config/settings.inc.php
PS_SETTINGS_TEMPLATE=$PS_PATH/config/settings.inc.php.template
# Build the base PrestaShop image from the Dockerfile
IMAGE_ID=$(cat Dockerfile | docker build - | tail -1)