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
| // SomeClass.js | |
| class SomeClass { | |
| constructor() { | |
| } | |
| } | |
| export default SomeClass | |
| // index.js | |
| import SomeClass from './SomeClass.js' | |
| let x = new SomeClass() |
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
| # ----------------- ---- -- - | |
| # Custom Settings | |
| # From 2020.04.23 | |
| # Anonymize | |
| visible_hostname none | |
| forwarded_for off | |
| via off | |
| # Remove some HTTP headers |
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
| # Global .gitignore | |
| # | |
| # To take effect, place this file on your home dir and run this command: | |
| # $ git config --global core.excludesfile ~/.gitignore_global | |
| # | |
| # Created by https://www.gitignore.io/api/node,linux,macos,windows,eclipse | |
| # Edit at https://www.gitignore.io/?templates=node,linux,macos,windows,eclipse | |
| ### Eclipse ### |
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
| <?php | |
| /** | |
| * Example class | |
| */ | |
| class Dog { | |
| private $name, $breed, $age; | |
| public function __call($Fn, $Args) { | |
| $act = substr($Fn, 0, 3); |
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
| ; Custom PHP Settings | |
| ; --------------------- ---- -- - | |
| ; Place this file in: /etc/php/conf.d | |
| ;memory_limit = 128M | |
| memory_limit = 512M | |
| ; Fix "JIT compilation failed" in PHP 7.3 | |
| pcre.jit=0 |
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
| # dir: /etc/pacman.d/hooks/ | |
| [Trigger] | |
| Operation = Upgrade | |
| Type = Package | |
| Target = * | |
| [Action] | |
| Description = rkhunter --propupd | |
| When = PostTransaction |
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
| [Unit] | |
| Description=Minecraft World Map Renderer | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/bin/nice -n 10 /usr/bin/mapcrafter -c /etc/mapcrafter/render.conf |
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
| [Unit] | |
| Description=Let's Encrypt renewal | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/bin/certbot renew --pre-hook "/usr/bin/systemctl stop nginx.service" --post-hook "/usr/bin/systemctl start nginx.service" --quiet --agree-tos | |
| ExecStartPost=/bin/systemctl reload nginx.service |
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 is global .gitignore | |
| # Place this on your home directory And run this command: | |
| # git config --global core.excludesfile ~/.gitignore | |
| # -------------------------------- ---- -- - | |
| # Created by https://www.gitignore.io/api/eclipse,vim,macos,linux,windows,archives | |
| ### Archives ### | |
| # It's better to unpack these files and commit the raw source because |
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
| server { | |
| listen 80; | |
| # listen on the www host | |
| server_name ~^(www\.)(?<domain>.+)$; | |
| # and redirect to the non-www host (declared below) | |
| return 301 $scheme://$domain$request_uri; | |
| } |