Skip to content

Instantly share code, notes, and snippets.

if(!(Get-Command git -ErrorAction SilentlyContinue)) {
$gitDir = "$env:LOCALAPPDATA\CustomGit"
if(Test-Path $gitDir) { Remove-Item -Path $gitDir -Recurse -Force }
New-Item -Path $gitDir -ItemType Directory
$gitLatestReleaseApi = (Invoke-WebRequest -UseBasicParsing https://api.github.com/repos/git-for-windows/git/releases/latest).Content | ConvertFrom-Json
$mingitObject = $gitLatestReleaseApi.assets `
| Where-Object {$_.name -match "MinGit-[\d.]*?-64-bit.zip"} `
| Select-Object browser_download_url
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active March 26, 2025 17:03
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@agatawitkowska
agatawitkowska / Remove-commit
Created July 1, 2018 14:47
Removing wrong commit in a GitHub repo through bash-Git
#Removing commit in GitHub repository through git in the command line
#1. Open git through command line or bash
#2. After setting a username and commit email address connect to Github's reposirory:
git clone <repository's url with .git>
cd <repository's name>
git rebase -i HEAD~1 #for editing last commit
#now a text editor will open with commit's details and possible actions, exchange "pick" in the first line with the desired command, save file, and close file. Rest is done automatically
#3. Push the commit to GitHub:
@agatawitkowska
agatawitkowska / svg2png.bat
Created June 23, 2018 12:57
Convert all SVG files in the folder to PNG
FOR %%A IN (*.svg) DO inkscape --without-gui --file="%%A" --export-dpi=300 --export-png="%%A.png"
@andrewvaughan
andrewvaughan / RFID-Pi.md
Last active January 7, 2024 14:52
Reading RFID via UART on the RaspberryPi

RFID via UART on RaspberryPi

Download the Latest Version of Raspbian Lite

This can be downloaded here. It is highly recommended to download the Lite version. You can also download the full version, but most of the image is just bloat for this project.

Prepare the MicroSD Card

It is recommended to get a Class 10 or better card to improve speeds. Lower-quality cards will take tremendously longer to format, configure, and load on the RaspberryPi.

@r-a-y
r-a-y / _readme.md
Last active October 29, 2024 20:39
Using Git for Windows (PortableGit) with a portable HOME directory

Prologue

I develop on Windows (yeah, I hear your jeers, linux users!), so to use Git, I use Git for Windows

However, I use Git For Windows (portable version) so I can keep my dev environment centrally located. This is so I can reuse this environment simply by copying my msysgit directory to a USB drive.

Installation

@edgar-bonet
edgar-bonet / interpreter.ino
Last active January 8, 2025 22:09
Simple Arduino command line interpreter
/*
* interpreter.ino: Simple Arduino command line interpreter.
*
* This is intended solely as a template for building richer,
* application-specific interpreters. Add your specific commands to the
* exec() function, and whatever you need to setup() and loop().
*
* Usage:
* Talk to it through the serial port at 9600/8N1. Commands should be
* terminated by CR (\r), answers are terminated by CRLF (\r\n). This
@venoms
venoms / buffaloNASshutdown.html
Created January 24, 2016 03:31
scans for, and shuts down buffalo NAS-s in the local network
<head>
<title>buffalo nas shutdown</title>
</head>
<body>
<iframe id="iframe" sandbox="allow-same-origin" style="display: none"></iframe>
<div id="output"></div>
<script>
var output = document.getElementById("output");
//stolen from https://github.com/diafygi/webrtc-ips
@PurpleBooth
PurpleBooth / README-Template.md
Last active April 14, 2025 05:03
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@oliverdoetsch
oliverdoetsch / AND_OR_NOT
Last active January 22, 2023 17:03
Blogger: Globally conditional data tags for all page types
#AND
<b:if cond='data:blog.pageType == "index"'>
<b:if cond='data:blog.searchQuery'>
<!--search_page AND index_page-->
</b:if>
</b:if>
#OR