Skip to content

Instantly share code, notes, and snippets.

😂
raise Error

9r0k Rand01ph

😂
raise Error
Block or report user

Report or block Rand01ph

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
@Rand01ph
Rand01ph / k8s_make_in_china.sh
Created Apr 29, 2019
穿越GFW make k8s 源码
View k8s_make_in_china.sh
docker pull gcr.azk8s.cn/google_containers/kube-cross:v1.12.4-1
docker tag 02d0ab9d1c60 k8s.gcr.io/kube-cross:v1.12.4-1
@Rand01ph
Rand01ph / geektime.user.js
Created Sep 4, 2018
让极客时间的内容可以复制
View geektime.user.js
// ==UserScript==
// @name geektime copy
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 让极客时间的内容可以复制!
// @author Rand01ph
// @match https://time.geekbang.org/column/*
// @grant none
// @require http://cdn.staticfile.org/jquery/2.1.1/jquery.min.js
// ==/UserScript==
View LinkedList_test_2.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
class Node:
def __init__(self, data):
self.data = data
self.next = None
@Rand01ph
Rand01ph / LinkedList_test.py
Created Aug 30, 2017
A LinkedList Problem
View LinkedList_test.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
class Node:
def __init__(self, data):
self.data = data
self.next = None
@Rand01ph
Rand01ph / _service.md
Created Nov 17, 2016 — forked from naholyr/_service.md
Sample /etc/init.d script
View _service.md

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
@Rand01ph
Rand01ph / GeneralSerializer.py
Created Nov 3, 2016 — forked from robintema/GeneralSerializer.py
General Django Rest Framework model serializer
View GeneralSerializer.py
import logging
from rest_framework import serializers
class GeneralModelSerializer(serializers.ModelSerializer):
""" General model serializer that will serialize a model object. It will return all the model fields.
"""
class Meta:
model = None
@Rand01ph
Rand01ph / rsyslog.conf
Created Aug 15, 2016 — forked from kamermans/rsyslog.conf
RainerScript version of /etc/rsyslog.conf for Ubuntu with rsyslog 8+
View rsyslog.conf
# /etc/rsyslog.conf Configuration file for rsyslog.
#
# For more information see
# /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
#
# Default logging rules can be found in /etc/rsyslog.d/50-default.conf
#
# WARNING: This config has been converted to RainerScript format which could
# affect config files provided by other software in /etc/rsyslog.d/
# It should behave the same as the legacy-format config file that ships
@Rand01ph
Rand01ph / GAME_MASTER_v0_1.protobuf
Created Jul 18, 2016 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
View GAME_MASTER_v0_1.protobuf
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {
@Rand01ph
Rand01ph / rsyslog_install.sh
Created Jul 15, 2016 — forked from grigorescu/rsyslog_install.sh
Script to install rsyslog and dependencies.
View rsyslog_install.sh
#!/bin/sh
#########################
##
## Setup
##
#########################
# Set some vars
@Rand01ph
Rand01ph / logging.yaml
Created Jun 29, 2016 — forked from JesseBuesking/logging.yaml
Testing MultiProcessingLog on both Windows 7 Enterprise and Ubuntu Developers Version 10.04_20121120.
View logging.yaml
---
version: 1
disable_existing_loggers: False
formatters:
simple:
format: "%(name)-20s%(levelname)-8s%(message)s"
handlers:
console:
class: logging.StreamHandler
level: DEBUG
You can’t perform that action at this time.