π
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| Usage on Linux: | |
| pwsh ./convertImagesToBase64.ps1 /home/user/folder/images | |
| Usage on Windows: | |
| ./convertImagesToBase64.ps1 C:/Path/To/Imagens | |
| #> | |
| $folderPath = $args[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| OBS: | |
| The AsByteStream parameter was introduced in Windows PowerShell 6.0 | |
| If your PowerShell version (run `(Get-Host).Version` to find out) is lower than 6 then use the version for Powershell 5.1: | |
| #> | |
| $pathToImage = "/home/user/development/image.png" | |
| # For Powershell 5.1 | |
| [String]$base64 = [convert]::ToBase64String((Get-Content $pathToImage -Raw -Encoding Byte)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { createLogger, format, transports } = require('winston'); | |
| const { combine, timestamp, label, printf } = format; | |
| const config = require('./config'); | |
| const isLogsEnabled = config.enableLogs; | |
| /** | |
| * Class to log in text files | |
| */ | |
| class Logger { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "PostProcess/HeightFog" | |
| { | |
| Properties | |
| { | |
| [HideInInspector] _MainTex ("Texture", 2D) = "white" {} | |
| _FogColor ("FogColor", Color) = (1,1,1,1) | |
| _FogDensity ("FogDensity", Range(0,1)) = 0.2 | |
| _FogHeight ("FogHeight", float) = 5.0 | |
| } | |
| SubShader |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.6" | |
| services: | |
| db: | |
| image: postgres | |
| environment: | |
| POSTGRES_PASSWORD: mysecretpassword | |
| wordpress: | |
| image: wordpress | |
| depends_on: | |
| - db |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TypeScript 12 hrs 28 mins βββββββββββββββββββββ 50.4% | |
| CSS 9 hrs 29 mins βββββββββββββββββββββ 38.4% | |
| JavaScript 2 hrs 29 mins βββββββββββββββββββββ 10.1% | |
| JSON 10 mins βββββββββββββββββββββ 0.7% | |
| Other 6 mins βββββββββββββββββββββ 0.4% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $scriptToExecutePath = "C:\Path\To\dump-script.ps1"; | |
| $taskName = "MongoDB Backup - <databaseName>" | |
| $taskDescription = "Make a dump of <databaseName> database" | |
| $action = New-ScheduledTaskAction ` | |
| -Execute 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' ` | |
| -Argument "-NoProfile -NoLogo -NonInteractive -ExecutionPolicy Bypass -File $scriptToExecutePath" | |
| $trigger = New-ScheduledTaskTrigger -Daily -At 1am | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Author: FabrΓcio Pinto Ferreira | |
| # This is a simple script that aims install generic and common tools | |
| # for game development in Ubuntu 20.04 | |
| sudo apt update | |
| echo 'Installing Snap...' | |
| sudo apt install snapd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #region Variables | |
| <# Set the MongoDB access variables #> | |
| $databaseName = "databaseName" | |
| # $username = "" | |
| # $password = "" | |
| # $authenticationDatabase = "" | |
| $mongoDbHost = "localhost:27017" | |
| # $uri = "" |
NewerOlder