tmux new [-s name] [cmd](:new) - new session
tmux ls(:ls) - list sessionstmux switch [-t name](:switch) - switches to an existing session
| #!/bin/bash | |
| # vim: set sts=4 sw=4 et tw=0 : | |
| # | |
| # License: BSD | |
| AUTOMAGIC_MODE="true" | |
| OPACITY_100="0xffffffff" | |
| OPACITY_0="0x0" | |
| : ${XWININFO:=$(type -P xwininfo)} |
| #!/usr/bin/env perl | |
| use strict; | |
| use LWP::Simple; | |
| sub pick { $_[rand @_] } | |
| my $text = get "https://gist.github.com/shanselman/5422230/raw/9863d88bde2f9dcf6b2e7a284dd4a428afdc8c8b/gistfile1.txt"; | |
| my @samples = split /\|\n/, $text; | |
| my $template = pick @samples; |
| abstract class Comment | |
| { | |
| public abstract void Generate(StringBuilder builder); | |
| public string Generate() | |
| { | |
| StringBuilder builder = new StringBuilder(); | |
| this.Generate(builder); | |
| return builder.ToString(); | |
| } |
| { | |
| {I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It | |
| is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as | |
| you did, the {internet|net|web} will be {much more|a lot more} | |
| useful than ever before.| | |
| I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!| | |
| {I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} | |
| your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any? | |
| {Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe. | |
| Thanks.| |
| grep -r --color --exclude-dir={custom,lib,scripts} --exclude={*.xml,error_log} "beta" . |
| Byobu Commands | |
| ============== | |
| byobu Screen manager | |
| Level 0 Commands (Quick Start) | |
| ------------------------------ | |
| <F2> Create a new window |
| #!/usr/bin/env perl | |
| use 5.010; | |
| use strict; | |
| use warnings; | |
| use Benchmark; | |
| use Data::Dumper; | |
| timethese(1000000, { | |
| perl => sub { sub_perl(100) }, | |
| c => sub { sub_c(100) }, |
tl;dr We might need a standard build file to build a module from Git repository, especially for the ones using Module::Install or dzil.
When an author of CPAN module uses an authoring tool that generates build files when shipping them to CPAN, the git repository usually doesn't have enough files to build, test and install the module.
For example, if dzil (Dist::Zilla) is used, the repository only conatains dist.ini and there's no Makefile.PL or Build.PL so standard CPAN installers or Continuous Integration tools don't know how to run tests on it.
| #!/usr/bin/env perl | |
| use Mojolicious::Lite; | |
| use Mojo::JSON 'j'; | |
| use Mojo::Asset::Memory; | |
| use File::Spec; | |
| helper send_ready_signal => sub { | |
| my $self = shift; | |
| my $payload = { ready => \1 }; |