Skip to content

Instantly share code, notes, and snippets.

@ghorbanzade
ghorbanzade / create-iso.sh
Last active July 12, 2018 09:03 — forked from julianxhokaxhiu/create-iso.sh
Script to Convert OSX app Image to Bootable iso
#!/bin/bash
# tested for Yosemite, ElCapitan and Sierra
print_usage () {
echo "usage: ${0} path_to_app"
exit -1;
}
if [ $# -ne 1 ]; then
@gasinvein
gasinvein / create-osx-iso.sh
Last active July 12, 2018 09:35 — forked from julianxhokaxhiu/create-iso.sh
Simple bash script to create a Bootable ISO from macOS Sierra Install Image from Mac App Store
#!/bin/bash -e
#
# Credits to fuckbecauseican5 from https://www.reddit.com/r/hackintosh/comments/4s561a/macos_sierra_16a238m_install_success_and_guide/
# Adapted to work with the official image available into Mac App Store
#
# Enjoy!
SOURCE_APP="$1"
DEST_IMAGE="$2"
if ! [ -d "$SOURCE_APP" ]; then
@jfinstrom
jfinstrom / source-TrueCNAM.module
Last active February 2, 2022 19:04
FreePBX CallerID Superfecta module for TrueCNAM
<?php
/**
* TrueCNAM module
* Service Details at http://truecnam.com/products
* Free Users get 2 lookups/minute 25/hour as of this note. Visit site for latest info
* Copyright (C) 2015 Sangoma Technologies
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
@gregelin
gregelin / SCAP-CentOS-NotApplicable.md
Last active February 22, 2022 21:50
Explanation of SCAP, CentOS and tests Not Applicable

This note explains the common issue of "notapplicable" results when running openSCAP and SCAP-Security-Guide on CentOS.

SCAP seems like it should be easy because it is "just XML". Then you dig into looking for a test and it gets confusing fast. So it is good to have some background.

SCAP (Security Content Automation Protocol) is actually a set of multiple standards and specifications that are used together to enable automatically testing hundreds of nerd settings. Let me emphasize that: SCAP is not a single XML specification -- SCAP is multiple standards and specs. Whenever you give "SCAP Content" to a scanner to check a system configurations you are giving the scanner multiple XML files representing multiple standards.

@mtdukes
mtdukes / block-assignments.csv
Last active February 23, 2022 19:54
Interim Congressional Plan block assignment files released as part of the Feb. 23, 2022 order on remedial plans: https://www.documentcloud.org/documents/21273026-order-on-remedial-plans-feb-23-2022
We can't make this file beautiful and searchable because it's too large.
GEOID20,District
371510310023000,9
371510310023001,9
371510310023002,9
371510310023003,9
371510310023004,9
371510310023005,9
371510312001000,9
371510312001001,9
371510312001002,9
# CentOS-PowerTools.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
@BackIsBachus
BackIsBachus / install_wekan_manually.md
Last active August 2, 2022 09:59
A little guide on how to install Wekan manually if you don't use Docker
# QEmu
brew install qemu
# Home for out tests
mkdir ~/arm-emu
cd ~/arm-emu
# Download initrd and kernel
wget http://ftp.de.debian.org/debian/dists/jessie/main/installer-armel/current/images/versatile/netboot/initrd.gz
@julianxhokaxhiu
julianxhokaxhiu / create-iso.sh
Created September 24, 2016 21:46
Simple bash script to create a Bootable ISO from macOS Sierra Install Image from Mac App Store
#!/bin/bash
#
# Credits to fuckbecauseican5 from https://www.reddit.com/r/hackintosh/comments/4s561a/macos_sierra_16a238m_install_success_and_guide/
# Adapted to work with the official image available into Mac App Store
#
# Enjoy!
hdiutil attach /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
@timraymond
timraymond / weather.json
Created April 14, 2017 00:26
Grafana Dashboard for displaying weather information supplied by Weewx
{
"id": 1,
"title": "Wild View Weather",
"tags": [],
"style": "dark",
"timezone": "browser",
"editable": true,
"hideControls": false,
"sharedCrosshair": false,
"rows": [