Steps to deploy Node.js to VPS using PM2 and Github Actions
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
| import SwiftUI | |
| struct ContentView: View { | |
| @State private var name = "" | |
| @State private var isEditingName = false | |
| var body: some View { | |
| VStack (alignment: .leading){ | |
| Text("Name") | |
| .scaleEffect((self.name == "" && self.isEditingName == false) ? 1 : 0.75) | |
| .offset(y: (self.name == "" && self.isEditingName == false ) ? 35 : 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
| ## How to install mcrypt in php7.2 | |
| ## | |
| ## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/ | |
| ## | |
| # | |
| # Check version php and pecl | |
| # | |
| php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php |
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
| //Generate a self signed X509 certificate with Bouncy Castle. | |
| // StringBuilder sb = new StringBuilder(); | |
| // | |
| // for (int i = 0; i < pub.length; ++i) | |
| // { | |
| // sb.append(Integer.toHexString(0x0100 + (pub[i] & 0x00FF)).substring(1)); | |
| // } | |
| // | |
| // System.out.println(sb); | |
| // sb.setLength(0); |
