Skip to content

Instantly share code, notes, and snippets.

Keyboard Shortcuts and Workflow Efficiencies

This is incomplete. It was inspired by a mutual exchange of eye-opening keyboard shortcuts.

Introduction

If you want to work creatively, it helps to remove interruptions and wait times. Using a computer is meant to be faster than doing things by hand, and creative work is one reason we use them. We know from experience what it's like to use an app that you have to wait for, versus an app that keeps up with you. The app that keeps up with you lets you do better work because you remain more focused, and it's more fun to use. But you, too, can either be fast or slow as a user. Computers spend most of their time waiting on us. So if you want to do your very best creative work with a computer, it will help if you and the computer get faster together.

Mac apps

@w00tc
w00tc / 1) Active Directory One Liners
Last active August 19, 2024 22:56
Some Pentesting Notes
Retrieves all of the trust relationships for this domain - Does not Grab Forest Trusts
([System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()).GetAllTrustRelationships()
Grab Forest Trusts.
([System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest()).GetAllTrustRelationships()
@craigarms
craigarms / cisco_device_backup.yml
Created February 19, 2020 09:47
Ansible playbook to Idempotently retrieve and backup information from Cisco Devices
---
- hosts: sw_ios
gather_facts: false
connection: local
tasks:
- name: save config
ios_command:
commands:
- write mem
@craigarms
craigarms / cisco_reload_switches.yml
Created February 17, 2020 11:30
Ansible Playbook to reload Cisco Switches and verify the version is at the target
---
- hosts: sw_ios
gather_facts: false
models:
"WS-C2960XR-48FPD-I":
ios_version: "15.2(7)E0a"
ios_path: "IOS/"
ios_archive: "c2960x-universalk9-tar.152-7.E0a.tar"
ios_binary: "c2960x-universalk9-mz.152-7.E0a.bin"
ios_md5: "07195a8c7866ac2a91c64b716465c516"
@craigarms
craigarms / cisco_ios_upgrade.yml
Last active February 3, 2025 21:35
Ansible Playbook for loading IOS to cisco Device Flash and copying to other stack members
---
- hosts: enterprise_l2
gather_facts: false
connection: local
vars:
models:
"WS-C2960XR-48FPD-I":
ios_version: "15.2(7)E0a"
ios_path: "IOS/"
@gustavohenrique
gustavohenrique / reverse-shell.md
Created December 17, 2019 16:45
Reverse shell Cheat Sheet
@sundowndev
sundowndev / GoogleDorking.md
Last active March 30, 2026 04:34
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@marcosvpj
marcosvpj / vscode-remove-duplicate-lines.md
Last active July 17, 2024 19:08
How to remove duplicate lines in Visual Studio Code?

If the order of lines is not important##

Sort lines alphabetically, if they aren't already, and perform these steps:
(based on this related question: https://stackoverflow.com/q/1573361/3258851)

  1. Control+F

  2. Toggle "Replace mode"

  3. Toggle "Use Regular Expression" (the icon with the .* symbol)