Skip to content

Instantly share code, notes, and snippets.

View mark05e's full-sized avatar

mark05E mark05e

View GitHub Profile
@takikoo
takikoo / README.md
Last active November 8, 2024 21:08
Export bookmarks from Google Chrome with a batch script

Export chrome bookmarks

This is a script to export bookmarks from the web browser Google Chrome to a users home drive in a Windows environment with clients and domain controllers. Most of the script comes from this article

Instruction

  • Double-click on the bat-file.
  • Go the home drive on the users new computer.
  • Double-click on openChromeFolder.bat which will take you to the chrome directory on that machiene.
  • Copy the file Bookmarks to the newly opened window.

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@db93n2
db93n2 / msg.ahk
Last active March 10, 2019 14:42
💬 (autohotkey) - message commands that are quick to type and easy to switch between
msg_box(string=". . .", options="") {
string := format_text(string, options)
msgBox, % string
}
msg_tray(string=". . .", options="") {
string := format_text(string, options)
trayTip, , % string, 10
}
@akaleeroy
akaleeroy / _goto-opened-folders.md
Last active April 16, 2025 16:26
Easy Access to Currently Opened Folders

Easy Access to Currently Opened Folders

Windows Enhancement Productivity AutoHotkey v2

Enhance Open... or Save As... dialogs with a quick way to navigate to currently opened folders.

Easy Access to Currently Opened Folders v2 - Demo

This is an AutoHotkey v2 script that gives common file selection dialogs an extra feature: middle-clicking invokes a menu of currently opened folders. Say you want to save or upload something to/from a folder you've got open in Windows Explorer. The dialog box pops up with the last folder (from another project) or My Documents, and now you have to manually navigate to the folder you want, or copy-paste its path from the open Explorer window. I wanted to get to the active locations quicker. Recent Items wasn't exactly helping, so I made this by forking [FavoriteFolders.

@martinlindenberg
martinlindenberg / format-aws-sso.js
Last active June 6, 2023 13:04
reformats AWS sso page. (greasemonkey script)
// ==UserScript==
// @name format-aws-sso
// @namespace signin.aws.amazon.com
// @description reformats that page
// @include https://signin.aws.amazon.com/saml
// @version 1.1
// @grant none
// ==/UserScript==
$('#saml_form').css('max-width', 'none');
$('fieldset').css('width', 'none');

How To - Upload and add Images to markdown files in Gist

Markdown files allow embedding images in it. However it requires the image to be hosted at some location and we can add the url of the image to embed it.

Example: ![Alternate image text](https://someurl/imagelocation/image.png)

We can use services like imgur or other services to host the images and use the hosted URL.

@jimmywarting
jimmywarting / readme.md
Last active April 29, 2025 08:29
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@ardeshir
ardeshir / ConfigureRemotingForAnsible.ps1
Created June 2, 2017 18:13
ConfigureRemotingForAnsible.ps1
#Requires -Version 3.0
# Configure a Windows host for remote management with Ansible
# -----------------------------------------------------------
#
# This script checks the current WinRM (PS Remoting) configuration and makes
# the necessary changes to allow Ansible to connect, authenticate and
# execute PowerShell commands.
#
# All events are logged to the Windows EventLog, useful for unattended runs.
@g3rhard
g3rhard / sendmessage_telegram.ps1
Last active June 17, 2020 14:46
Send message with Telegram and Powershell
#Usage: sendmessage_telegram.ps1 -chat_id CHAT_ID -text 'TEXT' -markdown
param(
[string]$chat_id = $(Throw "'-chat_id' argument is mandatory"),
[string]$text = $(Throw "'-text' argument is mandatory"),
[switch]$markdown,
[switch]$nopreview
)
$token = "TOKEN"
if($nopreview) { $preview_mode = "True" }
// The tampermonkey script is now located in https://github.com/davegallant/rfd-redirect-stripper/blob/main/script.js
// Chrome extension:
// https://chromewebstore.google.com/detail/rfd-redirect-stripper/npnhoaofocjfjcjlglaihlhkbgaokmpa?authuser=0&hl=en
// Firefox Add-on:
// https://addons.mozilla.org/en-US/firefox/addon/rfd-redirect-stripper/