Skip to content

Instantly share code, notes, and snippets.

Ryan Walters ryanwalters

Block or report user

Report or block ryanwalters

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ryanwalters
ryanwalters / cygwinlist.md
Created Oct 26, 2017 — forked from erikvip/cygwinlist.md
Import/Export Cygwin List of installed packages
View cygwinlist.md

Import & Export Cygwin List of installed Packages

If you want to go from 32 to 64 bit Cygwin but keep all the packages[1], you might find yourself in a spot where you would like to export the list of cygwin packages and also be able to install cygwin with all these packages again. I will tell you how. Open your Cygwin shell and enter

cygcheck -c -d | sed -e "1,2d" -e 's/ .*\$//' > packagelist

This will simply dump a list of installed packages. To install Cygwin 64 with these packages selected, download setup-x86_64[2] and execute it with the command line parameters

./setup-x86_64 -P `awk 'NR==1{printf \$1}{printf ",%s", \$1}' packagelist`
@ryanwalters
ryanwalters / index.volt
Last active Aug 29, 2015
Phalcon 1.2.6: $this->getContent() returns nothing
View index.volt
{# /views/index.volt #}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
{{ get_title() }}
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
{{ stylesheet_link('css/style.css') }}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@ryanwalters
ryanwalters / index.php
Created Feb 14, 2014
Phalcon 1.2.6: $dispatcher->getControllerName() not returning a string?
View index.php
<?php
// /public/index.php
try {
// Read the configuration
$config = new Phalcon\Config\Adapter\Ini('../app/config/config.ini');
// Register an autoloader
$loader = new Phalcon\Loader();
$loader->registerDirs(array(
You can’t perform that action at this time.