Skip to content

Instantly share code, notes, and snippets.

View erkie's full-sized avatar
🕺
working

Erik Rothoff Andersson erkie

🕺
working
View GitHub Profile
@erkie
erkie / Load Balancing FTP.txt
Created January 25, 2020 22:07
Load balancing FTP
Load Balancing FTP.
If you run an FTP server at scale, you will eventually want to load balance it. This is no mean task as FTP is a notoriously finicky protocol. Those familiar with FTP will know that it uses more than one TCP connection; the first connection is the command channel and the second is the data channel. To successfully load balance FTP, you must address both of these connections.
To further complicate matters, the data channel can be established using two methods. FTP Active or FTP Passive. For the rest of this document, I will simply use the terms active and passive to refer to these modes. First, let’s review how the command and data channels are used in FTP.
Active FTP.
When using FTP in active mode, the FTP client first connects to the server on port 21. This opens the command channel. The client authenticates itself, sets options, retrieves feature support from the server etc. The data channel is not opened until the client makes request that will result in the transfer of data from the
import Ember from 'ember';
export default Ember.Component.extend({
times: [
1,
2,
3,
4,
5,
6,
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
test
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.js"></script>
<script type="text/javascript">
@erkie
erkie / controllers.application.js
Last active January 31, 2019 16:48
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@erkie
erkie / buttons.scss
Created December 13, 2018 09:11
Simple Theming using SCSS
.button--base {
cursor: pointer;
padding: 20px;
&.button--large {
padding: 40px;
}
&.button--small {
padding: 5px;
@erkie
erkie / kubernetes-dashboard-service-accounts.yaml
Created November 3, 2018 11:04
Service accounts needed to run Kubernetes Dashboard on DigitalOcean Kubernetes
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: kubernetes-dashboard
labels:
k8s-app: kubernetes-dashboard
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin

Du suger: C

@erkie
erkie / rss_link_tag.html
Created May 21, 2018 09:18
Feeder RSS Example: Link tag