Skip to content

Instantly share code, notes, and snippets.

View danijeljw's full-sized avatar
🏠
Staying at home

Danijel-James Wynyard danijeljw

🏠
Staying at home
View GitHub Profile
@danijeljw
danijeljw / icndispdiag.applescript
Created October 26, 2013 08:34
AppleScript display dialog box with icon
Display dialog box with custom icon called _icon.icns_
```
display dialog "My custom icon " buttons {"Cancel", "Continue"} default button "Continue" with icon file "Contents:Resources:icon.icns"
```
```
set x to ((path to me as text) & "Contents:Resources:myicon.icn­s") as alias
display dialog "your text here" with icon x
```
@danijeljw
danijeljw / windows-docker-cheat-sheat.md
Last active March 18, 2023 21:31 — forked from dwilkie/docker-cheat-sheat.md
Windows Docker Cheat Sheet

Build docker image

PS> cd \path\to\Dockerfile
PS> docker build .

View running processes

@danijeljw
danijeljw / keybase.md
Created December 27, 2021 21:03
keybase.md

Keybase proof

I hereby claim:

  • I am danijeljw on github.
  • I am danijeljw (https://keybase.io/danijeljw) on keybase.
  • I have a public key ASCjOrqQzEnZdFxB03OMRwOPVhTCH_0XkB-JSTMq1Fcggwo

To claim this, I am signing this object:

@danijeljw
danijeljw / sdLRImportTool.sh
Last active March 2, 2021 15:52
Lightroom Image Import Prep v0.2
#!/bin/bash
# Lightroom Image Import Prep v0.2
todayDate="$(date +'%Y%m%d')"
sdCard=$"/Volumes/EOS_Digital/DCIM/100CANON/*"
newDir=$"$HOME/Desktop/$todayDate"
if [ -d "/$HOME/Desktop/$todayDate" ]; then
echo "Folder exists, manual import"
# Contribution License Agreement
This Contribution License Agreement ("Agreement") is agreed to by the party signing below ("You"),
and conveys certain license rights to RePass Cloud Pty Ltd and its affiliates ("RePass Cloud") for Your
contributions to RePass Cloud open source projects. This Agreement is effective as of the latest signature
date below.
## 1. Definitions
**"Code"** means the computer software code, whether in human-readable or machine-executable form,
that is delivered by You to RePass Cloud under this Agreement.
@danijeljw
danijeljw / gitlab-api.ps1
Created June 24, 2020 00:37 — forked from nobusugi246/gitlab-api.ps1
GitLab API with PowerShell.
# https://docs.gitlab.com/ee/api/projects.html
# https://docs.gitlab.com/ee/api/issues.html
# https://docs.gitlab.com/ee/api/notes.html
# Project List
$r = Invoke-RestMethod -Headers @{ 'PRIVATE-TOKEN'='xxxxx' } -Uri http://xxxxx/api/v4/projects/
$r | Sort-Object -Property id | Format-Table -Property id, name
# Issues List
$r = Invoke-RestMethod -Headers @{ 'PRIVATE-TOKEN'='xxxxx' } -Uri http://xxxxx/api/v4/projects/<xx>/issues
@danijeljw
danijeljw / reclaimWindows10.ps1
Last active December 24, 2019 03:13 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
@danijeljw
danijeljw / SampleFunctionTemplate.ps1
Created July 3, 2019 01:45 — forked from ciphertxt/SampleFunctionTemplate.ps1
PowerShell Advanced function template
function Function-Name {
<#
.Synopsis
The short function description.
.Description
The long function description
.Example
C:\PS>Function-Name -param "Param Value"
This example does something
@danijeljw
danijeljw / remove_Office_2008.sh
Created March 11, 2014 06:02
Uninstall Microsoft Office 2008 Mac.
#!/bin/bash
echo
echo This will remove Office 2008 from your Mac
echo
echo
sleep 5
echo Removing Office from Applications
sudo rm -rf /Applications/Microsoft\ Office\ 2008
sleep 5
echo Removing Office Library files
@danijeljw
danijeljw / cask_upgrade.sh
Last active December 17, 2017 19:08
Upgrade casks installed via Homebrew Cask
#!/usr/bin/env bash
brew update
brew cask update
casks=( $(brew cask list) )
for cask in ${casks[@]}
do
# in the first line there is version