Taken from here: https://discord.com/channels/608064116111966245/608064116984250379/1055555451569328179
Have 2 terminals running. In the first, start a web server:
ruby -run -e httpd ./builds/mygame-html5-0.1in the second terminal, run the build:
Taken from here: https://discord.com/channels/608064116111966245/608064116984250379/1055555451569328179
Have 2 terminals running. In the first, start a web server:
ruby -run -e httpd ./builds/mygame-html5-0.1in the second terminal, run the build:
| (require 'package) | |
| ;; Emacs has an official repository of packages and a more current | |
| ;; unofficial one. Melpa is the 'unoffical one' (which in this | |
| ;; case translates to more up to date, newer, and by extension, | |
| ;; a bit more volatile). The official repo is called org. This | |
| ;; repo is slow changing and extremely stable (but doesn't have | |
| ;; all the cool/cutting edge packages that are being used). | |
| (push '("melpa" . "http://melpa.org/packages/") package-archives) | |
| (push '("org" . "http://orgmode.org/elpa/") package-archives) |
| ;; This buffer is for text that is not saved, and for Lisp evaluation. | |
| ;; To create a file, visit it with C-x C-f and enter text in its buffer. | |
| ;; This is a import that ships with emacs. | |
| ;; package is Emacs's package manager. | |
| (require 'package) | |
| ;; Emacs has an official repository of packages and a more current | |
| ;; unofficial one. Melpa is the 'unoffical one' (which in this | |
| ;; case translates to more up to date, newer, and by extension, | |
| ;; a bit more volatile). The official repo is called org. This |
| #Basic equasion, I do it this way to increase reliablity because I trust JavaScript's date parsing more than writing a regex against nightbot. | |
| $(eval Math.trunc((Date.now()- Date.parse('$(twitch mellana "{{uptimeAt}}")'))/(1000*60*60));) | |
| #Version 1, repeats the math multiple times | |
| @mellana You've been live for just over $(eval Math.trunc((Date.now()- Date.parse('$(twitch mellana "{{uptimeAt}}")'))/(1000*60*60));) hours. By this point in your broadcast you should have consumed at least $(eval 4*Math.trunc((Date.now()- Date.parse('$(twitch mellana "{{uptimeAt}}")'))/(1000*60*60));)oz ($(eval 120*Math.trunc((Date.now()- Date.parse('$(twitch mellana "{{uptimeAt}}")'))/(1000*60*60));)mL) of water to maintain optimum hydration. | |
| #Version 2, builds string in Javascript, but only does math once! | |
| $(eval const hours = Math.trunc((Date.now()- Date.parse('$(twitch mellana "{{uptimeAt}}")'))/(1000*60*60)); "@mellana You've been live for just over " + hours + " hours. By this point in your broadcast you should have consum |
| #!/bin/sh | |
| # /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses.sh | |
| # INSTALL | |
| # | |
| # > curl -L 'https://gist.github.com/paulfurley/46e0547ce5c5ea7eabeaef50dbacef3f/raw/56ee5dd5f40dec93b8f7438cbdeda5475ea3b5d2/randomize-mac-addresses.sh' |sudo tee /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses.sh | |
| # > sudo chmod +x /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses.sh | |
| # Configure every saved WiFi connection in NetworkManager with a spoofed MAC |