Skip to content

Instantly share code, notes, and snippets.

Tater Li nickfox-taterli

Block or report user

Report or block nickfox-taterli

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nickfox-taterli
nickfox-taterli / shadow_sample.c
Last active Jun 14, 2019
shadow_sample for docker pi relay
View shadow_sample.c
/*
* Tencent is pleased to support the open source community by making IoT Hub available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/MIT
* Unless required by applicable law or agreed to in writing, software distributed under the License is
* distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
@nickfox-taterli
nickfox-taterli / power_fuck.sh
Last active Mar 21, 2019
Powerboard service fuck
View power_fuck.sh
#!/bin/sh
# wget -qO- https://git.io/fjf12 | sh
# curl -Lso- https://git.io/fjf12 | sh
if [ $(id -u) -ne 0 ]; then
printf "Script must be run as root or sudo."
exit 1
fi
@nickfox-taterli
nickfox-taterli / huawei_cloudtable.py
Created Mar 17, 2019
华为云Serverless版表格储存数据库
View huawei_cloudtable.py
import urllib.request
import ssl
import json
import json
import base64
table_name = ''
token = ''
ep_url = 'https://hbase-cloudtable.cn-north-1.myhuaweicloud.com/v1/929213ae947c47de866553f0c025741d'
View rpi-fbcp.c
#include <stdio.h>
#include <syslog.h>
#include <sys/fcntl.h>
#include <sys/ioctl.h>
#include <linux/fb.h>
#include <sys/mman.h>
#include <bcm_host.h>
int process() {
@nickfox-taterli
nickfox-taterli / MSP430_Flash_RW
Created Jul 8, 2018
MSP430G2553 Seg Flash R/W Code
View MSP430_Flash_RW
#include <msp430.h>
#include <stdint.h>
void FlashErase(uint16_t addr)
{
FCTL3 = FWKEY;
FCTL1 = FWKEY + ERASE;
while(FCTL3 & BUSY);
*(uint8_t *)addr = 0;
FCTL1 = FWKEY;
View LEDBlink.c
@nickfox-taterli
nickfox-taterli / make-rir-delegated-latest.py
Created Jul 2, 2018 — forked from holly/make-rir-delegated-latest.py
make afrinic/apnic/arin/ripe/lacnic delegated-latest ipv4 and ipv6 list script
View make-rir-delegated-latest.py
#!/usr/bin/env python
# vim:fileencoding=utf-8
""" [NAME] script or package easy description
[DESCRIPTION] script or package description
"""
from datetime import datetime
from argparse import ArgumentParser
import pprint
@nickfox-taterli
nickfox-taterli / cloud-config.yml
Created Jul 1, 2018
Core OS Linode 参考配置包
View cloud-config.yml
#cloud-config
# 修改主机名称
hostname: coreos-01
# 将主机名称在/etc/hosts里解析为127.0.0.1
manage_etc_hosts: localhost
# 此处的ssh_authorized_keys只对core用户生效
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAIAQC/4ta5TeTOwx/67x50bwKnZnXe96/6WlconkfDtjugFCNvWt83IqDF3FZ2yO5Dyl2Xz80pUH0iusOc+x3t755KrQAhDTUqX/Np0z5TIYijd5N++GQIzvF0DBYAnmfG+UzaayPg+d4xkqC38YCdoKLe1FCMaV0+v5ehgx2CJ+VtCJJvMHY2Eu//oI9WL5rDo1yGwuCCjztKFtgSerLmgRD1aeL/nCZooIkFnAgO5pTvuwfQECvN2ECyMwvPk9onzbOn4vQ4yic3I79Ae0UkPoq29hZPIgvjigXhE1/hwKUqI/eiFC5aiqwaaFbr8BNvioO6Pxss7Ltm7rnHwg167wVPxEVI/PIkHMFSzCKr0hAg4V3hsAlqOlJcvXEtY2PzePiOut34pdsGSBqipxeuc6hTbkSruYb75aHioDzMLpU6sw6ePijz0WPEq2rkj1+/RyTkBuRV/VqlA9sArWpv93HKf6szGtkbiOqXCxzia+EXYaWXLH/fOO30vElC4nPvZIhCzKB+KMpya/zLr4EeUOoq1woIj+WNv+TUdN0iWMDbWx2Vs5U+bp8JDOa9iPCceTDMVFnO+69bl7yw7lygm9QhfIGo0Yb0+Ce3TJ3ZuclaZwOjfPBjcCVFpfFnT8KdHJjN87hBE9w9vwI/Nn1Kso/pzJm+Dg1RJGmtRsuWD816RJzCkf2FSsiBi8/q6jnF8GwAULqMThv5Bhbat2yMb0lXKwjYQIHZnnSlpYqbitifdh9AAJTASKkPTtrZ2YAAWi+ArgEeWQi7aQpU+vRbXng0OjLBdDZYjP2kSxv8UgFtqoRHq4bX4lxa
@nickfox-taterli
nickfox-taterli / udp2raw_kcptun_ss_for_debian9.sh
Created Jun 24, 2018
Debian 9 SS 一键配置脚本,使用了KCPTUN加速,支持各种OpenVZ.
View udp2raw_kcptun_ss_for_debian9.sh
#!/bin/bash
PASSWORD=123
# 客户端配置参考(前两个可以路由运行,但是最后一个最好不要,路由性能有限,会让你觉得网络卡炸的.)
#
# udp2raw -c -r35.231.111.220:40002 -l0.0.0.0:40003 -kxxx --raw-mode faketcp -a --cipher-mode none --auth-mode simple
# kcp-client -l :9527 -r 10.0.0.1:40003 -key "xxx" -crypt none -mode fast3
# SS 客户端 => 混淆:aes-256-gcm,IP:127.0.0.1:9527,密码:刚才设置的密码.
@nickfox-taterli
nickfox-taterli / udpflood.c
Created Jun 21, 2018
UDP 攻击实用程序
View udpflood.c
/*
* udpflood.c
* 一个简单的UDP Flood攻击程序,用起来比任何软件都简单,更高效,会吃光所有CPU和网络性能.
*
* BUFLEN 定义网络MTU,越接近当前网络最大MTU性能最高.
* CTHREAD 定义线程数,数量越多,越能利用带宽,服务器负载越高.
*
* 编译:gcc udpflood.c -lpthread -o udpflood
* 使用:./udpflood -t 103.116.47.27 -p 29900 -g 5 (-t 指定目标 -p 指定端口 -g 指定发送流量GB)
* NMAP扫描实用工具:nmap -p 29900 --open -sU 10.0.1.1
You can’t perform that action at this time.