Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.com | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
| * Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
| */ | |
| $args = array( |
| <?php | |
| // Variables used in this script: | |
| // $summary - text title of the event | |
| // $datestart - the starting date (in seconds since unix epoch) | |
| // $dateend - the ending date (in seconds since unix epoch) | |
| // $address - the event's address | |
| // $uri - the URL of the event (add http://) | |
| // $description - text description of the event | |
| // $filename - the name of this file for saving (e.g. my-event-name.ics) | |
| // |
Works pretty well in capturing the full URL when using this in a search (like in Sublime Text 2).
(https?|ftps?)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/?
The following will capture the URL in a SQL dump including escaped quotation marks.
| #!/bin/bash | |
| docker run -it --name squid-deb-proxy-cache -v /var/cache/squid-deb-proxy busybox true | |
| docker run -d --restart=always --name squid-deb-proxy --volumes-from squid-deb-proxy-cache -p 0.0.0.0:48000:8000 pmoust/squid-deb-proxy |
| # be sure to comment out the require 'capistrano/deploy' line in your Capfile! | |
| # config valid only for Capistrano 3.1 | |
| lock '3.2.1' | |
| set :application, 'my-cool-application' | |
| # the base docker repo reference | |
| set :name, "johns-stuff/#{fetch(:application)}" |
| git clone <repo-address> | |
| git tag -l | |
| git checkout <tag-name> | |
| git branch -D master | |
| git checkout -b master |
| #! /bin/bash | |
| # HEADS UP! Make sure to use '*' or a valid hostname for the FDQN prompt | |
| echo 01 > ca.srl | |
| openssl genrsa -des3 -out ca-key.pem | |
| openssl req -new -x509 -days 365 -key ca-key.pem -out ca.pem | |
| openssl genrsa -des3 -out server-key.pem | |
| openssl req -new -key server-key.pem -out server.csr |
| #!/bin/sh | |
| BOOT2DOCKER_CERTS_DIR=/var/lib/boot2docker/certs | |
| CERTS_DIR=/etc/ssl/certs | |
| CAFILE=${CERTS_DIR}/ca-certificates.crt | |
| for cert in $(/bin/ls -1 ${BOOT2DOCKER_CERTS_DIR}); do | |
| SRC_CERT_FILE=${BOOT2DOCKER_CERTS_DIR}/${cert} | |
| CERT_FILE=${CERTS_DIR}/${cert} | |
| HASH_FILE=${CERTS_DIR}/$(/usr/local/bin/openssl x509 -noout -hash -in ${SRC_CERT_FILE} 2>/dev/null) |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.box = "precise64" | |
| config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
| config.vm.network :private_network, ip: "192.168.33.10" | |
| config.ssh.forward_agent = true |