Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| copy($(".checklist-item:not(.checklist-item-checked)").map(function() { | |
| var e = $(this), | |
| item = e.find(".checklist-item-details-text").text() | |
| if (e.hasClass("checklist-item-state-complete")) { | |
| item = item + " (DONE)" | |
| } | |
| return item | |
| }).get().join("\n")) |
| # | |
| # Name: nginx-tls.conf | |
| # Auth: Gavin Lloyd <gavinhungry@gmail.com> | |
| # Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating | |
| # | |
| # Enables HTTP/2, PFS, HSTS and OCSP stapling. Configuration options not related | |
| # to SSL/TLS are not included here. | |
| # | |
| # Additional tips: | |
| # |
| server { | |
| listen 80; | |
| server_name example.com; | |
| root /var/www/example.com; | |
| error_log /var/log/example.com/error.log; | |
| access_log /var/log/example.com/access.log; | |
| location / { | |
| try_files $uri @silverstripe; | |
| } |
| #!/usr/bin/env bash | |
| # Upgrade Base Packages | |
| sudo apt-get update | |
| sudo apt-get upgrade -y | |
| # Install Web Packages | |
| sudo apt-get install -y build-essential dkms re2c apache2 php5 php5-dev php-pear php5-xdebug php5-apcu php5-json php5-sqlite \ | |
| php5-mysql php5-pgsql php5-gd curl php5-curl memcached php5-memcached libmcrypt4 php5-mcrypt postgresql redis-server beanstalkd \ | |
| openssh-server git vim python2.7-dev |
| <?php | |
| //redirect any draft/trashed posts | |
| add_action('wp', 'trash_redirect'); | |
| function trash_redirect(){ | |
| if ( !current_user_can( 'edit_pages' ) ) { | |
| if (is_404()){ | |
| global $wp_query, $wpdb; | |
| $page_id = $wpdb->get_var( $wp_query->request ); | |
| $post_status = get_post_status( $page_id ); | |
| if($post_status == 'trash' || $post_status == 'draft'){ |
| # docker build -t="rails" . | |
| FROM ubuntu:12.04 | |
| RUN apt-get update | |
| ## MYSQL | |
| RUN apt-get install -y -q mysql-client libmysqlclient-dev | |
| ## RUBY |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| #### Contents of the preconfiguration file (for wheezy) | |
| ### Localization | |
| d-i debian-installer/locale string en_US.UTF-8 | |
| d-i debian-installer/keymap select us | |
| d-i keymap select us | |
| ### Network configuration | |
| d-i netcfg/choose_interface select auto | |
| ### Mirror settings |
| [www] | |
| ping.path = /ping |