- Open Server Manager: Start the Server Manager from the Start menu or taskbar.
- Add Roles and Features: Click on "Manage" in the top right corner of the Server Manager, then select "Add Roles and Features".
- Role-based or Feature-based Installation: Choose "Role-based or feature-based installation" and click "Next".
- Select the Server: Select the server on which you want to install IIS and click "Next".
- Select Server Roles: In the roles list, check the box next to "Web Server (IIS)". This action will prompt you to add features that are required for Web Server (IIS); accept these by clicking "Add Features".
- Features: No additional features are required at this point, so you can click "Next".
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
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| clear && neofetch | |
| # Set name of the theme to load --- if set to "random", it will | |
| # load a random theme each time oh-my-zsh is loaded, in which case, | |
| # to know which specific one was loaded, run: echo $RANDOM_THEME | |
| # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
| ZSH_THEME="spaceship" |
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.8' | |
| services: | |
| rabbitmq: | |
| image: rabbitmq:3-management | |
| hostname: my-rabbit | |
| volumes: | |
| - ./rabbitmq/etc/definitions.json:/etc/rabbitmq/definitions.json | |
| - ./rabbitmq/etc/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf | |
| - ./rabbitmq/data:/var/lib/rabbitmq/mnesia/rabbit@my-rabbit |
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
| package auth | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "net" | |
| "net/http" | |
| "net/url" |
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
| func BenchmarkCreate(b *testing.B) { | |
| db, err := gorm.Open("postgres", "host=localhost port=5432 user=testuser dbname=testdb password=123456 sslmode=disable") | |
| if err != nil { | |
| fmt.Println(err) | |
| } | |
| defer db.Close() | |
| users := stubUsers(b) | |
| tx := db.Begin() | |
| valueStrings := []string{} |
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
| <html> | |
| <head> | |
| <style type='text/css'> | |
| body, html { | |
| margin: 0; | |
| padding: 0; | |
| } | |
| body { | |
| color: black; | |
| display: table; |
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
| sudo add-apt-repository ppa:ondrej/php | |
| sudo apt-get update | |
| sudo apt-get install php7.1 | |
| sudo apt-get install php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-mysql php7.1-mbstring php7.1-mcrypt php7.1-zip php7.1-fpm php7.1-intl php7.1-simplexml | |
| sudo a2dismod php7.2 | |
| sudo a2enmod php7.1 | |
| sudo service apache2 restart | |
| sudo update-alternatives --set php /usr/bin/php7.1 | |
| sudo update-alternatives --set phar /usr/bin/phar7.1 | |
| sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.1 |
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
| git branch | grep -v "master\|develop" | xargs git branch -D |
NewerOlder