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
param( | |
[string]$userProfilePath="C:\Users\user", | |
[string]$fileToFInd="*bria*.exe" | |
) | |
$searchRes = Get-ChildItem -Path $userProfilePath -Recurse -File -Filter $fileToFInd | |
if (-not $searchRes) | |
{ | |
Out-Host "Installer was not found - in $userProfilePath" |
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 bash | |
onedrivecmd --version > /dev/null || { echo "Run `pip install onedrivecmd` and try again."; exit 1; } | |
[ $# -eq 0 ] && { echo "Help: m3u_from_onedrive.sh <folder> [playlist name]"; exit 1; } | |
folder=$1 | |
IFS=$'\n' files=( $(onedrivecmd list "od:$folder" | cut -f1 -d$'\t' | grep -v '/$' | xargs -0) ) | |
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
export PACKAGESITE=http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/`uname -r`/packages/Latest/ |
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
require 'pathname' | |
require 'whois' | |
require 'resolv' | |
# for file in *.log; do cat $file | grep -vi '+http://yandex.com/bots' | grep -vi 'googlebot' > $file.woutbots; done | |
# for file in *.woutbots; do cat $file | cut -f1 -d' ' > $file.ips; done | |
# for file in *.ips; do cat $file | sort | uniq > $file.uniq; done | |
a_folder = ARGV[0] unless ARGV.empty? | |
b_folder = ARGV[1] unless ARGV.empty? && ARGV.length != 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
require 'date' | |
apache_log = ARGV[0] unless ARGV.empty? | |
@cur_date = nil | |
@next_date = nil | |
File.open(apache_log) do |f| | |
for line in f |