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
| # secure.sh | |
| # Enable automatic updates. | |
| apt install -y unattended-upgrades | |
| dpkg-reconfigure --priority=low unattended-upgrades | |
| # Limited access user | |
| echo | |
| echo Creating limited access user... | |
| echo Enter new username. |
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
| /** | |
| * dwmconfig.h | |
| * Hardware multimedia keys | |
| */ | |
| /* Somewhere at the beginning of config.h include: */ | |
| /* | |
| You need the X11 development package installed, but here is the upstream copy | |
| of this header if you can't bother using the contents of your own hard drive. ;-P | |
| https://cgit.freedesktop.org/xorg/proto/x11proto/tree/XF86keysym.h |
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
| sudo apt-get install -y python3.6 |
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
| console.log("Loading dependencies..."); | |
| // This is how you include a NodeJS library. | |
| var http = require("http"); | |
| var fs = require("fs"); | |
| console.log("Initializing server..."); | |
| var rootDir = "/www/"; | |
| var port = 80; | |
| function err404 (res) { |
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
| #!/user/bin/env python | |
| import pygame | |
| import pygame.camera | |
| import time as t | |
| breach = str(t.time()) | |
| pygame.camera.init() | |
| cam = pygame.camera.Camera() |
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
| import string | |
| def caesar(key, text): | |
| alpha = dict(zip(string.ascii_lowercase,range(26))) | |
| beta = {v: k for k, v in alpha.items()} | |
| text, other, result = text.lower(), ['.', '?', ',', ' ', '!'], [] | |
| for i in text: | |
| index = alpha[i] + key | |
| for j in other: | |
| result.append(i) if i == j else pass | |
| result.append(beta[index]) if 25 > index + key > 0 else result.append(beta[index - 25]) |
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
| def Collatz(integer): | |
| number = integer | |
| count = 0 | |
| while number > 1: | |
| if number%2 == 0: | |
| number = number / 2 | |
| else: | |
| number = number*3 +1 | |
| count = count +1 | |
| return count |