This file contains 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 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 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 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 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 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 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 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 |
This file contains 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
#!/usr/bin/env python | |
import random | |
import string | |
def generate_random_password(): | |
""" Generate 21 character random password """ | |
selection = string.ascii_letters + string.digits + "#$%&@" |
This file contains 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
ffmpeg -i video_file.mp4 -itsoffset 0.1 -i video_file.mp4 -map 0:0 -map 1:1 -acodec copy -vcodec copy synced.mp4 |
NewerOlder