Use these steps to lock down your cloud instance of code server by only allowing whitelisted users to have SSH access and limit Safari to only HTTPS traffic.
This file contains 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
*filter | |
# Allows all loopback (lo0) traffic and drop all traffic to 127/8 that doesn't use lo0 | |
-A INPUT -i lo -j ACCEPT | |
-A INPUT ! -i lo -d 127.0.0.0/8 -j REJECT | |
# Accepts all established inbound connections | |
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT |
This file contains 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
ALTER TABLE `users` DROP `id`; | |
ALTER TABLE `users` AUTO_INCREMENT = 1; | |
ALTER TABLE `users` ADD `id` int UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST; |
This file contains 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
::-webkit-scrollbar, | |
::-webkit-scrollbar-thumb { | |
overflow: visible; | |
border-radius: 0; | |
border: solid 1px #A6A6A6; | |
} | |
::-webkit-scrollbar { | |
width: 10px; | |
border-right: 0; |
This file contains 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
css-property-order { | |
/* Position Values */ | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
/* Box Sizing */ | |
width: auto; |
This file contains 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
x ---- | |
| | | |
| | | |
| | | |
y ---- ---- a | |
| | | |
---- b | |
a > x | |
a = y |
This file contains 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
module ApplicationHelper | |
def json_for(target, options = {}) | |
options[:scope] ||= self | |
options[:url_options] ||= url_options | |
target.active_model_serializer.new(target, options).to_json | |
end | |
end |
- Create a function that returns the angular route object. This object contains a controller that handles the mounting and unmounting of the React component, as well as a container template to render the component inside of. Note: the
containerId
is arbitrary and only exists to identify the container the component will be placed in.
var registerRouteForComponent = function (componentClass) {
var containerId = 'reactComponentRender';
var controller = function ($scope, $injector) {
This file contains 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
FROM node:lts | |
# Copy the working directory | |
RUN mkdir /usr/src/app | |
WORKDIR /usr/src/app | |
COPY . /usr/src/app | |
RUN npm ci --no-progress | |
RUN npm run build --if-exists | |
# Exposes a port to other containers but your app may use any port specified in it |
OlderNewer