Skip to content

Instantly share code, notes, and snippets.

@DamChtlv
Last active June 5, 2023 19:50
Show Gist options
  • Save DamChtlv/26a7af16ee6e742f1a0a7d63c4411fad to your computer and use it in GitHub Desktop.
Save DamChtlv/26a7af16ee6e742f1a0a7d63c4411fad to your computer and use it in GitHub Desktop.
Install Chocolatey & my Windows web developer environment config (apps, fonts, browsers...) that i use daily with a double-click on this single executable file ๐Ÿš€
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco install firefox -y
choco install googlechrome -y
choco install adobereader -y
choco install winrar -y
choco install vlc -y
choco install composer -y
choco install ccleaner -y
choco install vcredist140 -y
choco install vscode -y
choco install filezilla -y
choco install teamviewer -y
choco install python -y
choco install spotify -y
choco install everything -y
choco install postman -y
choco install firacode -y
choco install lockhunter -y
choco install spacesniffer -y
choco install adobe-creative-cloud -y
choco install flow-launcher -y
choco install poedit -y
choco install tailblazer -y
choco install laragon -y
choco install rainmeter -y
choco install windynamicdesktop -y
choco install figma -y
choco install responsively -y
choco install git -y
choco install github-desktop -y
choco install beyondcompare -y
choco install clipjump -y
choco install notion -y
choco install loom -y
choco install wsl2 -y
choco install wsl-ubuntu-2004 -y
choco install fluent-terminal -y
choco install ferdi -y
choco install ferdium -y
choco install qttabbar -y
@DamChtlv
Copy link
Author

DamChtlv commented Aug 28, 2019

OS

  • Configure Dark theme in Windows Settings > Customize > Themes
  • Download & install StartAllBack (+ patch) to have correct Start menu config
  • Install QTTabBar to have tabs in Explorer (like macOS)

Browser

  • Connect Chrome / Firefox account to get all extensions / tabs back.

  • To have nice looking scrollbars in browsers (macOS like) :

    • Firefox
    • Chrome: chrome://flags/#overlay-scrollbars

Wallpapers

IDE

  • Connect VS Code using Settings sync to get all themes / extensions back.
  • Having PHP Code Sniffer installed:

composer global require "squizlabs/php_codesniffer=*"

  • Having WordPress Coding Standards installed:

composer global require dealerdirect/phpcodesniffer-composer-installer phpcompatibility/phpcompatibility-wp squizlabs/php_codesniffer wp-coding-standards/wpcs

  • Clone this repo somewhere on your drive (or you can just download this repo and unzip it but it's not going to be synced / updated)
  • Get the current path config of phpcs using:

phpcs --config-show

  • Copy the paths after "installed_paths:"
  • Paste it somewhere and append the path of your folder containing the "PilotIn" folder with a comma

For reference, mine looks like this: C:\composer\vendor/phpcompatibility/php-compatibility,C:\composer\vendor/phpcompatibility/phpcompatibility-paragonie,C:\composer\vendor/phpcompatibility/phpcompatibility-wp,C:\composer\vendor/wp-coding-standards/wpcs,C:\Users\Administrateur\Documents\PLUGINS DEV\PilotIn-Coding-Standards\PilotIn

โš ๏ธ If you have relative paths, replace them by absolute paths!

  • Give the new paths to phpcs using this command & change your/paths/goes/here:

phpcs --config-set installed_paths your/paths/goes/here

Example: phpcs --config-set installed_paths C:\composer\vendor/phpcompatibility/php-compatibility,C:\composer\vendor/phpcompatibility/phpcompatibility-paragonie,C:\composer\vendor/phpcompatibility/phpcompatibility-wp,C:\composer\vendor/wp-coding-standards/wpcs,C:\Users\Administrateur\Documents\PLUGINS DEV\PilotIn-Coding-Standards\PilotIn

  • Set the default standard as PilotIn using:

phpcs --config-set default_standard PilotIn

  • Restart your terminal to be sure everything is up to date & try this command to see if everything is set:

phpcs -i

(You should have "PilotIn" showing & you're good to go ๐Ÿš€)


If you're using VS Code:

  • Install phpcs & phpcbf extensions
  • Add this to your vscode settings:
/** Validation PHP */
"php.validate.executablePath": "php.exe",
"php.validate.run": "onType",

/** Formatte le code selon les standards "PilotIn" */
"phpcs.standard": "PilotIn",
"phpcbf.standard": "PilotIn",
"phpcbf.debug": true,
"phpcbf.executablePath": "phpcbf.bat",

/** Formattage utilisรฉ pour le PHP */
"[php]": {
    "editor.defaultFormatter": "persoderlind.vscode-phpcbf"
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment