Happy Holidays!

fuz1onfuz1on Member Posts: 961 ■■■■□□□□□□
I just wanted to wish everyone on the forum a wondrous holiday season and a spectacular end of 2015 - and beyond. Good luck on your past, present and future endeavors as well as all the best including peace and prosperity. icon_cheers.gif
timku.com(puter) | ProHacker.Co(nsultant) | ITaaS.Co(nstultant) | ThePenTester.net | @fuz1on
Transmosis | http://transmosis.com | LinkedIn | https://linkedin.com/in/t1mku
If evil be spoken of you and it be true, correct yourself, if it be a lie, laugh at it. - Epictetus
The only real failure in life is not to be true to the best one knows. - Buddha
If you are not willing to learn, no one can help you. If you are determined to learn, no one can stop you. - Unknown

Comments

  • danny069danny069 Member Posts: 1,025 ■■■■□□□□□□
    Same to you! Merry Christmas!
    I am a Jack of all trades, Master of None
  • fuz1onfuz1on Member Posts: 961 ■■■■□□□□□□
    Thanks danny.
    timku.com(puter) | ProHacker.Co(nsultant) | ITaaS.Co(nstultant) | ThePenTester.net | @fuz1on
    Transmosis | http://transmosis.com | LinkedIn | https://linkedin.com/in/t1mku
    If evil be spoken of you and it be true, correct yourself, if it be a lie, laugh at it. - Epictetus
    The only real failure in life is not to be true to the best one knows. - Buddha
    If you are not willing to learn, no one can help you. If you are determined to learn, no one can stop you. - Unknown
  • fuz1onfuz1on Member Posts: 961 ■■■■□□□□□□
    Hella haters...
    timku.com(puter) | ProHacker.Co(nsultant) | ITaaS.Co(nstultant) | ThePenTester.net | @fuz1on
    Transmosis | http://transmosis.com | LinkedIn | https://linkedin.com/in/t1mku
    If evil be spoken of you and it be true, correct yourself, if it be a lie, laugh at it. - Epictetus
    The only real failure in life is not to be true to the best one knows. - Buddha
    If you are not willing to learn, no one can help you. If you are determined to learn, no one can stop you. - Unknown
  • Mike-MikeMike-Mike Member Posts: 1,860
    fuz1on wrote: »
    Hella haters...


    hahhaha
    Currently Working On

    CWTS, then WireShark
  • Chev ChelliosChev Chellios Member Posts: 343 ■■■□□□□□□□
    Same to you mate, all the best for the New Year :)
  • QordQord Member Posts: 632 ■■■■□□□□□□
    fuz1on wrote: »
    I just wanted to wish everyone on the forum a wondrous holiday season and a spectacular end of 2015 - and beyond. Good luck on your past, present and future endeavors as well as all the best including peace and prosperity. icon_cheers.gif
    Yes yes, same to you!!! I'm late to this party, but I brought a powershell door prize! Just something I saw on a powershell forum, go ahead and run it icon_lol.gif
    # inspired by: 
    # http://forums.microsoft.com/TechNet-FR/ShowPost.aspx?PostID=2555221&SiteID=45
    $notes = @'
      4A4 4A4 2A4 4A4 4A4 2A4 4A4 4C4 4F3 8G3 1A4 
      4Bb4 4Bb4 4Bb4 8Bb4 4Bb4 4A4 4A4 8A4 8A4 4A4 4G3 4G3 4A4 2G3 2C4 
      4A4 4A4 2A4 4A4 4A4 2A4 4A4 4C4 4F3 4G3 1A4 4Bb4 4Bb4 4Bb4 4Bb4 
      4Bb4 4A4 4A4 8A4 8A4 4C4 4C4 4Bb4 4G3 1F3 4C3 4A4 4G3 4F3 2C3 8C3 8C3  
      4C3 4A4 4G3 4F3 1D3 4D3 4Bb4 4A4 4G3 1E3 4C4 4C4 4Bb4 4G3 
      1A4 4C3 4A4 4G3 4F3 1C3 4C3 4A4 4G3 4F3 1D3 
      4D3 4Bb3 4A4 4G3 4C4 4C4 4C4 8C4 8C4 4D4 4C4 4Bb4 4G3 4F3 2C4 4A4 4A4 2A4 
      4A4 4A4 2A4 4A4 4C4 4C3 8G3 1A4 4Bb4 4Bb4 4Bb4 8Bb4 4Bb4 4A4 4A4 8A4 8A4 
      4A4 4G3 4G3 4A4 2G3 2C4 4A4 4A4 2A4 4A4 4A4 2A4 4A4 4C4 4F3 8G3 
      1A4 4Bb4 4Bb4 4Bb4 4Bb4 4Bb4 4A4 4A4 8A4 8A4 4C4 4C4 4Bb4 4G3 1F3
    '@
    
    # Note is given by fn=f0 * (a)^n
    # a is the twelth root of 2
    # n is the number of half steps from f0, positive or negative
    # f0 used here is A4 at 440 Hz
    
    $StandardDuration = 1000
    $f0 = 440
    $a = [math]::pow(2,(1/12)) # Twelth root of 2
    
    function Get-Frequency([string]$note)
    {
      # n is the number of half steps from the fixed note
      $null = $note -match '([A-G#]{1,2})(\d+)'
      $octave = ([int] $matches[2]) - 4;
      $n = $octave * 12 + ( Get-HalfSteps $matches[1] );
      $f0 * [math]::Pow($a, $n);
    }
    
    function Get-HalfSteps([string]$note)
    {
      switch($note)
      {
        'A'  { 0 }
        'A#' { 1 }
        'Bb' { 1 }
        'B'  { 2 }
        'C'  { 3 }
        'C#' { 4 }
        'Db' { 4 }
        'D'  { 5 }
        'D#' { 6 }
        'Eb' { 6 }
        'E'  { 7 }
        'F'  { 8 }
        'F#' { 9 }
        'Gb' { 9 }
        'G'  { 10 }
        'G#' { 11 }
        'Ab' { 11 }
      }
    }
    
    $notes.Split(' ') | ForEach-Object {
    
      if ($_ -match '(\d)(.+)')
      {
        $duration = $StandardDuration / ([int]$matches[1])
        $playNote = $matches[2]
        $freq = Get-Frequency $playNote
    
        [console]::Beep( $freq, $duration)
        Start-Sleep -Milliseconds 50
      }
    }
    
  • Dakinggamer87Dakinggamer87 Member Posts: 4,016 ■■■■■■■■□□
    Hope everyone had a Merry Christmas and holiday!! Blessings for all in the New Year :)
    *Associate's of Applied Sciences degree in Information Technology-Network Systems Administration
    *Bachelor's of Science: Information Technology - Security, Master's of Science: Information Technology - Management
    Matthew 6:33 - "Seek the Kingdom of God above all else, and live righteously, and he will give you everything you need."

    Certs/Business Licenses In Progress: AWS Solutions Architect, Series 6, Series 63
Sign In or Register to comment.