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
numlist = [1, 0, 2, 3, 0, 4, 5, 0]
for i in range(0,len(numlist)):
print(f"index: {i}. Value: {numlist[i]}")
# index: 0. Value: 1
# index: 1. Value: 0
# index: 2. Value: 2
# index: 3. Value: 3
# index: 4. Value: 0

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 / debain_patch.yml
Last active June 21, 2026 03:37
Quick and simple ansible play to test out on your own local host
# ansible-playbook debian_patch.yml -K -vv --become-method=su
---
- name: Local plays
hosts: localhost
gather_facts: yes
become: true
tasks:
- name: Update apt cache
apt:
update_cache: yes
@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
# /etc/netplan/config.yml
# netplan generate
network:
version: 2
ethernets:
eth0:
addresses: [192.168.10.220/24]
routes:
- to: default
via: 192.168.10.1
@brootware
brootware / Answer.md
Created March 28, 2026 01:15
What security principal or account owns the hidden folder?

What security principal or account owns the hidden folder? Instead of going through right clicking the folder, use powershell instead

(Get-Acl -Path "C:\Folder).Owner