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
| # Here, I am using a gcePersistentDisk disk to store my init.sql file. | |
| # You can you any Kubernetes volume such as hostPath,nfs etc. | |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: mysql-init-demo | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: mysql |
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
| using System; | |
| using System.Linq; | |
| using System.Runtime.InteropServices; | |
| using System.IO; | |
| using System.Reflection; | |
| using System.ComponentModel; | |
| namespace yxw | |
| { | |
| ///Refer to: |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> | |
| <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/> | |
| <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> | |
| <security> | |
| <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> | |
| <!-- UAC Manifest Options | |
| If you want to change the Windows User Account Control level replace the | |
| requestedExecutionLevel node with one of the following. |
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
| # stop tracking binaries | |
| git ls-files -z /path/to/bin/ | xargs -0 git update-index --assume-unchanged | |
| # resume tracking binaries | |
| git update-index --no-assume-unchanged /path/to/bin/*.* |
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 -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done | |
| git fetch --all | |
| git pull --all |
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
| // App.xaml.cs | |
| public void SwitchToLanguageCN() | |
| { | |
| ChangeLanguage("zh-CN"); | |
| } | |
| // MainWindow.xaml.cs | |
| private void btn_switchtogcn_Click(object sender, RoutedEventArgs e) | |
| { | |
| ((App)Application.Current).SwitchToLanguageCN(); |
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
| #include <string> | |
| #include <iostream> | |
| #include <functional> | |
| class Service | |
| { | |
| public: | |
| void listen( std::function< void ( const std::string&, | |
| const std::string&, | |
| const std::string&, |