Playing with generators
A Pen by Dariusz Parys on CodePen.
| Set-Location $env:USERPROFILE | |
| If ( ! ( Test-Path $PROFILE ) ) { New-Item -Force -ItemType File -Path $PROFILE; Add-Content -Path $PROFILE -Encoding UTF8 -Value "# Powershell Profile"; } | |
| Set-ExecutionPolicy Bypass -Scope CurrentUser -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
| choco feature enable --name allowGlobalConfirmation | |
| # Administrator Powershell | |
| choco install firacode | |
| choco install cascadiafonts | |
| choco install git.install --params "/GitAndUnixToolsOnPath /WindowsTerminal /SChannel" |
| sudo apt update | |
| sudo apt upgrade | |
| # --- just alienware 17 R2 related | |
| wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.169.3_all.deb | |
| sudo dpkg -i linux-firmware*.deb | |
| sudo modprobe -r ath10k_pci && sudo modprobe ath10k_pci | |
| # --- end | |
| # base stuff |
| image: dariuszparys/some-edge-module:1.0.0-preview018 | |
| manifests: | |
| - | |
| image: dariuszparys/some-edge-module:1.0.0-preview018-linux-amd64 | |
| platform: | |
| architecture: amd64 | |
| os: linux | |
| - | |
| image: dariuszparys/some-edge-module:1.0.0-preview018-linux-arm32v7 | |
| platform: |
| using System; | |
| using System.Threading.Tasks; | |
| namespace demo | |
| { | |
| class Program | |
| { | |
| static async Task Main(string[] args) | |
| { | |
| await Task.Delay(1000); |
| { | |
| "workbench.colorTheme": "Cobalt2", | |
| "editor.fontFamily": "Fira Code", | |
| "editor.fontSize": 17, | |
| "editor.lineHeight": 25, | |
| "editor.letterSpacing": 0.5, | |
| "files.trimTrailingWhitespace": true, | |
| "editor.fontWeight": "400", | |
| "editor.cursorStyle": "underline-thin", | |
| "editor.cursorBlinking": "solid", |
| # Function Prompt | |
| # { | |
| # $PromptData="PS $($executionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) " | |
| # $host.ui.RawUI.WindowTitle=$PromptData+'-'+(Get-Date).tostring() | |
| # } | |
| $Global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent() | |
| $UserType = "User" | |
| $CurrentUser.Groups | foreach { | |
| if ($_.value -eq "S-1-5-32-544") { |
| // This configuration is meant to be used in WSL v1 for Windows | |
| // It is also not maintained anymore, as I switched to Windows Terminal | |
| module.exports = { | |
| config: { | |
| // Disabling WebGL renderer to make font-ligatures work | |
| // https://github.com/tolbertam/hyper-font-ligatures#disabling-webgl-rendering | |
| webGLRenderer: false, | |
| // default font size in pixels for all tabs |
| # Install ZSH | |
| sudo apt install zsh | |
| # Install oh-my-zsh | |
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
| # edit ~/.bashrc add as first command | |
| bash -c zsh | |
| # install nvm |
Playing with generators
A Pen by Dariusz Parys on CodePen.
| <configuration> | |
| <system.webServer> | |
| <staticContent> | |
| <remove fileExtension=".mem" /> | |
| <mimeMap fileExtension=".mem" mimeType="application/octet-stream" /> | |
| <remove fileExtension=".data" /> | |
| <mimeMap fileExtension=".data" mimeType="application/octet-stream" /> | |
| <remove fileExtension=".memgz" /> | |
| <mimeMap fileExtension=".memgz" mimeType="application/octet-stream" /> | |
| <remove fileExtension=".datagz" /> |