Skip to content

Instantly share code, notes, and snippets.

View brootware's full-sized avatar
🎯
Focusing

Oaker Min brootware

🎯
Focusing
View GitHub Profile

To enable adding custom search engines in firefox.

In firefox

URL bar --> 
about:config --> 
browser.urlbar.update2.engineAliasRefresh --> 
click on add button on the right
@brootware
brootware / for_loop_reverse_list.py
Last active December 12, 2023 03:33
Cheat Sheet
sample_list = [45, 67, 87, 23, 5, 32, 60]
# Your code below
new_list = []
for i in range(len(sample_list)-1, -1, -1):
new_list.append(sample_list[i])
print(new_list)

https://www.elevenforum.com/t/automatically-lock-computer-after-inactivity-in-windows-11.4774/

  • Open Local Security Policy (secpol.msc).
  • Double click/tap on Local Policies in the left pane to expand, and click/tap on Security Options to open it. (see screenshot below)

Automatically_lock_computer_after_inactivity_secpol-1.png

  • In the right pane of Security Options, double click/tap on the Interactive logon: Machine inactivity limit policy to open its properties. (see screenshot above)
  • Enter a number between 0 to 599940 for how many seconds of inactivity you want to automatically lock computer after, and click/tap on OK. (see screenshot below)
  • The default is 0 (zero) seconds to not automatically lock the computer.
$ANSIBLE_VAULT;1.1;AES256
63333535376164353838646662643761373737383664383834363430363662323561313262353662
6539376130313833646562376561666230336462303363330a323065646330613263396166336131
36636239336431313764303933663035636637346463316139343737356239363863363330373965
6161336463323362350a633831616634613234376133336633393234333961663132303737383738
3263
@brootware
brootware / Cinnamonpatch.yml
Last active September 8, 2024 11:16
Quick and simple ansible play to test out on your own local host
---
- name: Local plays
hosts: localhost
gather_facts: yes
become: true
tasks:
- name: Update apt cache
apt:
update_cache: yes
when: ansible_os_family == "Debian"
@brootware
brootware / requirements.txt
Last active April 11, 2025 05:28
requirements for ansible tower venv
ansible==8.7.0
ansible-compat==4.1.11
ansible-core==2.15.8
ansible-lint==6.22.2
attrs==23.2.0
black==24.1.1
bracex==2.4
certifi==2023.11.17
cffi==1.16.0
charset-normalizer==3.3.2