Skip to content

Instantly share code, notes, and snippets.

@Logioniz
Logioniz / redirect.pl
Last active November 17, 2021 17:17
Redirect from http to https with mojolicious
#!/usr/bin/perl
# To run need listen two ports: 80, 443
# sudo morbo 12.pl -l https://*:443?cert%3D%2Fhome%2Flogioniz%2Fcert%2Fserver.crt%26key%3D%2Fhome%2Flogioniz%2Fcert%2Fserver.key%26verify%3D0x00 -l http://*:80
# go to url in browser http://your_ip/qwe/asd
use Mojo::Base -strict;
use Mojolicious::Lite;
@avrilcoghlan
avrilcoghlan / calc_pc_id_between_seqs.pl
Created April 4, 2013 14:50
Perl script to calculate (global) percent identity between each pair of protein sequences in a fasta file.
#!/usr/local/bin/perl
=head1 NAME
calc_pc_id_between_seqs.pl
=head1 SYNOPSIS
calc_pc_id_between_seqs.pl input_fasta output outputdir ggsearch
where input_fasta is the input fasta file of sequences,