This file contains hidden or 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
<?php | |
function randomPassword( $len = 8, $ucfirst = false, $spchar = false ){ | |
/* Programmed by Christian Haensel | |
* [email protected] | |
* http://www.chftp.com | |
* | |
* Exclusively published on weberdev.com. | |
* If you like my scripts, please let me know or link to me. | |
* You may copy, redistribute, change and alter my scripts as | |
* long as this information remains intact. |
This file contains hidden or 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/bash | |
# | |
# Get basic info about audio / video file (MP4, MP3, WAV, WEBM, ...) by ffprobe | |
# - Usually you should have ffmpeg on your system, including ffprobe | |
# - ffprobe gives you MUCH MUCH (MUCH) information | |
# - this little helper script reduces ffprobe's info hell to typical core information | |
# - use this script as a template for personal information interests | |
# - don't get mislead by "-v error" - it means "don't get verbose WITHOUT errors" | |
# - information is given as JSON for readability & easy automated consumptione |
This file contains hidden or 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 | |
# https://gist.github.com/BobbyRyterski/7a511b96ece47655b17d | |
# based on http://stackoverflow.com/q/14471692 | |
readonly BASE62=($(echo {0..9} {a..z} {A..Z})) | |
base62_encode() { | |
local out= | |
for i in $(bc <<< "obase=62; $1"); do |
This file contains hidden or 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
MsgBox "here i am again ..." |
This file contains hidden or 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
' | |
' function getMacAddressForIpRange | |
' | |
' Returns the MAC address of the current computer for a given internet (IP) connection, i.e. that of the network adapter with which an IP address out of a given range of IP addresses is connected. The restriction to an IP address range avoids to wrongly retrieve virtual adapters like VirtualBox. Note that technically only the first matching MAC address is returned, assuming that only one connection to the same net exists per machine. | |
' | |
' !! May not work in virtual machines. | |
' | |
' @license GPL 2 (http://www.gnu.org/licenses/gpl.html) | |
' @author hh.lohmann <[email protected]> | |
' @version 2014-02-26 10:15 |