!DANGER!
This might void your warranty. Do it on your own risk.
I'm using the 🐟 emoji character as my SSID, because I like to be special.
#!/usr/bin/env ruby | |
# | |
# CLI tool for locating and removing a Homebrew installation | |
# It replaces the official uninstaller, which is insufficient and often breaks | |
# If files were removed, the script returns 0; otherwise it returns 1 | |
# | |
# http://brew.sh/ | |
# | |
# Copyright (C) 2025 Stephen C. Benner | |
# |
#!/usr/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
from StringIO import StringIO | |
from django.core.serializers.json import Serializer | |
class JSONSerializer(Serializer): | |
''' | |
JSON serialize to serialize db fields and properties | |
Example: | |
>>> JSONSerializer().serialize(Model.objects.all(), ('field1', 'field2',)) | |
''' |
package no.nsb.ombord; | |
import java.net.DatagramPacket; | |
import java.net.DatagramSocket; | |
import java.net.InetAddress; | |
import java.net.SocketTimeoutException; | |
import java.net.UnknownHostException; | |
import org.apache.http.util.ExceptionUtils; |
1) Create a branch with the tag | |
git branch {tagname}-branch {tagname} | |
git checkout {tagname}-branch | |
2) Include the fix manually if it's just a change .... | |
git add . | |
git ci -m "Fix included" | |
or cherry-pick the commit, whatever is easier | |
git cherry-pick {num_commit} | |