Skip to content

Instantly share code, notes, and snippets.

{
SkipPaths = (
"/Applications",
"/bin",
"/cores",
"/installer.failurerequests",
"/Library/Application Support/Apple",
"/Library/Audio",
"/Library/Caches",
"/Library/ColorPickers",
property excluded_fields : {"Created Date", "Modified Date", "base station name(name)"} --, "full name(name)", "Password"
property original_text_item_delimiters : AppleScript's text item delimiters
property delimiter : tab
on run
set chosen_file to (choose file)
set imported_file to read chosen_file
set AppleScript's text item delimiters to (ASCII character 10)
set rows to every text item of imported_file
@jaydisc
jaydisc / gist:470a6dbbc70c67e1dac619619fad275d
Created October 24, 2018 11:21
Resizing a filesystem using qemu-img and fdisk

Occasionally we will deploy a virtual instance into our KVM infrastructure and realize after the fact that we need more local disk space available. This is the process we use to expand the disk image. This process assumes the following:

  • You're using legacy disk partitions. The process for LVM is similar and I will describe that in another post.
  • The partition you need to resize is the last partition on the disk.

This process will work with either a qcow2 or raw disk image. For

@jaydisc
jaydisc / key.md
Created November 6, 2018 22:43
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

@jaydisc
jaydisc / Transformers Online Retailers.md
Last active August 16, 2023 02:05
Transformers Online Retailers