Skip to content

Instantly share code, notes, and snippets.

View vbrozik's full-sized avatar
☮️
Ukraine stay strong

Václav Brožík vbrozik

☮️
Ukraine stay strong
  • NTT Czech Republic
  • Czech Republic
  • 10:18 (UTC +02:00)
View GitHub Profile
@benyanke
benyanke / BASH: Reminder to 'git pull'
Last active April 28, 2022 12:34
BASH: Reminder to 'git pull'. This function hooks into CD to remind you to 'git pull' when entering a repository directory. It will only alert you every X seconds.
cd() {
# Seconds between alerts: raise this
# number if you want to get fewer alerts
# Default: 10 min
alertDelay=600
# Alert text: this is displayed when you
# CD into a git repo
alertText="\n##################################################\n This is a git repo. Don't forget to 'git pull'\n##################################################\n"
@ethack
ethack / TypeClipboard.md
Last active May 4, 2025 03:07
Scripts that simulate typing the clipboard contents. Useful when pasting is not allowed.

It "types" the contents of the clipboard.

Why can't you just paste the contents you ask? Sometimes pasting just doesn't work.

  • One example is in system password fields on OSX.
  • Sometimes you're working in a VM and the clipboard isn't shared.
  • Other times you're working via Remote Desktop and again, the clipboard doesn't work in password boxes such as the system login prompts.
  • Connected via RDP and clipboard sharing is disabled and so is mounting of local drives. If the system doesn't have internet access there's no easy way to get things like payloads or Powershell scripts onto it... until now.

Windows

The Windows version is written in AutoHotKey and easily compiles to an executable. It's a single line script that maps Ctrl-Shift-V to type the clipboard.

@shu8
shu8 / markdownCopier.user.js
Last active October 30, 2024 19:19
A userscript that lets you quickly copy content on SE as markdown. Just select and pres Ctrl+Alt+M
// ==UserScript==
// @name Copy as markdown
// @namespace http://stackexchange.com/users/4337810/
// @version 1.3
// @description A userscript that lets you quickly copy content on SE as markdown. Just select and pres Ctrl+Alt+M
// @author ᔕᖺᘎᕊ (http://stackexchange.com/users/4337810/)
// @match *://*.stackexchange.com/*
// @match *://*.stackoverflow.com/*
// @match *://*.superuser.com/*
// @match *://*.serverfault.com/*
@CMCDragonkai
CMCDragonkai / ssh_configuration_conditionals.md
Last active June 27, 2021 22:07
SSH: Configuration Conditionals

SSH Configuration Conditonals

It's possible to conditionally set options in the ~/.ssh/config file.

For example, below shows the usage of a conditional setting of ControlMaster, which allows sharing of the SSH network port. But it doesn't work on Windows.

At ~/.ssh/config:

@ishu3101
ishu3101 / gist_to_github_repo.md
Created November 24, 2015 08:35
Transfer a gist to a GitHub repository

Transfer a gist to a GitHub repository

clone the gist

git clone https://gist.github.com/ishu3101/6fb35afd237e42ef25f9

rename the directory

mv 6fb35afd237e42ef25f9 ConvertTo-Markdown

change the working directory to the newly renamed directory

cd ConvertTo-Markdown

https://filetea.me/t1s99dNZ5DCTHi1Vjb4zlhSzA
@arekolek
arekolek / Duolingo_Trim_tree.user.js
Last active August 19, 2021 11:23
Duolingo Trim tree (see https://www.duolingo.com/comment/12962386 for discussion)
// ==UserScript==
// @name Duolingo Trim tree
// @namespace 9a84a9d7b3fef7de9d2fd7155dcd794c
// @description Hides all golden skills with a button.
// @author Arek Olek
// @match https://www.duolingo.com/*
// @icon http://arkadiuszolek.student.tcs.uj.edu.pl/greasemonkey/duolingo.png
// @grant GM_getValue
// @grant GM_setValue
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
@EdwardBetts
EdwardBetts / pprint_color.py
Last active March 28, 2025 10:12
Python pprint with color syntax highlighting for the console
from pprint import pformat
from typing import Any
from pygments import highlight
from pygments.formatters import Terminal256Formatter
from pygments.lexers import PythonLexer
def pprint_color(obj: Any) -> None:
"""Pretty-print in color."""
@jiggneshhgohel
jiggneshhgohel / gist:ade2c57d03c4ad895e82
Created February 27, 2015 21:26
Adobe Air 2.6 Installation Steps on Ubuntu 14.04 (64-bit)
@mattstauffer
mattstauffer / log.md
Last active June 14, 2023 09:23
Introduction to GistLog

So, you might be asking yourself, what is GistLog?

GistLog is a blogging "platform" for people who want to quickly write and publish content, in Markdown, and don't want to bother with yet another platform and yet another login and yet another group hoarding their content. With GistLog, you use your pre-existing GitHub login, you store the data in your own GitHub account, and you can publish with a single click.

Using GistLog

  1. Create a public gist with a single file using Markdown. Set the gist description to be the title of your blog post
  2. Copy the gist URL, and paste it into the text box on the GistLog create page
  3. Copy your resulting URL and share it as your blog post—note that it will be in the form of https://gistlog.co/your-github-username/gist-id
  4. If you want to have your own GistLog landing page (e.g. gistlog.co/mattstauffer), [read all about it](https://gistlog.co/mattstauffer/a82db5