Skip to content

Instantly share code, notes, and snippets.

View jevy's full-sized avatar

Jevin Maltais jevy

View GitHub Profile
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"url": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"url": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
@jevy
jevy / keybase.md
Created August 4, 2023 20:39
keybase.md

Keybase proof

I hereby claim:

  • I am jevy on github.
  • I am jevy (https://keybase.io/jevy) on keybase.
  • I have a public key ASCprErSzJvyfzqOzgkur8L5CfC4HSKqK3GE4Hpw8Bo14wo

To claim this, I am signing this object:

{
description = "Home Manager configuration of Jevy";
inputs = {
# Specify the source of Home Manager and Nixpkgs
home-manager.url = "github:nix-community/home-manager/release-21.11";
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
duplicity_script.url = "/home/jevin/code/personal/duplicity_script";
};
{
description = "Duplicity Backup Script";
outputs = { self, nixpkgs }: {
packages.x86_64-linux.backup_script =
let
pkgs = import nixpkgs {
system = "x86_64-linux";
@jevy
jevy / default.nix
Last active February 15, 2022 00:09
Duplicity Backup
with import <nixpkgs> {};
let
duplicity_backupsh = fetchFromGitHub {
owner = "zertrin";
repo = "duplicity-backup.sh";
rev = "595aded06f96d91cbe44662712f6e5614ce89220";
sha256 = "1xzmz7fcr3vjcxhbjla3kvc49g3xgbs065pjd167jfqvgxj51m7l";
};
[nix-shell:~/code/personal/gnome-calendar-applet]$ poetry install
Installing dependencies from lock file
Package operations: 1 install, 0 updates, 0 removals
• Installing dbus-python (1.2.18): Failed
EnvCommandError
Command ['/home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/bin/pip', 'install', '--no-deps', 'file:///home/jevin/.cache/pypoetry/artifacts/08/8e/4b/533a9277c305a960780320ddcac1c3ed323a213a78fcd0434298fabb72/dbus-python-1.2.18.tar.gz'] errored with the following return code 1, and output:
14:31:18.139 DEBUG PushManager.initCrypt():70 - Encryption not enabled
14:31:18.144 DEBUG PushManager.init():41 - Getting user info...
14:31:18.701 DEBUG Is connected.websocketDidConnect():279 - PushManager
15:58:48.658 WARNING Is disconnected: Optional("The operation couldn’t be completed.websocketDidDisconnect():283 - PushManager
15:58:48.659 INFO PushManager.websocketDidDisconnect():286 - Reconnecting in 5 sec
15:58:53.703 WARNING PushManager.disconnect():52 - Trigged disconnect
15:58:53.936 DEBUG Is connected.websocketDidConnect():279 - PushManager
16:39:04.261 WARNING PushManager.disconnect():52 - Trigged disconnect
16:39:04.261 WARNING Is disconnected: nil.websocketDidDisconnect():283 - PushManager
16:39:04.262 INFO PushManager.websocketDidDisconnect():286 - Reconnecting in 5 sec
# to run: docker-compose run
#
# Create a .evn file in the same folder as this file and change the variables.
# MOUNT_POINT=/tmp/
# VPN_PROVIDER=changeme
# VPN_CONFIG=changeme
# VPN_USERNAME=changeme
# VPN_PASSWORD=changeme
#
#
@jevy
jevy / missing_files.py
Created July 13, 2017 15:07
Simple script to compare MD5s between two dirs and all subdirs to be there all the same files exists (ignores filenames and dir structure)
import argparse
import os
import hashlib
# Origin_dir_files = Build an MD5 hash of files with filenames in original dir (with subdirs)
# Destination_dir_files = Do the same for all in the destination dir
# Iterate over origin_dir_files to see each hash exists in Destination_dir_files. Print any that aren't
def get_all_filenames(root):