Skip to content

Instantly share code, notes, and snippets.

@inntran
inntran / autounattend.xml
Last active August 17, 2020 14:33
Windows 10 1803 Clean Setup, sponsored apps will not be installed, Administrator is enabled.
<?xml version="1.0" encoding="utf-8"?>
<!-- UEFI & GPT, 64GB C drive, 160GB D drive, Administrator enabled with empty password -->
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<servicing></servicing>
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DiskConfiguration>
<WillShowUI>OnError</WillShowUI>
<Disk wcm:action="add">
<CreatePartitions>
@sighmon
sighmon / install-wifi.sh
Created May 22, 2018 04:24
Raspberry Pi usb -> wifi dongle driver installation
#!/bin/bash
#set -e
# install-wifi - 12/02/2018 - by MrEngman.
UPDATE_SELF=${UPDATE_SELF:-1}
UPDATE_URI="http://downloads.fars-robotics.net/wifi-drivers/install-wifi"
ROOT_PATH=${ROOT_PATH:-"/"}
WORK_PATH=${WORK_PATH:-"${ROOT_PATH}/root"}
@pavelbinar
pavelbinar / extract-subtitles-from-mkv.md
Last active December 24, 2023 12:10 — forked from bmaeser/subtitle-extract.txt
Extract subtitles from .mkv files on Mac OS X
@ipoddubny
ipoddubny / convert.sh
Created February 4, 2013 06:54
Convert mp3 files into Asterisk native format
#!/bin/bash
# converts .mp3 files in current directory into .sln Asterisk 16-bit signed linear audio
for f in *.mp3; do
lame --decode $f;
done
for f in *.wav; do
sox $f -t raw -r 8000 -b 16 -c 1 ${f%.wav}.sln
rm $f
@jpetto
jpetto / gist:1903811
Created February 24, 2012 21:19
store/retrieve multiple select values to/from localstorage
// watch for changes to motivations select
$('#motivations').change(function() {
var selected = []; // create an array to hold all currently selected motivations
// loop through each available motivation
$('#motivations option').each(function() {
// if it's selected, add it to the array above
if (this.selected) {
selected.push(this.value);
}