=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
BrainFuck Programming Tutorial by: Katie
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| Import-Module ActiveDirectory | |
| $USERS = Import-CSV c:\scripts\usersupdate.csv | |
| $USERS|Foreach{ | |
| Set-ADUSer -Identity $_.samaccountname -TelephoneNumber $_.TelephoneNumber -scriptPath $_.LoginScript -homeDirectory $_.HomeDirectory -title $_.JobTitle -department $_.Department -telephoneNumber $_.WorkPhone | |
| -facsimileTelephoneNumber $_.Fax -office $_.Office -streetAddress $_.StreetAddress -l $_.City -st $_.State -postalCode $_.PostalCode -c $_.Country -company $_.Company -manager $_.ManagerAdspath } |
| # This is a super **SIMPLE** example of how to create a very basic powershell webserver | |
| # 2019-05-18 UPDATE — Created by me and and evalued by @jakobii and the comunity. | |
| # Http Server | |
| $http = [System.Net.HttpListener]::new() | |
| # Hostname and port to listen on | |
| $http.Prefixes.Add("http://localhost:8080/") | |
| # Start the Http Server |
| MY_BASH_BLUE="\033[0;34m" #Blue | |
| MY_BASH_NOCOLOR="\033[0m" | |
| HISTTIMEFORMAT=`echo -e ${MY_BASH_BLUE}[%F %T] $MY_BASH_NOCOLOR ` | |
| HISTSIZE=20000 | |
| HISTFILESIZE=20000 |
| stats = Sidekiq::Stats.new | |
| stats.queues | |
| stats.enqueued | |
| stats.processed | |
| stats.failed |
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
| [Microsoft.Office.Interop.Outlook.Application] $outlook = New-Object -ComObject Outlook.Application | |
| $entries = $outlook.Session.GetGlobalAddressList().AddressEntries | |
| $count = $entries.Count | |
| $count | |
| foreach($entry in $entries) | |
| { | |
| [console]::WriteLine("{0}: {1}", $entry.Name, $entry.GetExchangeUser().MobileTelephoneNumber) | |
| } |
| #Source www.cze.cz | |
| #This script is tested with "Cisco AnyConnect Secure Mobility Client version 3.1.00495" | |
| # Usage: & '.\Cisco_Anyconnect.ps1' [-Server <server name or ip>] [-Group <group>] [-User <user>] [-Password <password>] | |
| #Please change following variables | |
| #IP address or host name of cisco vpn, Username, Group and Password as parameters | |
| param ( | |
| [string]$Server = $( Read-Host "Input server, please" ), |
| Add-Type -AssemblyName System.Windows.Forms | |
| while ($true) | |
| { | |
| $Pos = [System.Windows.Forms.Cursor]::Position | |
| $x = ($pos.X % 500) + 1 | |
| $y = ($pos.Y % 500) + 1 | |
| [System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y) | |
| Start-Sleep -Seconds 10 | |
| } |
Create a new repository, or reuse an existing one.
Generate a new SSH key:
ssh-keygen -t rsa -C "[email protected]"
Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings (https://github.com/settings/keys).
Test SSH key: