Skip to content

Instantly share code, notes, and snippets.

@BeKnowDo
Last active July 8, 2024 10:58
Show Gist options
  • Select an option

  • Save BeKnowDo/eda124eea1aba844f9eecfbcd6cc411a to your computer and use it in GitHub Desktop.

Select an option

Save BeKnowDo/eda124eea1aba844f9eecfbcd6cc411a to your computer and use it in GitHub Desktop.

Revisions

  1. BeKnowDo revised this gist Mar 30, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion windows-10.md
    Original file line number Diff line number Diff line change
    @@ -186,7 +186,7 @@ Let's go with [Cmder](https://cmder.net).

    + Download [Cmder](https://cmder.net)
    + Extract the zip file into your desired directory (I'd keep it at the root of your C: drive - i.e.: C:/Cmder)
    +

    This is a mandatory security step from GitHub.
    - Open PowerShell (as admin) and type the following command: ```ssh-keygen.exe```

  2. BeKnowDo revised this gist Mar 30, 2020. 1 changed file with 0 additions and 10 deletions.
    10 changes: 0 additions & 10 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -205,13 +205,3 @@ This is a mandatory security step from GitHub.
    - Paste your rsa key and click submit/save.

    Now you are able to successfully clone any respository from GitHub.

    ### Cloning the Kanebridge repository (source code)
    Please make sure you're in the target directory you want the repository to be cloned into: i.e.: `C:/web-projects` (this can be any directory you wish.

    ```git clone [email protected]:kanebridge-corp/kanebridge.com.git```

    ## Attunity Connection String Example
    ```
    $connection_string = 'Driver={Attunity Connect Driver};BindUrl=attconnect://ATTUNITY-IP/Navigator;DefTdpName=KANERMS;OneTdpMode=1;misc/language=enus;queryProcessor/noThreads=true;debug/logFile=ODBC_MYDSN_%p.log;';
    ```
  3. BeKnowDo revised this gist Jan 28, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion windows-10.md
    Original file line number Diff line number Diff line change
    @@ -213,5 +213,5 @@ Please make sure you're in the target directory you want the repository to be cl

    ## Attunity Connection String Example
    ```
    $connection_string = 'Driver={Attunity Connect Driver};BindUrl=attconnect://192.168.0.168:5330/Navigator;DefTdpName=KANERMS;OneTdpMode=1;misc/language=enus;queryProcessor/noThreads=true;debug/logFile=ODBC_MYDSN_%p.log;';
    $connection_string = 'Driver={Attunity Connect Driver};BindUrl=attconnect://ATTUNITY-IP/Navigator;DefTdpName=KANERMS;OneTdpMode=1;misc/language=enus;queryProcessor/noThreads=true;debug/logFile=ODBC_MYDSN_%p.log;';
    ```
  4. BeKnowDo revised this gist Jan 23, 2020. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -17,6 +17,9 @@
    ### Install MySQL Workbench
    * Install via chocolately ```choco install mysql.workbench -y```

    ### Composer (PHP package manager)
    * Install the Composer package manager for PHP ```choco install composer -y```

    <hr />

    ## Other Developer Applications
  5. BeKnowDo revised this gist Dec 6, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion windows-10.md
    Original file line number Diff line number Diff line change
    @@ -25,7 +25,7 @@
    ```choco install vscode -y```

    ```choco install git -y```
    ** IF YOU RECEIVE A DEPENDENCY ERROR - please run ```choco install git.install -y```
    **IF YOU RECEIVE A DEPENDENCY ERROR** - please run ```choco install git.install -y```

    ```choco install smartgit -y```

  6. BeKnowDo revised this gist Dec 6, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -25,6 +25,7 @@
    ```choco install vscode -y```

    ```choco install git -y```
    ** IF YOU RECEIVE A DEPENDENCY ERROR - please run ```choco install git.install -y```

    ```choco install smartgit -y```

  7. BeKnowDo revised this gist Dec 3, 2019. No changes.
  8. BeKnowDo revised this gist Dec 3, 2019. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -47,6 +47,10 @@
    <hr />

    #### PHP.ini Enabled Extensions
    + Un-comment extensions directory
    ```
    extension_dir = "ext"
    ```
    + Make sure to enable the following extensions
    <br />

  9. BeKnowDo revised this gist Dec 3, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion windows-10.md
    Original file line number Diff line number Diff line change
    @@ -166,7 +166,8 @@ server {
    - ```nginx -s quit``` graceful shutdown
    - ```nginx -s reload``` changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes
    - ```nginx -s reopen``` re-opening log files
    * Next, you'll need to create an entry in Windows' hosts file which is located in `C:\Windows\System32\drivers\etc`.
    * Next, you'll need to create an entry in Windows' hosts file which is located in `C:\Windows\System32\drivers\
    `.

    ### Generating SSH Key

  10. BeKnowDo revised this gist Dec 3, 2019. 1 changed file with 7 additions and 4 deletions.
    11 changes: 7 additions & 4 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -60,6 +60,13 @@ extension=pdo_mysql
    extension=pdo_odbc
    ```

    ## Download HiddenConsole
    Download the following code snippet that will run PHP in the background without needing to have a console/terminal opened.

    [HiddenConsole](https://redmine.lighttpd.net/attachments/660/RunHiddenConsole.zip) - unzip this file into the ```c:\tools``` directory.

    [Read more](https://www.nginx.com/resources/wiki/start/topics/examples/phpfastcgionwindows/) on why we want this tool.

    ### Create bat file in the same directory as your PHP Configuration Path.<br />
    We use this .bat file to run PHP-FPM. You can name this file anything you'd like, i.e.: ```start-php-fcgi.bat```.
    <br />
    @@ -71,11 +78,7 @@ ECHO Starting PHP FastCGI...
    set PATH=C:\tools\php73\;%PATH%
    C:\tools\RunHiddenConsole.exe C:\tools\php73\php-cgi.exe -b 127.0.0.1:9000
    ```
    Download the following code snippet that will run PHP in the background without needing to have a console/terminal opened.

    [HiddenConsole](https://redmine.lighttpd.net/attachments/660/RunHiddenConsole.zip) - unzip this file into the ```c:\tools``` directory.

    [Read more](https://www.nginx.com/resources/wiki/start/topics/examples/phpfastcgionwindows/) on why we want this tool.

    Now open a new terminal/prompt and run the following command ```c:\tools\php73\start-php-fcgi.bat```

  11. BeKnowDo revised this gist Dec 3, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion windows-10.md
    Original file line number Diff line number Diff line change
    @@ -63,7 +63,7 @@ extension=pdo_odbc
    ### Create bat file in the same directory as your PHP Configuration Path.<br />
    We use this .bat file to run PHP-FPM. You can name this file anything you'd like, i.e.: ```start-php-fcgi.bat```.
    <br />
    Copy the following into that file:
    Copy the following into that file and make sure to use your **PHP CONFIGURATION PATH**

    ```
    @ECHO OFF
  12. BeKnowDo revised this gist Dec 3, 2019. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,9 @@
    ### Install Chocolately
    * https://chocolatey.org/

    ### Install ConEmu
    * Install via chocolately ```choco install conemu -y```

    ### Install Nginx
    * Install via chocolately ```choco install nginx -y```
    ** The `-y` argument is to skip any confirmation messages...just install it. It's fine ;)
  13. BeKnowDo revised this gist Oct 23, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -29,6 +29,8 @@

    ```choco install 7zip.install -y```

    ```choco install dbeaver -y```

    <hr />

    ### Configuration Paths
  14. BeKnowDo revised this gist Oct 23, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion windows-10.md
    Original file line number Diff line number Diff line change
    @@ -34,7 +34,7 @@
    ### Configuration Paths

    ##### Nginx Configuration Path
    * `C:\tools\nginx-1.17.0\conf` or whichever is the latest version installed
    * `C:\tools\nginx-1.17.0\conf` or whichever is the latest version installed **Please use the path of the latest version of nginx installed by chocolately**

    ##### PHP Configuration Path
    * `C:\tools\php72` or whichever is the latest version installed
  15. BeKnowDo revised this gist Oct 17, 2019. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion windows-10.md
    Original file line number Diff line number Diff line change
    @@ -47,9 +47,12 @@

    ```
    extension=curl
    extension=fileinfo
    extension=intl
    extension=gd2
    extension=odbc
    extension=pdo_odbc
    extension=pdo_mysql
    extension=pdo_odbc
    ```

    ### Create bat file in the same directory as your PHP Configuration Path.<br />
  16. BeKnowDo revised this gist Oct 17, 2019. 1 changed file with 4 additions and 6 deletions.
    10 changes: 4 additions & 6 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -121,16 +121,14 @@ http {
    ```
    server {
    listen 80;
    server_name php.kanebridge;
    server_name LOCAL_DOMAIN;
    index index.php;
    error_log C:/nginx-1.17.3/php-test/error.log;
    access_log C:/nginx-1.17.3/php-test/access.log;
    root C:/web-projects/php-test;
    error_log C:/nginx-1.17.3/logs/error.log;
    access_log C:/nginx-1.17.3/logs/access.log;
    root C:/THE_ROOT_OF_YOUR_PROJECT;
    location / {
    try_files $uri /index.php$is_args$args;
    }
    location ~ \.php {
    try_files $uri =404;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
  17. BeKnowDo revised this gist Oct 17, 2019. 1 changed file with 10 additions and 10 deletions.
    20 changes: 10 additions & 10 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -6,28 +6,28 @@
    ** The `-y` argument is to skip any confirmation messages...just install it. It's fine ;)

    ### Install PHP
    * Install via chocolately ```choco install php```
    * Install via chocolately ```choco install php -y```

    ### Install MySQL
    * Install via chocolately ```choco install mysql```
    * Install via chocolately ```choco install mysql -y```

    ### Install MySQL Workbench
    * Install via chocolately ```choco install mysql.workbench```
    * Install via chocolately ```choco install mysql.workbench -y```

    <hr />

    ## Other Developer Applications
    ```choco upgrade chocolatey```
    ```choco upgrade chocolatey -y```

    ```choco install vscode```
    ```choco install vscode -y```

    ```choco install git```
    ```choco install git -y```

    ```choco install smartgit```
    ```choco install smartgit -y```

    ```choco install vlc```
    ```choco install vlc -y```

    ```choco install 7zip.install```
    ```choco install 7zip.install -y```

    <hr />

    @@ -48,7 +48,7 @@
    ```
    extension=curl
    extension=odbc
    extension=pdo_mysql
    extension=pdo_odbc
    extension=pdo_mysql
    ```

  18. BeKnowDo revised this gist Oct 17, 2019. 1 changed file with 16 additions and 14 deletions.
    30 changes: 16 additions & 14 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,23 @@

    <hr />

    ## Other Developer Applications
    ```choco upgrade chocolatey```

    ```choco install vscode```

    ```choco install git```

    ```choco install smartgit```

    ```choco install vlc```

    ```choco install 7zip.install```

    <hr />

    ### Configuration Paths

    ##### Nginx Configuration Path
    * `C:\tools\nginx-1.17.0\conf` or whichever is the latest version installed

    @@ -143,20 +159,6 @@ server {
    - ```nginx -s reopen``` re-opening log files
    * Next, you'll need to create an entry in Windows' hosts file which is located in `C:\Windows\System32\drivers\etc`.


    ## Other Developer Applications
    ```choco upgrade chocolatey```

    ```choco install vscode```

    ```choco install git```

    ```choco install smartgit```

    ```choco install vlc```

    ```choco install 7zip.install```

    ### Generating SSH Key

    #### Windows 7 (how dare you)
  19. BeKnowDo revised this gist Oct 17, 2019. No changes.
  20. BeKnowDo revised this gist Oct 2, 2019. No changes.
  21. BeKnowDo revised this gist Oct 2, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion windows-10.md
    Original file line number Diff line number Diff line change
    @@ -140,7 +140,7 @@ server {
    - ```nginx -s stop``` fast shutdown
    - ```nginx -s quit``` graceful shutdown
    - ```nginx -s reload``` changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes
    - nginx -s reopen re-opening log files
    - ```nginx -s reopen``` re-opening log files
    * Next, you'll need to create an entry in Windows' hosts file which is located in `C:\Windows\System32\drivers\etc`.


  22. BeKnowDo revised this gist Oct 2, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -137,9 +137,9 @@ server {
    * Next, you'll need to find "Path" variable under "System variables" (http://drops.cavscout.us/vtP5bo) and enter the nginx path which is: `C:\tools\nginx-1.17.0`.
    * Click 'OK' and you should be all set to use nginx in your terminal.
    * You now have the following options to run in the terminal:
    - nginx -s stop fast shutdown
    - nginx -s quit graceful shutdown
    - nginx -s reload changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes
    - ```nginx -s stop``` fast shutdown
    - ```nginx -s quit``` graceful shutdown
    - ```nginx -s reload``` changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes
    - nginx -s reopen re-opening log files
    * Next, you'll need to create an entry in Windows' hosts file which is located in `C:\Windows\System32\drivers\etc`.

  23. BeKnowDo revised this gist Oct 2, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -45,11 +45,11 @@ Copy the following into that file:
    @ECHO OFF
    ECHO Starting PHP FastCGI...
    set PATH=C:\tools\php73\;%PATH%
    C:\tools\php73\php-cgi.exe -b 127.0.0.1:9000
    C:\tools\RunHiddenConsole.exe C:\tools\php73\php-cgi.exe -b 127.0.0.1:9000
    ```
    Download the following code snippet that will run PHP in the background without needing to have a console/terminal opened.

    [HiddenConsole](https://redmine.lighttpd.net/attachments/660/RunHiddenConsole.zip)
    [HiddenConsole](https://redmine.lighttpd.net/attachments/660/RunHiddenConsole.zip) - unzip this file into the ```c:\tools``` directory.

    [Read more](https://www.nginx.com/resources/wiki/start/topics/examples/phpfastcgionwindows/) on why we want this tool.

  24. BeKnowDo revised this gist Oct 2, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -49,9 +49,9 @@ C:\tools\php73\php-cgi.exe -b 127.0.0.1:9000
    ```
    Download the following code snippet that will run PHP in the background without needing to have a console/terminal opened.

    (HiddenConsole)[https://redmine.lighttpd.net/attachments/660/RunHiddenConsole.zip]
    [HiddenConsole](https://redmine.lighttpd.net/attachments/660/RunHiddenConsole.zip)

    (Read more)[https://www.nginx.com/resources/wiki/start/topics/examples/phpfastcgionwindows/] on why we want this tool.
    [Read more](https://www.nginx.com/resources/wiki/start/topics/examples/phpfastcgionwindows/) on why we want this tool.

    Now open a new terminal/prompt and run the following command ```c:\tools\php73\start-php-fcgi.bat```

  25. BeKnowDo revised this gist Oct 2, 2019. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -47,8 +47,12 @@ ECHO Starting PHP FastCGI...
    set PATH=C:\tools\php73\;%PATH%
    C:\tools\php73\php-cgi.exe -b 127.0.0.1:9000
    ```
    Download the following code snippet that will run PHP in the background without needing to have a console/terminal opened.
    (HiddenConsole)[https://redmine.lighttpd.net/attachments/660/RunHiddenConsole.zip]. (Read more)[https://www.nginx.com/resources/wiki/start/topics/examples/phpfastcgionwindows/] on why we want this tool.
    Download the following code snippet that will run PHP in the background without needing to have a console/terminal opened.

    (HiddenConsole)[https://redmine.lighttpd.net/attachments/660/RunHiddenConsole.zip]

    (Read more)[https://www.nginx.com/resources/wiki/start/topics/examples/phpfastcgionwindows/] on why we want this tool.

    Now open a new terminal/prompt and run the following command ```c:\tools\php73\start-php-fcgi.bat```

    <br />
  26. BeKnowDo revised this gist Oct 2, 2019. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -27,7 +27,7 @@

    #### PHP.ini Enabled Extensions
    + Make sure to enable the following extensions
    <br />
    <br />

    ```
    extension=curl
    @@ -47,7 +47,8 @@ ECHO Starting PHP FastCGI...
    set PATH=C:\tools\php73\;%PATH%
    C:\tools\php73\php-cgi.exe -b 127.0.0.1:9000
    ```
    Download the following code snippet that will run PHP in the background without needing to have a console/terminal opened. (HiddenConsole)[https://redmine.lighttpd.net/attachments/660/RunHiddenConsole.zip]. (Read more)[https://www.nginx.com/resources/wiki/start/topics/examples/phpfastcgionwindows/] on why we want this tool.
    Download the following code snippet that will run PHP in the background without needing to have a console/terminal opened.
    (HiddenConsole)[https://redmine.lighttpd.net/attachments/660/RunHiddenConsole.zip]. (Read more)[https://www.nginx.com/resources/wiki/start/topics/examples/phpfastcgionwindows/] on why we want this tool.
    Now open a new terminal/prompt and run the following command ```c:\tools\php73\start-php-fcgi.bat```

    <br />
  27. BeKnowDo revised this gist Oct 2, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -47,6 +47,7 @@ ECHO Starting PHP FastCGI...
    set PATH=C:\tools\php73\;%PATH%
    C:\tools\php73\php-cgi.exe -b 127.0.0.1:9000
    ```
    Download the following code snippet that will run PHP in the background without needing to have a console/terminal opened. (HiddenConsole)[https://redmine.lighttpd.net/attachments/660/RunHiddenConsole.zip]. (Read more)[https://www.nginx.com/resources/wiki/start/topics/examples/phpfastcgionwindows/] on why we want this tool.
    Now open a new terminal/prompt and run the following command ```c:\tools\php73\start-php-fcgi.bat```

    <br />
  28. BeKnowDo revised this gist Oct 2, 2019. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -26,15 +26,15 @@
    <hr />

    #### PHP.ini Enabled Extensions
    Make sure to enable the following extensions
    + Make sure to enable the following extensions
    <br />

    ```
    extension=curl
    extension=odbc
    extension=pdo_mysql
    extension=pdo_mysql
    ```
    ```
    extension=curl
    extension=odbc
    extension=pdo_mysql
    extension=pdo_mysql
    ```

    ### Create bat file in the same directory as your PHP Configuration Path.<br />
    We use this .bat file to run PHP-FPM. You can name this file anything you'd like, i.e.: ```start-php-fcgi.bat```.
  29. BeKnowDo revised this gist Oct 2, 2019. 1 changed file with 9 additions and 9 deletions.
    18 changes: 9 additions & 9 deletions windows-10.md
    Original file line number Diff line number Diff line change
    @@ -26,15 +26,15 @@
    <hr />

    #### PHP.ini Enabled Extensions
    Make sure to enable the following extensions
    <br />

    ```
    extension=curl
    extension=odbc
    extension=pdo_mysql
    extension=pdo_mysql
    ```
    Make sure to enable the following extensions
    <br />

    ```
    extension=curl
    extension=odbc
    extension=pdo_mysql
    extension=pdo_mysql
    ```

    ### Create bat file in the same directory as your PHP Configuration Path.<br />
    We use this .bat file to run PHP-FPM. You can name this file anything you'd like, i.e.: ```start-php-fcgi.bat```.
  30. BeKnowDo revised this gist Oct 2, 2019. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion windows-10.md
    Original file line number Diff line number Diff line change
    @@ -26,7 +26,6 @@
    <hr />

    #### PHP.ini Enabled Extensions
    <br />
    Make sure to enable the following extensions
    <br />