Skip to content

Instantly share code, notes, and snippets.

View durandom's full-sized avatar
😶
my dog's got no nose

Marcel Hild durandom

😶
my dog's got no nose
View GitHub Profile
@Dids
Dids / IPA_Install_Apple_Silicon.md
Last active June 2, 2024 12:29
Installing IPAs on the M1

Installing IPAs on Apple Silicon (M1)

  1. Open Apple Configurator 2 and plug in your iPhone or iPad
  2. Click Add, login to the App Store and select the application you want to install
  3. Open up ~/Library/Group\ Containers/K36BKF7T3D.group.com.apple.configurator/Library/Caches/Assets and wait until the TemporaryItems directory appears
  4. Copy the application from the newly created temporary directory, but do note that it will disappear once Apple Configurator is done installing
  5. Double click the .ipa on your Apple Silicon (M1) device and install it
  6. Fix permissions on the installed application by running sudo xattr -rd com.apple.quarantine /Applications/<your_app>.app (if you skip this step, you're unable to start the application)

Note that it's easier if you already have the application installed, as Apple Configurator will prompt you about overwriting the existing installation, at which point the temporary file (the .ipa) will still exist, until you choose an action in the prompt.

@ironcladlou
ironcladlou / Vagrantfile
Last active May 22, 2019 07:58
OpenShift 4.0 Installer on macOS
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "generic/fedora28"
config.vm.network "public_network"
config.vm.synced_folder ".", "/vagrant", type: "nfs"
config.vm.provider "vmware_desktop" do |v|
v.ssh_info_public = true
v.vmx["numvcpus"] = "2"
@m4rcsch
m4rcsch / WARNING.md
Last active April 25, 2021 09:00 — forked from Ambroos/WARNING.md
Remove SentinelOne agent from Mac. Because honestly, it doesn't seem to do anything at all. Run as root, best is to do this from a recovery mode, single user mode with writeable filesystem, ...

USE AT OWN RISK

This was only tested on a partial SentinelOne installation on the High Sierra beta, where SentinelOne was never allowed to enable it's kernel extension.

We keep all our Terraform files under the terraform directory.

Terraform allows to reuse definitions across environments. We thus don't have to have a set of definitions for provisioning Onadata resources in the production environment and a different set of definitions for provisioning Onadata resources in the staging environment. How we go about this is by creating a shared Terraform module for our setup, then including this module in Terraform files corresponding to each of the environments we plan to deploy the setup.

The following subsections will take you through how to codify your setup using Terraform, the Ona way. As a reference, we will use Onadata's Terraform files:

1. Create a Reusable Module

Keep the Terraform resource blocks for your setup in ../terraform/modules/. For instance, the Onadata setup's resource blocks are kept in terraform/modules/onadata. Then isolate the Ter

oc login -u system:admin
cat <<-EOF > /tmp/pv.yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv0001
spec:
capacity:
storage: 1Gi
@romanblanco
romanblanco / notes.md
Last active September 16, 2021 07:07
Notes

clone Manageiq

git clone git@github.com:romanblanco/manageiq.git 
git remote add upstream git@github.com:ManageIQ/manageiq.git

Gemfile.dev.rb

Setting up events for Google Provider in ManageIQ

(Note: much of this was taken from this public document: https://cloud.google.com/logging/docs/export/configure_export)

Summary

Events can be setup on a per-project basis by using Google Stackdriver Logging combined with Google Pub/Sub. Stackdriver logging is a service that aggregates and exposes log events from various other Google services and applications. This document describes how to export activity log entries for a Google project to Google Pub/Sub, a messaging service.

Prerequisites

  1. You must have owner permission on the project you are exporting
  2. You must have enabled the Google Cloud Pub/Sub API for your project. You can enable the API via the following steps:
  3. Visit the API Library
@blomquisg
blomquisg / Debugging-miq-worker.md
Last active September 3, 2017 14:51
Debugging a MIQ Worker
  1. Remove the worker class name from class_names.rb
  2. Start your sever normally
  3. Make sure your provider is added to your appliance (for provider-specific workers like refreshers and event catchers)
  4. Run rails console (see rails script below)
@juanje
juanje / gist:1310403
Created October 24, 2011 21:37
Use Ruby as AWK or Grep
# A few examples about how to use Ruby for parsing files as we could do
# with Awk or Grep. This is based on what I learn fro this post:
# http://code.joejag.com/2009/using-ruby-as-an-awk-replacement/
# Split each line with ':' and print the first $F[0] field
awk -F: '{ print $1 }' /etc/passwd
ruby -F: -nae 'puts $F[0]' /etc/passwd
# Parse the 'ps aux' output
# It'll print the ID process for the 'jojeda' user
@igrigorik
igrigorik / ruby-1.9-tips.rb
Created February 3, 2011 17:19
Ruby 1.9 features, tips & tricks you may not know about...
def tip(msg); puts; puts msg; puts "-"*100; end
#
# 30 Ruby 1.9 Tips, Tricks & Features:
# http://www.igvita.com/2011/02/03/new-ruby-19-features-tips-tricks/
#
tip "Upgrading to Ruby 1.9 is simple: rvm install 1.9.2 && rvm --default 1.9.2"
tip "Ruby 1.9 supports named captures in regular expressions!"