Skip to content

Instantly share code, notes, and snippets.

:atom:
Thinking

Jacob Salmela jacobsalmela

:atom:
Thinking
Block or report user

Report or block jacobsalmela

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View yt
googlevideo.com
r4.snnx5e6n76.googlevideo.com
r14.sn5hnedn76.googlevideo.com
r9.snoguesn76.googlevideo.com
r3.snnx57yn76.googlevideo.com
r9.snn8v7zn76.googlevideo.com
r4.snnx5e6ne6.googlevideo.com
r5.snnx5e6ne6.googlevideo.com
r6.sn4g5e6nl6.googlevideo.com
r13.snoguesnl6.googlevideo.com
View keybase.md

Keybase proof

I hereby claim:

  • I am jacobsalmela on github.
  • I am jacobsalmela (https://keybase.io/jacobsalmela) on keybase.
  • I have a public key ASDWvnaeSJAaaXjkQKYASmFVtCkt-3YXrWDCow2zHagRiwo

To claim this, I am signing this object:

@jacobsalmela
jacobsalmela / setFavServers.sh
Created May 15, 2017
Set favorite servers in newer macOSes
View setFavServers.sh
#!/bin/bash
servers=("smb://server/share"
"smb://anotherserver/anothershare")
###### SCRIPT #######
# Run as the user via ARD
for i in "${!servers[@]}"
do
sfltool add-item -n "${servers[$i]}" com.apple.LSSharedFileList.FavoriteServers "${servers[$i]}"
done
View unattend.xml
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="specialize">
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="34b334f6ad355e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ExtendOSPartition>
<Extend>true</Extend>
</ExtendOSPartition>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="34b334f6ad355e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ComputerName></ComputerName>
View winpeDeployWindows10
@ECHO OFF
:: Jacob Salmela
:: 2016-03-09
:: Deploy Windows 10
wpeinit
echo ** Selecting first disk and reformatting...
echo select disk 0 > diskpart%ID%.txt
echo clean >> diskpart%ID%.txt
@jacobsalmela
jacobsalmela / mergePDFs.py
Last active Aug 15, 2019
Merge PDFs using Python
View mergePDFs.py
#!/usr/bin/env python
# Jacob Salmela
# Make PyPDF2 is installed: sudo easy_install PyPDF2
import sys
import os
from PyPDF2 import PdfFileMerger, PdfFileReader
merger = PdfFileMerger()
# Get the folder of the first file and that's where the merged PDF will go
@jacobsalmela
jacobsalmela / requestMedicalRecords.py
Created Jun 3, 2016
Template script to quickly fill out PDFs
View requestMedicalRecords.py
#!/usr/bin/env python
# Jacob Salmela
# 2016-06-02
# Writes text to a PDF at coordinates. Use for quickly filling out forms that you use regularly.
# This takes some manual setup, but saves a ton of time once done
# http://stackoverflow.com/a/17538003
# Make sure to install the two utilities below first
# sudo easy_install pyPdf
# sudo easy_install reportlab
@jacobsalmela
jacobsalmela / ltsp.conf
Created Apr 21, 2016
dnsmasq config file for iPXE booting with an existing DHCP server
View ltsp.conf
# Sample configuration for dnsmasq to function as a proxyDHCP server,
# enabling LTSP clients to boot when an external, unmodifiable DHCP
# server is present.
# The main dnsmasq configuration is in /etc/dnsmasq.conf;
# the contents of this script are added to the main configuration.
# You may modify the file to suit your needs.
# Don't function as a DNS server:
port=0
@jacobsalmela
jacobsalmela / autoDeployWindows.bat
Last active Jul 22, 2019
Script for WinPE to auto deploy a Windows 10 image.
View autoDeployWindows.bat
echo select disk 0 > diskpart%ID%.txt
echo clean >> diskpart%ID%.txt
echo ** Creating system reserved partition...
echo create partition primary size=500 >> diskpart%ID%.txt
echo select partition 1 >> diskpart%ID%.txt
echo active >> diskpart%ID%.txt
echo format quick fs=ntfs >> diskpart%ID%.txt
echo assign letter="r" >> diskpart%ID%.txt
@jacobsalmela
jacobsalmela / convertDOCXtoPDF.sh
Created Mar 12, 2016
Converts a DOC or DOCX to a PDF with a right-click
View convertDOCXtoPDF.sh
#!/bin/bash
# Jacob Salmela
# 2016-03-12
# Convert annoying DOCX into PDFs with a right-click
# Run this as an Automator Service
###### SCRIPT #######
for f in "$@"
do
# Get the full file PATH without the extension
You can’t perform that action at this time.