- Open Windows Terminal
- Type
notepad $profile- If doesn't exists, creates file in ~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
- Add Aliases in file
Set-Alias <Name> <Command>
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
| stages: | |
| - publish | |
| - deploy | |
| variables: | |
| TAG_LATEST: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_NAME:latest | |
| TAG_COMMIT: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_NAME:$CI_COMMIT_SHORT_SHA | |
| publish: | |
| image: docker:latest |
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
| # Crontab for Self-Managed GitLab instance | |
| # ---------------------------------------- | |
| # Edit with (sudo) crontab -e | |
| ## mail errors to email | |
| MAILTO=email@domain.de | |
| ## prune unused image to reduce space | |
| @daily docker image prune -f > /dev/null |
Porting from Desktop / UWP to WebGL comes with a lot of challenges. When I ported an application, there were many libraries and code which didn't work on WebGL. However, I found alternatives and were able to switch libraries to make it work in WebGL.
- System.Net namespace
- Threads are not supported (System.Threading)
- No Multithreading
- No direct access to socket
- Reflection using System.Reflection.Emit
This API enables cross-origin requests to anywhere.
Usage:
- / Shows help
- /iscorsneeded This is the only resource on this host which is served without CORS headers.
- /<url> Create a request to , and includes CORS headers in the response.
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
| # basics | |
| alias lt="ls --human-readable --size -1 -S --classify" | |
| alias mnt="mount | awk -F' ' '{ printf \"%s\t%s\n\",\$1,\$3; }' | column -t | egrep ^/dev/ | sort" | |
| alias hgrep="history|grep" | |
| alias cpuinfo="cat /proc/cpuinfo" | |
| alias latest="ls -t -l" | |
| alias count="find . -type f | wc -l" |
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
| ::Install chocolatey from https://chocolatey.org first | |
| ::Run following commands as administrator | |
| ::Update your software with choco upgrade all | |
| cinst -y adobereader | |
| cinst -y googlechrome | |
| cinst -y adblockpluschrome | |
| cinst -y skype | |
| cinst -y 7zip | |
| cinst -y winscp | |
| cinst -y putty |
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
| # Config file /etc/vsftpd.conf using userlist and /var/www/{user} directory | |
| # | |
| # The default compiled in settings are fairly paranoid. This sample file | |
| # loosens things up a bit, to make the ftp daemon more usable. | |
| # Please see vsftpd.conf.5 for all compiled in defaults. | |
| # | |
| # READ THIS: This example file is NOT an exhaustive list of vsftpd options. | |
| # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's | |
| # capabilities. | |
| # |