This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://makobu.name/posts/check_mail/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Ref: https://gist.github.com/johnjeffers/3006011ec7767a4101cdd118e8d64290 | |
# status: working | |
WORKING_DIRECTORY=$HOME/Downloads/facetimehd_driver | |
if [ ! -d "$WORKING_DIRECTORY" ]; then | |
mkdir "$WORKING_DIRECTORY" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## requirements.pip | |
# pytest | |
# pytest-cov | |
# black | |
## .coveragerc | |
# [run] | |
# branch = True | |
# [report] | |
# skip_covered = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Squid should be intercepting on port 2600 | |
# A cachaing dns server should be running on this box, with squid and clients all resolving through it. | |
# FreeBSD 9.2 RELEASE + Squid 3.3.9 from ports | |
# Timothy Makobu, 2013 | |
# Variables | |
admin_if = "igb0" | |
external_if = "igb1" | |
intraservices = "{ 22, 2600, 53 }" | |
forward_ports = "{ 443, 465, 6667, 22, 587, 5938, 2083, 2082, 2095, 2096, 5242, 4244, 5243, 9785 }" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>name.makobu.project</groupId> | |
<artifactId>project</artifactId> | |
<version>0.1.0</version> | |
<name>project</name> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Date: 13/07/2021 | |
# Author: @timkofu | |
# Description: GitHib Copilot test drive | |
from typing import Callable | |
import big_o # https://pypi.org/project/big-O/ | |
def sorter(sorter: Callable[[list[int]], list[int]], range: int) -> str: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
import json | |
from typing import Union | |
from datetime import datetime | |
from argparse import ArgumentParser, Namespace | |
import tweepy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UniqueItems(list): | |
def append(self, item): | |
if item not in self: | |
super(UniqueItems, self).append(item) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from wordcloud import WordCloud | |
import matplotlib.pyplot as plt | |
word_cloud_text = [] | |
for word in ['Rust','Go','Java','C++', 'Erlang','D', 'Python']: | |
for _ in range(random.randint(1000, 10000)): | |
word_cloud_text.append(word) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U |
NewerOlder