Skip to content

Instantly share code, notes, and snippets.

View EstebanMqz's full-sized avatar

EstebanMqz EstebanMqz

View GitHub Profile
@daveh
daveh / form.html
Last active June 10, 2024 14:45
Send email with PHP (code to accompany https://youtu.be/fIYyemqKR58)
<!DOCTYPE html>
<html>
<head>
<title>Contact</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
</head>
<body>
<h1>Contact</h1>
@adojos
adojos / setting_automatic_SSH-Agent.md
Last active March 11, 2024 15:21
Git: Set SSH Agent to Run Automatically for GitBash #gitbash #ssh

Setting Automatic SSH-Agent for GitBash


Using below procedure, you shall be able to setup SSH-Agent to run automatically whenever GitBash is launched on Windows. The ssh-agent process will continue to run until you log out, shut down your computer, or kill the process. Also you may need to add your SSH keys separately unless already loaded or available as per your config.

However the main advantage is that no duplicate SSH-Agent process will be created for successive / multiple Gitbash sessions.

👉 Note: ('$HOME/.bashrc' vs XDG Dir)

The automatic ssh-agent launch can be implemented in two ways i.e

  1. By using '$HOME/.bashrc' in this case it applies to your default bash shell/linux terminal (Method A : Bullet A1-A4)
@WouterG
WouterG / tampermonkey-script.js
Last active June 24, 2024 22:31
Disable youtube volume normalization (allow true video 100% volume)
// ==UserScript==
// @name YouTube Disable Normalization
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Allows true 100% volume on youtube videos.
// @author Wouter Gerarts
// @match https://www.youtube.com/*
// @match https://youtube.com/*
// @grant none
// ==/UserScript==
@alexpaul
alexpaul / Bash.md
Last active May 15, 2024 15:02
Creating a Bash Profile

Bash

What is a bash_profile

There is a hidden file in your Mac’s user directory named .bash_profile. This file is loaded before Terminal loads your shell environment and contains all the startup configuration and preferences for your command line interface. Within it you can change your terminal prompt, change the colors of text, add aliases to functions you use all the time, and so much more.

Creating a .bash_profile

If you run the open ~/.bash_profile command and do not have a current .bash_profile, follow these steps to create one:

  1. Open Terminal
@fernandofig
fernandofig / CommandPrompts.reg
Last active October 19, 2023 22:43
Command Prompts (CMD & Powershell) Context Menu
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\shell\01MenuCmd]
[-HKEY_CLASSES_ROOT\Directory\shell\cmd]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\cmd]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\01MenuCmd]
[-HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd]
[-HKEY_CLASSES_ROOT\Directory\shell\02MenuPowerShell]
[-HKEY_CLASSES_ROOT\Directory\shell\powershellmenu]
@gdemin
gdemin / History|-123578ed|entries.json
Last active November 7, 2023 15:46
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///home/gregory/%D0%94%D0%BE%D0%BA%D1%83%D0%BC%D0%B5%D0%BD%D1%82%D1%8B/memo/book_carrol_rider_bullet_journal.md","entries":[{"id":"jsW2.md","timestamp":1651007939623},{"id":"0SrO.md","timestamp":1651007949703},{"id":"zfAe.md","source":"undoRedo.source","timestamp":1651007960527},{"id":"0PUf.md","timestamp":1651008292696},{"id":"G6nS.md","timestamp":1651008307228},{"id":"8uVV.md","source":"undoRedo.source","timestamp":1651008325717},{"id":"IjQh.md","source":"searchReplace.source","timestamp":1651011138472}]}
@lukas-h
lukas-h / license-badges.md
Last active July 11, 2024 07:00
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@jordanbtucker
jordanbtucker / open-cmd-here-admin.bat
Last active April 16, 2024 18:51
Add an "Open command window here (Admin)" context menu to folders
@echo off
net session > nul 2>&1
if /i not %errorlevel%==0 (
echo You must run this from an elevated prompt.
goto:eof
)
call :setreg "HKCR\Directory\shell\runas"
call :setreg "HKCR\Directory\Background\shell\runas"
@rxaviers
rxaviers / gist:7360908
Last active July 16, 2024 17:35
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:
<div id="toc-static"></div>
**TOC**
<div id="toc-wrapper">
<div class="header">Contents <a href="#" class="hide-btn">[hide]</a></div>
<div id="toc"></div>
</div>