Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block goophile

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
goophile /
Last active Nov 25, 2018
Get a list of words from a text file.
#!/usr/bin/env python3
import os
import sys
import re
import subprocess
from collections import Counter, OrderedDict
CUR_DIR = os.path.dirname(os.path.realpath(__file__))
goophile /
Created Nov 18, 2018
Search a list of words and sync to iciba cloud.
Search a list of words and sync to iciba cloud.
This script was tested only on Windows 7.
1) Install iciba:
2) Install python and pyautogui.
3) Move iciba window to a fixed location.
4) Find out the coordinates of text input and search button. Change this script according to your needs.
goophile /
Last active Jul 17, 2016
i8kmon/i8kfan for Dell Precision desktop
import re, subprocess, time
# On my Dell Precision desktop, the `i8kmon` controls the fan level according to the ambient temperature, not the CPU temperature.
# Maybe the i8kutils only works for laptop? I don't know. Luckly, the `i8kfan` CAN control the motherboard fan and CPU fan.
# It's usage is `i8kfan - -`, the first number is for motherboard, the second for CPU. You should test the sequence first.
# What this scirpt do is simple: get temperatures from `sensors`, and change the fan levels with `i8kfan`.
# It's similar to the original TCL version i8kmon.
# Add latency to all outgoing traffic on $DEV on tcp/udp $PORT,
# in the amount of $DELAY.
# This is matching on both source port and destination port, which
# may hit you twice if you're accessing a local resource.
# To see what's currently in effect,
# tc -s qdisc show dev lo
You can’t perform that action at this time.