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
| clear | |
| git add * | |
| git add README.md | |
| git reset HEAD tên_file | |
| git commit -m "Update ..." | |
| git push origin maste | |
| git push -f origin master |
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
| alias cls='clear' | |
| alias c='cd /cygdrive/c' | |
| alias home='cd ~' | |
| alias code='cd /cygdrive/c/code' | |
| alias min='clear && PATH=$PATH:/cygdrive/c/min/bin && gcc -v && echo' | |
| 1. UPDATE CYGWIN | |
| First of all you will need to ensure that Cygwin has the necessary binaries required for apt-cyg. This is achieved via the use of the Cygwin setup executable via the Windows command prompt. | |
| C:\Windows\System32>C:\Users\admin\Downloads\setup.exe -q -P wget,tar,qawk,bzip2,subversion,vim |
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
| $ PATH=$PATH:/c/cygwin/bin | |
| $ mkdir .build && cd .build | |
| $ git clone --recursive https://github.com/google/protobuf.git | |
| $ git submodule update --init | |
| $ PATH=$PATH:/c/msys2/mingw64/bin | |
| $ PATH=$PATH:/c/msys2/mingw64/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
| #----------------------------- | |
| #edit file /../home/../.bashrc | |
| alias c='cd /cygdrive/c' | |
| alias home='cd ~' | |
| alias code='cd /cygdrive/c/code' | |
| alias addr2line='/bin/x86_64-w64-mingw32-addr2line.exe' | |
| alias ar='/bin/x86_64-w64-mingw32-ar.exe' |
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 toolchain | |
| #$ sudo apt-get install gcc-4.9-locales mingw32 mingw-w64 mingw-w64-tools \ | |
| # binutils-mingw-w64 binutils-mingw-w64-x86-64 binutils-mingw-w64-i686 \ | |
| # mingw-w64-x86-64-dev mingw-w64-i686-dev | |
| # install autotools | |
| #$ sudo apt-get install autoconf automake autotools-dev | |
| # make sure environment variables are set |
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
| WSL: | |
| # apt install build-essential autoconf libtool cmake make tar unzip shtool automake patch curl wget golang perl git pkg-config | |
| apt-get install gcc-mingw-w64 | |
| Ubuntu | |
| # apt install build-essential autoconf libtool cmake make tar unzip libgflags-dev libgtest-dev clang libc++-dev shtool automake patch curl wget golang perl yasm git pkg-config | |
| git clone --recursive https://github.com/grpc/grpc.git |
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
| pacman -Syuu | |
| pacman -S --needed base-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain \ | |
| cmake make curl tar unzip git subversion mercurial \ | |
| mingw-w64-i686-cmake mingw-w64-x86_64-cmake | |
| pacman -Ss boost | |
| pacman -Sy mingw-w64-i686-boost mingw-w64-x86_64-boost | |
| pacman -Sy mingw-w64-i686-protobuf mingw-w64-x86_64-protobuf | |
| pacman -Sy mingw-w64-i686-grpc mingw-w64-x86_64-grpc |
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
| Portable Node.js and NPM on Windows | |
| 1. Download the node.exe stand-alone from nodejs.org | |
| https://nodejs.org/download/release/latest/win-x64/ | |
| https://nodejs.org/download/release/latest/ | |
| 2. Grab an NPM release zip off of github | |
| https://github.com/npm/npm/releases | |
| 3. Create a folder named: node_modules in the same folder as node.exe | |
| 4. Extract the NPM zip into the node_modules folder | |
| 5. Rename the extracted npm folder to npm and remove any versioning ie: npm-3.3.4 –> npm. |
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
| browser.LoadingStateChanged += OnLoadingStateChanged; | |
| //A slightly more complicated example | |
| private void OnLoadingStateChanged(object sender, LoadingStateChangedEventArgs args) | |
| { | |
| //Wait for the Page to finish loading | |
| if (args.IsLoading == false) | |
| { | |
| const string script = @"(function() | |
| { |
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"?> | |
| <configuration> | |
| <system.webServer> | |
| <httpProtocol> | |
| <customHeaders> | |
| <add name="Access-Control-Allow-Origin" value="*"/> | |
| <add name="Access-Control-Allow-Methods" value="GET,PUT,POST,DELETE,OPTIONS"/> | |
| <add name="Access-Control-Allow-Headers" value="Content-Type"/> | |
| </customHeaders> | |
| </httpProtocol> |
OlderNewer