国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
package main | |
import ( | |
"encoding/binary" | |
"errors" | |
"fmt" | |
"io" | |
"net" | |
) |
# high sierra | |
sudo launchctl stop com.openssh.sshd | |
sudo launchctl start com.openssh.sshd | |
# latest | |
sudo vim /etc/services # (update the port config for ssh and save) | |
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist | |
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist |
#!/bin/bash | |
## Executing this script is not a guarantee for a secure host! | |
## This script is a collection of the junk I have found on my hosts and what | |
## the SaltStack community gave as input. We have seen this attack evolve. | |
## Please have a very close look at your systems and consider reinstalling them | |
## to be absolutely sure you are free of malware. | |
# remove crontab persistence | |
for i in 54.36.185.99 217.8.117.137 176.31.60.91 217.12.210.192 54.36.185.99 54.36.185.99 89.223.121.139 torsocks anagima3 sa.sh$ c.sh$ selcdn.ru salt-store; do |
from datetime import datetime | |
import aiohttp | |
import asyncio | |
URL = "https://medium.fabianbosler.de/run" | |
async def sample_asyncio(samples): | |
start = datetime.now() |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
#!/usr/bin/env python3 | |
# coding: utf-8 | |
""" | |
Author : weaming | |
Created Time : 2018-05-26 21:32:59 | |
Prerequisite: | |
python3 -m pip install cson arrow | |
""" | |
import json | |
import os |
var GB2260 = { | |
"110000": "北京市", | |
"110100": "北京市市辖区", | |
"110101": "北京市东城区", | |
"110102": "北京市西城区", | |
"110103": "北京市崇文区", | |
"110104": "北京市宣武区", | |
"110105": "北京市朝阳区", | |
"110106": "北京市丰台区", | |
"110107": "北京市石景山区", |
#define KBUILD_MODNAME "load_balancer" | |
#include <uapi/linux/bpf.h> | |
#include <linux/in.h> | |
#include <linux/if_ether.h> | |
#include <linux/if_packet.h> | |
#include <linux/if_vlan.h> | |
#include <linux/ip.h> | |
#include <linux/ipv6.h> | |
BPF_HASH(counter, uint32_t, long); |