git clone https://gist.github.com/ishu3101/6fb35afd237e42ef25f9
mv 6fb35afd237e42ef25f9 ConvertTo-Markdown
cd ConvertTo-Markdown
#!/usr/bin/env node | |
var args = process.argv.slice(2); | |
var input = args[0]; | |
var isTTY = process.stdin.isTTY; | |
var stdin = process.stdin; | |
var stdout = process.stdout; | |
// If no STDIN and no arguments, display usage message |
image: philippheuer/docker-gitlab-powershell | |
test: | |
stage: test | |
script: | |
# run PowerShell script | |
- powershell -File build.ps1 | |
# run PowerShell Command | |
- powershell -Command "Get-Date" | |
{ | |
"basics": { | |
"name": "Your first and last name", | |
"label": "", | |
"picture": "", | |
"email": "Your email address", | |
"phone": "A phone number, with any formatting you like. E.g. (555) 555-5555.", | |
"degree": "", | |
"website": "Your website URL", | |
"summary": "A one-sentence to one-paragraph overview text. Do not include any line-breaks.", |
# Get Free & Total Disk Space | |
Get-WmiObject -Class win32_logicaldisk -ComputerName $computerName | ft DeviceID, @{Name="Free Disk Space (GB)";e={$_.FreeSpace /1GB}}, @{Name="Total Disk Size (GB)";e={$_.Size /1GB}} -AutoSize | |
# Get Computer Model | |
Get-ComputerInfo | Select -ExpandProperty CsModel | |
# Get OS | |
Get-ComputerInfo | Select WindowsProductName |
Function Get-InstalledPrograms { | |
<# | |
.Synopsis | |
Fetches the list of installed software on a system via the Windows Registry. | |
.Description | |
Returns a list of software installed on a system determined from installations that have | |
registered themselves in the Windows Registry. This cmdlet will parse both the native key | |
and the WOW64 key if it exists to ensure a complete list of software installs is returned. | |
.Notes | |
This cmdlet is particularly useful on Server Core installations where the Programs and |
Color | Reflects |
---|---|
Greyscale | Power, elegance, reliability, intelligence, modesty, maturity, functionality, and formality |
Blue | Depth and stability, trust, loyalty, wisdom, confidence, intelligence, faith, truth, heaven, tranquility and calmness |
Teal | Creativity, inspiration, credibility, reliability, spiritual development |
Green | Nature, growth, harmony, freshness, fertility, safety, healing, money |
Purple | Royalty, power, nobility, luxury, ambition, wealth, extravagance, wisdom, dignity, independence, creativity, mystery, and magic |
Pink | Girly, sweet, innocent, sensitive, passionate, playful, sensual and loving |
Red | Power, energy, passion, desire, speed, strength, love, fire, intensity, and celebration |
Orange | Joy, enthusiasm, fascination, happiness, creativity, determination, attraction, success, encouragement, and stimulation |
$osInfo = Get-CimInstance Win32_OperatingSystem | |
$computerInfo = Get-CimInstance Win32_ComputerSystem | |
$diskInfo = Get-CimInstance Win32_LogicalDisk | |
$cpuinfo = Get-WmiObject Win32_Processor | |
[hashtable]$objectProperty = @{} | |
$objectProperty = [ordered]@{ | |
ComputerName = $computerInfo.Name | |
OS = $osInfo.Caption + " $($osInfo.OSArchitecture)" |
# 3 ways to loop through each character in a string | |
$text = "hello world"; | |
for $i (0..length($text)-1){ | |
$char = substr($text, $i, 1); | |
print "Index: $i, Text: $char \n"; | |
} | |
foreach $char (split //, $text) { |
javascript:void(window.open("http://translate.google.com/#auto|en|" +document.getSelection())) |