Sign in

I am a developer experienced in Python, JavaScript, Vue.js, Swift, and Git. I write about content that I find interesting or useful to share with the world.

Development

A simple way to set Vuetify’s dark mode state and make it user-configurable

Source: Material.io

I use Vue.js and Vuetify for almost all of my websites and I’m a huge supporter of dark mode. I chose Vuetify for many reasons, and out-of-the-box dark mode support is one of them. So, without further ado, let me guide you through changing the dark mode state — easily.

Setting the Default Dark Mode State

In order to set the default dark mode state, we have to open the plugin file for Vuetify, which is available at src/plugins/vuetify.js. By default, the file should look like the following.

import Vue from "vue";
import Vuetify from "vuetify/lib";
Vue.use(Vuetify);export default new Vuetify({});

From here, all we need…


Development

Want to know how to push to GitHub? Read on. (This article is inaccurate. I highly recommend you do NOT read this article.)

Source: GitHub

I personally suggest you do not read this article. It is inaccurate, and a more accurate version is coming soon.

I’ve been a heavy GitHub user for the past few years, but one thing has always stumped me: pushing to GitHub. In this article, I’ll cover how you can easily push to GitHub using the git command-line utility.

The following instructions are written assuming that the operating system being used is macOS. These instructions will work perfectly on Linux, but Windows may need some additional configuration prior to using the git utility.

And before making any command-line instructions, make sure…


macOS Tricks

I just recently upgraded to macOS Catalina, and needed to flash a microSD card for my Raspberry Pi. However, balenaEtcher was throwing an error when trying to flash the image.

The error thrown by balenaEtcher

After a little while, I realized that Catalina included some extra privacy protections. I went into System Preferences and turned on “Full Disk Access” for balenaEtcher. But lo and behold, the error still persisted.

The Solution

After doing a bit of research, I found that balenaEtcher, and Etcher (the former name of balenaEtcher), had a command-line utility to launch the app.

sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher


macOS Tricks

Photo by chuttersnap on Unsplash

Let’s say you’re on a computer where you don’t have administrative access, but you really need to use this one piece of software. In my case, this was Apple’s SF Symbols app. There’s a pretty simple way to extract the payload from the package (.PKG).

To get started, you first need two things. A macOS-equipped computer and a DMG with a PKG inside, or just a PKG. This tutorial will detail both.

Extracting the Package Contents

If your PKG is inside of a DMG, start here.

To extract the payload from a PKG inside of a DMG, we need to mount the DMG. There…

H. Kamran

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store