Skip to content

Instantly share code, notes, and snippets.

View trustdan's full-sized avatar

CrimeFog trustdan

View GitHub Profile
@trustdan
trustdan / .ideavimrc
Last active April 7, 2024 18:47 — forked from johnnymillergh/.ideavimrc
Vim
" IdeaVim Wiki https://github.com/JetBrains/ideavim/wiki
" Find more examples here: https://jb.gg/share-ideavimrc
" The Essential IdeaVim Remaps https://towardsdatascience.com/the-essential-ideavim-remaps-291d4cd3971b
let mapleader=" "
""" Common settings
set showmode
set scrolloff=5
" Do incremental searching.
@trustdan
trustdan / gist:5fe46aa9f67f6ef990d6919e03337576
Created March 19, 2024 15:21
Google Apps script to list all subfolders and filenames inside of a given Google Drive folder
function listFilesInFolder() {
var folderName = "your folder name here"; // Replace with the name of your folder
var folderId = "xyxyxyxyxyxyxyxyxyxyxyxyx-xyxyxyx (Replace everything in quotes here with string at end of folder URL)";
var folder = DriveApp.getFolderById(folderId);
if (folder) {
var output = [];
listFiles(folder, output);
var doc = DocumentApp.create('Folder Contents - ' + folderName);
if you need to get into some of these apps on a personal device: envision, vision, gain, etc., you will need appgate for the il4 passthrough. https://helpcenter.gamewarden.io/integrations-access/appgate/
# Hate trying to track your (or your unit's) training in MyLearning?? It doesn't have to be so awful. Use Envision instead. It also does IMR, PFAs, and loads more. Details in post.
Discussion
[envision.af.mil](https://envision.af.mil) pulls from dozens, if not hundreds of official Air Force databases daily, including MyLearning. If you make an account for yourself, you will be able to see a super simple but powerful layout of all your required trainings, as well as when they are due. Not only this, but it also pulls things like IMR due dates, PT scores and testing month, decorations, DLPT scores, official courses you've taken, and more. There are basically two options:
1. Get a standard, non-PII access account. This will let you see all of your stuff, and track it. You'll still have to use MyLear
$Source = @"
[DllImport("BluetoothAPIs.dll", SetLastError = true, CallingConvention = CallingConvention.StdCall)]
[return: MarshalAs(UnmanagedType.U4)]
static extern UInt32 BluetoothRemoveDevice(IntPtr pAddress);
public static UInt32 Unpair(UInt64 BTAddress) {
GCHandle pinnedAddr = GCHandle.Alloc(BTAddress, GCHandleType.Pinned);
IntPtr pAddress = pinnedAddr.AddrOfPinnedObject();
UInt32 result = BluetoothRemoveDevice(pAddress);
pinnedAddr.Free();
h scroll left
j scroll down
k scroll up
l scroll right
gg scroll to top of the page
G scroll to bottom of the page
f activate link hints mode to open in current tab
F activate link hints mode to open in new tab
r reload
@trustdan
trustdan / GoogleDorking.md
Created May 24, 2023 23:30 — forked from sundowndev/GoogleDorking.md
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"
@trustdan
trustdan / discord_styles.js
Created December 1, 2022 15:11 — forked from ivan/discord_styles.js
Userscript to fix Discord styles and replace server icons in the sidebar with text labels
// ==UserScript==
// @name Discord: Fix styles
// @namespace discord_styles
// @description github discord sidebar thing
// @match *://discord.com/*
// @version 1
// @grant GM_addStyle
// ==/UserScript==
GM_addStyle(`
If you’re getting this it’s because we recently discussed MH. I’ve aggregated a bunch of my Mattermost messages below. Enjoy!
FFIT colleague sends [unofficial / gouge alert]: "Information about what affects your career vs what won't (for a long time I could never get a straight answer from mental health without an actual consult, so I delayed help way too long). Recently found these two sources of all knowledge
• https://goflightmedicine.com/usaf-flight-surgeon-guidance-resources/
• https://apps.apple.com/us/app/med-standards/id1018687273 "
//
Don't know how long it'll stay in the cloud but you can watch the movies here if you missed them: Pleasure Unwoven: Webex meeting-20220312 2037-1
Recording password: Ckqk26F*
Name
challenger1.jpg
challenger2.jpg
challenger3.jpg
Autonomy, Interdependence, and Social Control NASA and the Space Shuttle Challenger.pdf
Autonomy_interdependence_and_s.pdf
Criminology and the Sociology of Organizations.pdf
Diane Vaughan - rational choice situatied action and social control.docx.pdf
Diane Vaughan The_Trickle_Down_Effect.pdf
@trustdan
trustdan / UnofficialResources.txt
Created March 24, 2022 03:37
Mil / Veteran resources
https://suicidepreventionlifeline.org // 1-800-273-8255
Text an anonymous crisis counselor: 741741
Veterans Crisis Line: 1-800-273-8255 (24/7) or Live Chat with the Veterans Crisis Line (24/7)
DIAL 211 OR 701-235-SEEK (7335)
Stop Soldier Suicide - 1-800-273-8255 ext #1
Military One Source: 1-800-342-9647 //
https://www.militaryonesource.mil/confidential-help/non-medical-counseling/
https://www.militaryonesource.mil/confidential-help/non-medical-counseling/military-onesource/free-confidential-face-to-face-non-medical-counseling/
https://www.militaryonesource.mil/confidential-help/non-medical-counseling/military-onesource/how-to-choose-a-counselor-or-therapist/