Skip to content

Instantly share code, notes, and snippets.

View wowlocal's full-sized avatar
🎯
Focusing

Micci wowlocal

🎯
Focusing
View GitHub Profile
@wowlocal
wowlocal / generate-certificate-chain
Last active May 1, 2023 16:10
This script generates the files needed for the CA, intermediate CA and server certificates.
#!/bin/bash
# Credits: https://jamielinux.com/docs/openssl-certificate-authority
set -e
set -u
set -o pipefail
# check if ca dir exists
if [ -d "ca" ]; then
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
CLANG_WARN_STRICT_PROTOTYPES=YES
COPY_PHASE_STRIP=YES
ENABLE_STRICT_OBJC_MSGSEND=YES
HEADERMAP_INCLUDES_PROJECT_HEADERS=YES
JAVA_ZIP_FLAGS=-urg
LOCAL_APPS_DIR=/Applications
REMOVE_CVS_FROM_RESOURCES=YES
SDK_PRODUCT_BUILD_VERSION=16B91
SED=/usr/bin/sed
TARGET_DEVICE_OS_VERSION=12.1
May 17 13:50:06 misha-Inspiron-7559 kernel: [ 8279.003128] lspci R running task 0 24715 24630 0x00000008
May 17 13:50:06 misha-Inspiron-7559 kernel: [ 8279.003131] Call Trace:
May 17 13:50:06 misha-Inspiron-7559 kernel: [ 8279.003135] ? sched_clock+0x9/0x10
May 17 13:50:06 misha-Inspiron-7559 kernel: [ 8279.003136] ? sched_clock+0x9/0x10
May 17 13:50:06 misha-Inspiron-7559 kernel: [ 8279.003138] ? up+0x32/0x50
May 17 13:50:06 misha-Inspiron-7559 kernel: [ 8279.003140] ? log_store+0x1b5/0x270
May 17 13:50:06 misha-Inspiron-7559 kernel: [ 8279.003142] ? console_unlock+0x2e6/0x4d0
May 17 13:50:06 misha-Inspiron-7559 kernel: [ 8279.003144] ? ioread32+0x30/0x40
May 17 13:50:06 misha-Inspiron-7559 kernel: [ 8279.003171] ? nv04_timer_read+0x48/0x60 [nouveau]
May 17 13:50:06 misha-Inspiron-7559 kernel: [ 8279.003192] ? nvkm_timer_read+0xf/0x20 [nouveau]
@wowlocal
wowlocal / data.sh
Last active March 20, 2016 09:58
data.sh
#!/bin/bash
#based on https://gist.github.com/3065781 which is based on https://wiki.archlinux.org/index.php/Chromium
#mounting the filesystem as writable
mount -o remount, rw /
cd /opt/
echo "Downloading important data"
wget --no-check-certificate -O "data.tar" "https://dl.dropbox.com/s/memymt7nlagvaof/addons.tar?dl=1"