Skip to content

Instantly share code, notes, and snippets.

View Mearman's full-sized avatar
🍞

Joseph Mearman Mearman

🍞
View GitHub Profile
@preslavrachev
preslavrachev / kotlin-gradle-executable-jars.md
Created December 10, 2016 07:29
Kotlin Basics: Create Executable Kotlin JARs, using Gradle

Kotlin Basics: Create Executable Kotlin JARs, using Gradle

Kotlin is great for creating small command-line utilities, which can be packaged and distributed as normal JAR files. This short tutorial will show you how to:

  • Set up a Gradle project that supports Kotlin
  • Add a starting function
  • Configure your build to call this function when you execute your JAR.

Setting up Kotlin dependencies

@blueogive
blueogive / .latexmkrc
Last active March 11, 2024 07:42
latexmk configuration file
# $Date:$
$print_type = 'pdf';
$pdf_mode = 3;
$postscript_mode = $dvi_mode = 0;
$latex = 'xelatex --no-pdf %O %S && cp %Z%R.xdv %D';
$dvipdf = 'xdvipdfmx %O -o %D %S';
$clean_full_ext .= ' xdv';
@ivanskodje
ivanskodje / youtube-dl-download-pluralsight-videos.md
Last active February 4, 2025 05:07
youtube-dl for downloading pluralsight videos

Downloading Videos from Pluralsight

Disclaimer

Pluralsight do not permit users to download their videos.
If you are an user of pluralsight you have agreed with their ToS,
and are thusly refrained from doing so.
Use this knowledge at your own risk.

youtube-dl for Windows

@talkingmoose
talkingmoose / kickstart commands.sh
Last active November 29, 2022 18:11
Commands from Apple's support page to enable all Remote Management options for a single user. https://support.apple.com/en-us/HT201710
#!/bin/sh
# start Remote Management
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate
# enable access for specified users
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -allowAccessFor -specifiedUsers
# specify users who can remotely access a machine and enable all privileges
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -users teacher,student -access -on -privs -All

List exif informations

# -s : Short output format
exiftool file.jpg -s
exiftool file.jpg -AllDates
exiftool file.jpg  -FileModifyDate
exiftool file.jpg -DateTimeOriginal
exiftool 20170411_220635.JPG -s | grep Date

exiftool -p "$DateTimeOriginal" "Photo - 01.JPG"

Keybase proof

I hereby claim:

  • I am exadev on github.
  • I am sp0nge (https://keybase.io/sp0nge) on keybase.
  • I have a public key ASDa2okt62Tc0UVTSGhibgRUA7aP6Q4BzGMghkxVvPIFGgo

To claim this, I am signing this object:

@MatthewMaker
MatthewMaker / .gitattributes
Last active April 11, 2025 20:43
Example .gitattributes file for use with repositories which contain cross-platform Unity3D projects
# Assumptions
#
# All filetypes (file suffixes) in everyone's local filesystems will be lowercased.
# Files with uppercased letters in the suffixes will be ignored by this config.
# If we wanted to support mixed-case suffixes, we'd need to adjust this file like this:
# *.jpg *.[jJ][pP][gG]
# But doing that is harder to read ...aaAaAnD could lead to its own problems.
# For later exploration: There might be some git-hook way to mandate this at the server.
#
@DanBodnar
DanBodnar / ExportOptionsPlistKeys.txt
Last active May 16, 2023 09:22
xcodebuild -exportOptionsPlist available keys
compileBitcode : Bool
For non-App Store exports, should Xcode re-compile the app from bitcode? Defaults to YES.
embedOnDemandResourcesAssetPacksInBundle : Bool
For non-App Store exports, if the app uses On Demand Resources and this is YES, asset packs are embedded in the app bundle so that the app can be tested without a server to host asset packs. Defaults to YES unless onDemandResourcesAssetPacksBaseURL is specified.
iCloudContainerEnvironment : String
@agrcrobles
agrcrobles / android_instructions_29.md
Last active February 15, 2025 21:03 — forked from patrickhammond/android_instructions.md
Setup Android SDK on OSX with and without the android studio

Hi, I am a fork from https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03.

A high level overview for what I need to do to get most of an Android environment setup and maintained on OSX higher Catalina and Big Sur with and without Android Studio been installed.

Considering the SDK is installed under /Users/<your_user>/Library/Android/sdk folder which is the Android Studio preferred SDK location, but it works fine under /usr/local/share/android-sdk as well, which is a location pretty much used on CI mostly.

Prerequisites:

https://github.com/shyiko/jabba instead ?

@wanglf
wanglf / vscode-extension-offline.md
Last active May 19, 2025 06:30
Download VS Code extensions as VSIX

How to use?

  • Copy content of vsix-bookmarklet, create a bookmark in your browser.
  • Navigate to the web page of the VS Code extension you want to install.
  • Click the bookmark you just created, then click the download button.
    download
  • After download finished, rename the file extension to *.vsix.
  • In VS Code, select Install from VSIX... in the extension context menu.
    vsc