moorebeers
(MooreBeers)
1
I’m guessing this may be something on the lines of IT Documentation, but it also doesn’t quite work that way either.
Currently I’ve got a Notepad++ Document that I’ve kept going with different commands (PowerShell, CMD, Linux, etc.) that I may not use a lot but might have difficulty trying to find if I used a search engine.
It’s gotten to be a bit long, with some of that being the descriptions, spaces, etc., but it’s something I’ve used just about everywhere I’ve gone job wise. I’ve tried my best to sanitize the information so it’s not company specific and it’s helped some of the training I’ve done since it’s been a nice Reference Tool since the examples are in a way we intend to use them. It’s not perfect by any means, but I’m carious what others do with obscure code you don’t use often, but enough you don’t want to lose it?
How do you keep track of commands you seldom use?
- Notepad++
- Github
- Word Document
- Text File
- DuckDuckGo
- OneNote
- Personal Script Repository
- Notion
- Google Keep
- I don’t. I just Google it again.
- Google Docs
- Excel workbook
- Sublime Text
- Phone notes app
- CRM notes
- Evernote
- TXT file
- TiddlyWiki
- ITGlue
- Obsidian
37 Spice ups
craigrrr
(CraiGrrr)
2
Same. I keep notepad++ txt docs titled by project with scads of ad hoc sql queries in them for various entry/correction/sync procedures, vigorously commented.
3 Spice ups
tb33t
(TB33T)
3
I just use a simple Notepad text file for these types of things. I probably should use notepad++ but I’m just too engrained in my current habit to change.
7 Spice ups
merlinyoda
(MerlinYoda)
4
I have a couple text files for just these sort of things. One text file is called “stuff”, as in “stuff to save for later reference”. It’s basically commands and information I presumed I would need later on but wouldn’t really be suitable to formally document anywhere. Another one is called “scratchpad” and is just what it sounds like. It’s somewhere to “scratch stuff down” that I need to save in the short-term but is not nearly important enough to go in “stuff”.
5 Spice ups
molan
(molan)
5
I have a visual studio code script repository setup on my computer. It contains all kinds of useful scripts and one off commands (90% powershell)… Usually with references to where I pilfered them from in the interweb.
Every once in a while I make a 7zip of the entire thing and stick it into my onedrive for backup
visual studio code has decent search and I often find my self searching my repository for things I know I have done previously.
6 Spice ups
One note. Organized by books and pages. 365, Azure, AD, etc.
8 Spice ups
Private repos for bigger stuff, but OneNote pages for medium size stuff. For small function-level reminders, I use tables in a few dedicated OneNote pages.
Also I answer a lot of questions on technet, reddit and here, so I search for myself!
And of course, Outlook sent items.
5 Spice ups
For personal use, a notebook app is sufficient, for example I use Joplin Notes. To collaborate with colleagues, we use Dokuwiki on a web server that can only be accessed internally. HTH
3 Spice ups
I have notebook that I carry with me that I write things down in.
5 Spice ups
I thought I was a unique butterfly in this but I keep a folder labeled “Stuff” with all the batch, powershell and script in text documents, not into coding so there isn’t anything complex.
4 Spice ups
temmu
(Temmu)
11
Excel workbook, “42.xlsx”
Dozens of spreadsheets on various topics.
Pruned annually, spreadsheets with outdated material moved to workbook named. “42-old.xlsx”
6 Spice ups
netcacique
(netcacique)
13
OneNote and Notepad++. Back those up to cloud storage.
1 Spice up
shnool
(SHNOOL)
14
I put them on a post-it note then forget where I left the note. That’s why they are infrequently used commands!
jeffnoel
(ghijkmnop)
15
I have a running text file in Sublime Text 3.
1 Spice up
I keep a Notepad++ tab for commands I commonly use that take a lot of typing plus anything really elaborate is part of my PowerShell script collection. I also have a whole page of Exchange stuff that I haven’t touched since we migrated most clients to 365.
1 Spice up
You should try OneNote. You can organize it a lot better into multiple tabs and sheets, and then just ctrl-e to find across all of them.
1 Spice up
moorebeers
(MooreBeers)
19
Wow, so it looks like it’s a bit everywhere. I do admit that the VSCode has me intrigued as I do use it to make sure I type my commands correctly before committing them to a script, I just never thought to utilize it like a common script storage. And it definitely looks like everyone has their own style of doing things from the more documentation the better, to the meh it’s not something I need a lot.
I wonder if Spiceworks could give us a Private Text Repository for such things, or maybe a place in our Profile Projects Area where we could sanitize the scripts we needed so others could see and utilize what’s been done instead of having to reinvent the wheel? I mean, it could have saved someone, or myself let’s be honest here, so much time to see that a migration was done and here’s the commands and a quick script used to verify and/or help do the repetitive tasks. I know I’ve seen mountains of questions about renaming computers or joining computers to a domain and they want a script that could use the SN of the systems and there’s like 18 ways to get the SN depending on what you’re using for the coding. The code is nice to find sometimes in the comments, but it would be nice to see some type of Code Cross Reference in SW that could show something like:
What do you want to do? Join Domain
Do you want to rename the computer? Yes
Do you want the SN or other data? Yes
What script type are you using? Powershell (java, VB, bash, etc.)
I agree that I can use Google’s Search Engine, but lets be honest here, sometimes what we’re looking for takes us back to a SW post anyway so why not cut out the middle man?
2 Spice ups
pcase2
(pcase2)
20
Wellll it depends on how common it is haha. If I feel like I do it a few times a year I might write it down some where. If it’s any longer I’ll probably just google it every time.
1 Spice up