Skip to content

Instantly share code, notes, and snippets.

@devmarkpro
devmarkpro / browser_history.md
Created June 17, 2025 01:38 — forked from boringrgb/browser_history.md
Playing around with Chrome's history

Browser histories

Unless you are using Safari on OSX, most browsers will have some kind of free plugin that you can use to export the browser's history. So that's probably the easiest way. The harder way, which seems to be what Safari wants is a bit more hacky but it will also work for other browsers. Turns out that most of them, including Safari, have their history saved in some kind of sqlite database file somewhere in your home directory.

The OSX Finder cheats a little bit and doesn't show us all the files that actually exist on our drive. It tries to protect us from ourselves by hiding some system and application-specific files. You can work around this by either using the terminal (my preferred method) or by using the Cmd+Shft+G in Finder.

Finder

Once you locate the file containing the browser's history, copy it to make a backup just in case we screw up.

@devmarkpro
devmarkpro / embed-folder-notes-dataviewjs.md
Created February 9, 2025 04:50
Embed All Documents in a Folder in Obsidian with Dataview.js

Embed All Documents in a Folder in Obsidian with Dataview.js

This DataviewJS script dynamically embeds all documents from a specified folder (relative_folder_path) into a single file in Obsidian. It:

  • Retrieves all notes from the given folder
  • Sorts them by file name
  • Generates embed links for each note (excluding the current one to prevent infinite loops)

Useful for creating an index or consolidated view of notes in a directory.

Make sure to enable Inline JavaScript Queries in the Dataview.js settings.

@devmarkpro
devmarkpro / git checkout-all-branches.sh
Created November 28, 2022 16:11 — forked from wilmarvh/git checkout-all-branches.sh
git checkout-all-branches
#!/bin/bash
#Whenever you clone a repo, you do not clone all of its branches by default.
#If you wish to do so, use the following script:
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master `; do
git branch --track ${branch#remotes/origin/} $branch
done
package com.devmarkpro;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.stream.Collectors;
public class Main {
public static void main(String[] args) {
int[] nums = {4, 6, 4, 2, 5, 7, 8, 6, 3, -4, 21, -6, -93, -5, -2};
@devmarkpro
devmarkpro / limit.maxproc.plist
Created December 5, 2021 17:13
limit.maxproc.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>limit.maxproc</string>
<key>ProgramArguments</key>
<array>
<string>launchctl</string>
<string>limit</string>
@devmarkpro
devmarkpro / limit.maxfiles.plist
Created December 5, 2021 17:12
limit.maxfiles.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>limit.maxfiles</string>
<key>ProgramArguments</key>
<array>
<string>launchctl</string>
<string>limit</string>
openapi: 3.0.0
info:
description: "UBO investigation gateway"
version: "0.0.1"
title: UBO API
termsOfService: 'https://companyinfo.nl/algemene-voorwaarden/'
contact:
email: service@company.info
servers:
# Added by API Auto Mocking Plugin
@devmarkpro
devmarkpro / stdc++.h
Created March 17, 2021 16:16
stdc++.h
// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2013 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.
@devmarkpro
devmarkpro / gist:5354b0ec94b7027394fe958bf4739822
Created February 17, 2018 08:39 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: