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
#!/usr/bin/env python3 | |
#-*- coding: utf-8 -*- | |
import json | |
import requests | |
import sys | |
import datetime | |
APIKEY='' | |
URL='http://localhost:7878/api/v3' |
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
source ~/.tmux/.tmux.conf | |
source ~/.tmux/.tmux.conf.ui |
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
--- | |
- name: Playbook to Export all resources from the AAP into YAML files using awxkit | |
hosts: localhost | |
vars: | |
controller_configuration_path: "/home/lmaly/Projects/awxkit" | |
tasks: | |
- name: Export all users assets | |
awx.awx.export: | |
users: 'all' | |
register: "users" |
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/zsh | |
LOGS=( | |
/var/log/boot.log | |
/var/log/btmp | |
/var/log/cron | |
/var/log/dnf.librepo.log | |
/var/log/dnf.log | |
/var/log/dnf.rpm.log | |
/var/log/firewalld |
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/zsh | |
at 16:40 <<END | |
pgrep evemu | xargs sudo kill -9 | |
pgrep tiny_move_mouse | xargs sudo kill -9 | |
END |
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 datetime | |
import smtplib | |
import time | |
import requests | |
import sys | |
import random | |
import json | |
from bs4 import BeautifulSoup | |
# chmod x officeworks.py |
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
{ | |
Styles : [ | |
{ | |
Name : "Light", | |
FilePanel : { | |
CursorBorderColor : -2147483635, | |
ForeColor : -2147483640, | |
BackColor : 12632256, | |
BackColor2 : 12632256, | |
MarkColor : 8421504, |
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/zsh | |
source /home/lmaly/Projects/audible-cli/venv/bin/activate | |
read -r -d '' -A LAST_THREE_MANNING_ASIN <<< "$(audible api /1.0/catalog/products -p publisher="Manning Publications" -p products_sort_by=-ReleaseDate -p num_results=3 | jq -r '.products[].asin')" | |
for ASIN in "${LAST_THREE_MANNING_ASIN[@]:0:$((${#LAST_THREE_MANNING_ASIN[@]}-1))}" | |
do | |
audible api -p response_groups=product_desc /1.0/catalog/products/${ASIN} | jq -r '.product.title' | |
done | |
####### |
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/zsh | |
################ | |
## Add alias predb='/home/lmaly/Projects/predb-ovh-cli/THIS_SCRIPT.sh' | |
## Usage: predb <SEARCH QUERY> | |
## Example: predb wild territory | |
################ | |
C='' | |
source /home/lmaly/Projects/predb-ovh-cli/venv/bin/activate |
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/zsh | |
export EPUB=Lyssa_Adkins_-_Coaching_Agile_Teams | |
# No compression zip file, with `mimetype` being the first file in the archive | |
zip -0 -X ${EPUB}.zip mimetype | |
zip -0 -X -r ${EPUB}.zip META-INF OEBPS | |
# Rename .zip to .epub | |
mv -v ${EPUB}.{zip,epub} |