Skip to content

Instantly share code, notes, and snippets.

Avatar
📱
echo ‘.DS_Store’ | tee -a “$(pwd)/.gitignore”

Dan Burkhardt DanBurkhardt

📱
echo ‘.DS_Store’ | tee -a “$(pwd)/.gitignore”
View GitHub Profile
@DanBurkhardt
DanBurkhardt / convert-webp-add-wallpapers.sh
Last active Feb 10, 2022
Copy & Convert .webp Images to Ubuntu Wallpapers Dir
View convert-webp-add-wallpapers.sh
#!/bin/bash
MSG='Click "add picture" at the top of the window, navigate to "/usr/share/backgrounds", select all images and click done.'
# convert all to jpg
printf "\nconverting all .webp to .jpg.."
for x in ls *.webp; do ffmpeg -loglevel panic -i $x ${x%.webp}.jpg; done
# copy to system wallpaper directory
printf "\ncopying images to system backgrounds folder.."
@DanBurkhardt
DanBurkhardt / README.md
Last active Mar 6, 2021
Whomst: an alias for those whomst.
View README.md

Whomst

An alias for those .. whomst.

What is this?

Whomst is a novelty/overkill script that simply allows you to use the command whomst any time you'd normally us whoami.

Whomst it is just a silly alias of whoami that is added to your shell profile so you can use it in the terminal.

@DanBurkhardt
DanBurkhardt / ps-batch-ios-assets.jsx
Last active Sep 27, 2020
Photoshop Automation: batch resize & export images for Xcode .xcassets catalogs as @1x, @2x, @3x resolution versions from @3x source images.
View ps-batch-ios-assets.jsx
// batch-export-ios-assets.jsx
// Licensed under MIT. See below.
//
// Tested with: macOS 10.15.6, Adobe Photoshop 2020 v21.2.3 Release
//
// Description:
// A JS script that enables simple automated *batch* exporting for
// images in the @1x, @2x, @3x sizes required for Xcode .xcasset catalogs
//
// This script makes a few assumptions, you should either adjust
@DanBurkhardt
DanBurkhardt / install-sshpass.sh
Last active Apr 3, 2022
Install "sshpass" on macOS Catalina
View install-sshpass.sh
# Install "sshpass" on macOS Catalina.
#
# - sshpass allows you to easily automate password entry
# prompts for ssh sessions.
#
# Don't mess around with terminal if you
# don't know what any of this means, please.
# Evaluate for learning purposes at your own risk.
#
# Licensed under MIT. See below.
@DanBurkhardt
DanBurkhardt / README.md
Created Oct 10, 2019
Xcode Server Web UI - Disable 'Integrate' button for all users on bots web page
View README.md

Xcode Server - Disable "Integrate" button access for /Xcode web page

License: MIT

disclaimer

this is for experiemntal use only do not use this if you don't know what you're doing you could do something bad or irreversible, idk, read the script first and see if it looks alright to run

Problem: When you visit {xcodeserver}.com/xcode there is this terrible little button there named "integrate". Xcode Server doesn't have any web UI configuration options whatsoever. None, literally nothing.

@DanBurkhardt
DanBurkhardt / gist:2d369692b24b7076ce4c0a6daf1acfc2
Last active Aug 4, 2019
Edit Xcode build concurrency settings
View gist:2d369692b24b7076ce4c0a6daf1acfc2
defaults write com.apple.dt.xcodebuildPBXNumberOfParallelBuildSubtasks 12
defaults write com.apple.dt.xcodebuild IDEBuildOperationMaxNumberOfConcurrentCompileTasks 12
defaults write com.apple.dt.xcode PBXNumberOfParallelBuildSubtasks 12
defaults write com.apple.dt.xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks 12