- When generating new TypeScript code, please follow the existing coding style.
- Ensure all new functions and classes have JSDoc comments.
- Prefer functional programming paradigms where appropriate.
- All code should be compatible with TypeScript 5.0 and Node.js 18+.
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
| -ea | |
| -server | |
| -Xss256k | |
| -Xms4G | |
| -Xmx4G | |
| -XX:+IgnoreUnrecognizedVMOptions | |
| -XX:+UnlockExperimentalVMOptions | |
| -XX:+HeapDumpOnOutOfMemoryError | |
| -XX:-OmitStackTraceInFastThrow | |
| -XX:-UseSerialGC |
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: 0.2 | |
| phases: | |
| install: | |
| runtime-versions: | |
| docker: 19 | |
| commands: | |
| - docker version | |
| - curl -JLO https://github.com/docker/buildx/releases/download/v0.4.2/buildx-v0.4.2.linux-amd64 | |
| - mkdir -p ~/.docker/cli-plugins |
The initial goal of this project is to use the raspberry pi in place of my Wireless Range Extender and then going from 3 wireless networks (2.4ghz, 2.4ghz extended, 5ghz) at home to only one (5ghz). This way I'm reducing the exposition to radio waves for the whole familly at home.
Ok, enough drama for now, let's go technical. 😁
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> | |
| <body> | |
| <p>Here are Webber’s points:</p> | |
| <ul> | |
| <li>If a method can be static, declare it static. Speed improvement is by a factor of 4.</li> | |
| <li>echo is faster than print.(<em>* compare with list from phplens by John Lim</em>)</li> | |
| <li>Use echo’s multiple parameters instead of string concatenation.</li> | |
| <li>Set the maxvalue for your for-loops before and not in the loop.</li> | |
| <li>Unset your variables to free memory, especially large arrays.</li> | |
| <li>Avoid magic like __get, __set, __autoload</li> |
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
| var linkEl = document.head.querySelector('link[href*="/styles/index.css"]'); | |
| var cssLoaded = Boolean(linkEl.sheet); | |
| linkEl.addEventListener('load', function () { | |
| cssLoaded = true; | |
| }); |
adb is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
To get the list of your installed applications:
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
| interface=(INTERFACE HERE) | |
| driver=nl80211 | |
| ssid=(SSID HERE) | |
| hw_mode=a | |
| channel=36 | |
| country_code=US | |
| ignore_broadcast_ssid=0 | |
| wpa=2 |
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
| # | |
| # This config file is a combination of ideas from: | |
| # http://www.37signals.com/svn/posts/1073-nuts-bolts-haproxy | |
| # http://www.igvita.com/2008/05/13/load-balancing-qos-with-haproxy/ | |
| # http://wiki.railsmachine.com/HAProxy | |
| # http://elwoodicious.com/2008/07/15/nginx-haproxy-thin-fastcgi-php5-load-balanced-rails-with-php-support/ | |
| # http://upstream-berlin.com/2008/01/09/using-haproxy-with-multiple-backends-aka-content-switching/ | |
| # http://wiki.railsmachine.com/HAProxy | |
| # http://gist.github.com/raw/25482/d39fb332edf977602c183194a1cf5e9a0b5264f9 | |
| # |
NewerOlder