package main
func reverse(str string) string {
if len(str) == 0 || str == " " {
return str
}
index := 0
for index < len(str) && str[index] != ' ' {
index = index + 1
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
#!/bin/python | |
import glob | |
import exifread | |
from dateutil.parser import parse | |
files = glob.glob("*.JPG") | |
for file in files: | |
fh = open(file,"rb") | |
tags = exifread.process_file(fh) |
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
use strict; | |
use warnings; | |
my @lines = `ss -atp`; | |
my %hash; | |
for my $line (@lines) { | |
if($line =~ /pid=(\d{1,9})/) { | |
$hash{$1}++; | |
} | |
} |
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/env perl | |
use LWP::UserAgent; | |
use HTTP::Request; | |
use JSON::Parse; | |
my $ua = LWP::UserAgent->new(); | |
$ua->agent("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"); | |
# if you nedd proxy , don`t foreget it | |
# $ua->proxy(https => 'http://proxy.exmaple:3128'); | |
# loop all stars util get empty response |
package main
func reverse(str string) string {
if len(str) == 0 || str == " " {
return str
}
index := 0
for index < len(str) && str[index] != ' ' {
index = index + 1
NewerOlder