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
View CP2112.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
View fuck360.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Diagnostics;
View zhihu.php
<?php
require 'vendor/autoload.php';
$mongo = new MongoDB\Client("mongodb://taterli:f697bb912da7f4d210382c67@127.0.0.1:27017");
$db = $mongo->wa; //选择数据库
$collection = $db->zhihu; //选择文档集合
$next_qid = null; /* 首次 */
$first_qid = 0;
View pppoe.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netinet/ether.h>
#include <netpacket/packet.h>
#include <netinet/in.h>
#include <time.h>
@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
You can’t perform that action at this time.