Skip to content

Instantly share code, notes, and snippets.

View orpheustaken's full-sized avatar

Matheus Fernandes orpheustaken

View GitHub Profile
@orpheustaken
orpheustaken / vscode_configs.json
Last active March 16, 2024 23:41
VSCode configs
{
"editor.minimap.enabled": false,
"editor.cursorStyle": "block-outline",
"workbench.startupEditor": "none",
"security.workspace.trust.untrustedFiles": "open",
"editor.fontFamily": "Fira Code",
"editor.fontSize": 15,
"editor.fontLigatures": true,
"explorer.compactFolders": false,
"editor.smoothScrolling": true,
@orpheustaken
orpheustaken / mv_mouse.py
Last active August 23, 2022 19:07
Prevent Teams status to change while I'm away from the computer
# PyWinAuto works on Windows only but allows me to use all my monitors
# import pyautogui
import pywinauto
try:
while True:
# pyautogui.moveTo(600, 20, 0.5)
# pyautogui.moveTo(700, 20, 0.5)
pywinauto.mouse.move((-1700, 20))
@orpheustaken
orpheustaken / main.yml
Created August 22, 2022 20:44
Ansible - Create volume from snapshot from other project and then transfer back
---
- name: Create DB volume from snapshot from other project...
openstack.cloud.volume:
auth:
project_id: "{{ item.other_project_id }}"
state: present
validate_certs: false
display_name: "{{ prefix }}_db_volume"
size: 100
snapshot_id: "{{ item.snapshot }}"