Skip to content

Instantly share code, notes, and snippets.

@z448
Last active November 20, 2016 19:25
Show Gist options
  • Save z448/b4618a18c5bd2571cc3c to your computer and use it in GitHub Desktop.
Save z448/b4618a18c5bd2571cc3c to your computer and use it in GitHub Desktop.
list users public gists
perl -e 'print "add user and <Enter> and <Ctrl-D>:";
$url=q|https://gist.github.com|;
while(<>){ $g = $url . q|/| . $_ }; open( my $GS,"-|","curl -#ksL $g");
while(<$GS>){
if( m|tr.+ate| ){
s/(.*?)(\=\")(.*?)(\".*?\>)(.*?\>)(.*?)(\<.*)/$3$6/;
$gist->{$6} = $3;
}};
for(keys %$gist){ print $_ . " -\> " . $url . $gist->{$_} . "\n" };
'
# theos enviroment
MYHOST=$(uname -a | cut -d' ' -f2);
export THEOS=/var/theos
export PATH=$THEOS/bin:$PATH
export THEOS_DEVICE_IP=$MYHOST THEOS_DEVICE_PORT=22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment