This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create a set of links for the Drupal project page usage from page 5 to 22 (the ones containing modules | |
# that are installed on 1,000-10,000 websites | |
# See https://www.drupal.org/node/2764899 | |
# Drupal contrib - Highly Critical - Remote code execution PSA-2016-001 | |
seq -f "https://www.drupal.org/project/usage?page=%02g" 5 22 >> urls.txt | |
# Download the content from all the pages | |
wget -i urls.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} | |
This block lists all the rest of the posts in a page's first category. | |
{% endcomment %} | |
{% assign first_category_name = page.categories.first %} | |
{% for category in site.categories %} | |
{% if category.first == first_category_name %} | |
{% assign first_category_posts = category[1] %} | |
{% endif %} | |
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone git@github.com:mistermarco/mistermarco.github.io.git | |
cd _posts | |
vi 2013-11-03-new-post.markdown | |
jekyll serve --watch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("table").addClass('table'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/perl | |
use Getopt::Std; | |
sub HELP_MESSAGE() { | |
my $fh = shift; | |
printf $fh <<END_HELP; | |
Usage: $0 \[-c\] \[-n\] \[-y\] \[length\] | |
Create a password length characters long; length defaults to 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre> | |
<?php | |
$site_name = exec('whoami'); | |
echo "Starting Testing...\n"; | |
echo 'Running as ' . $site_name . "\n"; | |
echo 'Server that responded: ' . exec('uname -a') . "\n\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use File::Find; | |
use Getopt::Long; | |
use Pod::Usage; | |
use Term::ANSIColor; | |
use strict; | |
my $default_overhead_size = 2000; | |
my $default_page_size = 2500; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/perl | |
# ./pwgen -c 64 | pbcopy | |
use Getopt::Std; | |
sub HELP_MESSAGE() { | |
my $fh = shift; | |
printf $fh <<END_HELP; | |
Usage: $0 \[-c\] \[-n\] \[-y\] \[length\] |
NewerOlder