Skip to content

Instantly share code, notes, and snippets.

View the0demiurge's full-sized avatar
🙈
好孩子看不见

Charles Xu the0demiurge

🙈
好孩子看不见
View GitHub Profile
@the0demiurge
the0demiurge / ddns_provider.conf
Created November 28, 2020 13:00 — forked from superbob/ddns_provider.conf
Namecheap Synology DSM DDNS provider
#Insert this at the end of /etc.defaults/ddns_provider.conf
[Namecheap]
modulepath=/usr/syno/bin/ddns/namecheap.php
queryurl=https://dynamicdns.park-your-domain.com/update
@the0demiurge
the0demiurge / incremental_lightgbm.py
Created December 27, 2018 09:14 — forked from goraj/incremental_lightgbm.py
incremental learning lightgbm
# -*- coding: utf-8 -*-
"""
@author: goraj
"""
import lightgbm as lgbm
from sklearn.datasets import load_digits
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.metrics import roc_auc_score
@the0demiurge
the0demiurge / dpt-notes-sync.py
Created December 4, 2018 08:28 — forked from jstvz/dpt-notes-sync.py
Automatic note download of Sony Digital Paper on Arch Linux
#!/usr/bin/env python3
"""
usage: dpt-notes-sync.py ip_address
"""
import datetime
import json
import os
from dateutil import parser as dateparser
@the0demiurge
the0demiurge / namecheap-ddns
Last active November 17, 2020 04:01
Simple Namecheap Dynamic DNS client
#!/bin/sh
set -eu
FETCH="curl -sL"
# or for curl:
# FETCH="fetch -qo -"
# $1: Your domain
# $2: Subdomain A record to update. Use @ for TLD.
# $3: The password given to you by Namecheap's web interface
#
# Rerun this script every 5 minutes. Crontab entry: