Skip to content

Instantly share code, notes, and snippets.

@nkwood
nkwood / AdobeAMDFix.md
Created November 14, 2020 03:05 — forked from naveenkrdy/AdobeAMDFix.md
To fix adobe products crashes on AMD hackintosh

Adobe Crash Fix XLNC

Instructions

  1. Install needed adobe apps from adobe creative cloud.

  2. Open Terminal.

  3. Copy-paste the below command to your terminal and run it (enter password if asked).

@nkwood
nkwood / clarity-ng-select.scss
Created May 18, 2019 22:51 — forked from Mennez/clarity-ng-select.scss
This stylesheet allows you to use ng-select in clarity
/**
Clarity (http://clarity.design) (at the moment of writing) does not have an auto-complete/combobox component.
ng-select is currently one of the more popular angular2/4 packages for adding auto-complete components to an angular project.
This style sheet allows anyone to use ng-select in a angular+clarity project that uses clarity forms.
To get these styles applied to your ng-select component, declare your form component as follows:
<form clrForm>
<clr-input-container>
<label>Foo</label>
@nkwood
nkwood / reclaimWindows10.ps1
Created January 5, 2018 02:26 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults)
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <[email protected]>
# Modified by: alirobe <[email protected]> based on my personal preferences.
# Version: 2.10.1, 2017-11-25
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, 'smart' features, and 3rd party bloat ...
@nkwood
nkwood / data-structure.js
Created August 30, 2017 04:20 — forked from sararob/data-structure.js
Role-based security in Firebase
/*
This example shows how you can use your data structure as a basis for
your Firebase security rules to implement role-based security. We store
each user by their Twitter uid, and use the following simplistic approach
for user roles:
0 - GUEST
10 - USER
20 - MODERATOR
<?xml version='1.0' encoding='utf-8'?>
<?grc format='1' created='3.7.11'?>
<flow_graph>
<timestamp>Wed Jan 4 13:17:31 2017</timestamp>
<block>
<key>options</key>
<param>
<key>author</key>
<value></value>
</param>
@nkwood
nkwood / channelize_example.py
Created April 25, 2017 00:34 — forked from boxlor/channelize_example.py
SDR-related utility to compute channels for PFB channelizers.
"""
Computes channelization scheme for a set of input frequencies.
Example output:
$ python channelize.py
Input frequency spacing:
freq[00] 854037500
freq[01] 854212500 dfreq=175000.000000
freq[02] 854312500 dfreq=100000.000000
@nkwood
nkwood / unifi_ssl_import.sh
Created November 7, 2016 00:36 — forked from stevejenkins/unifi_ssl_import.sh
Import and use SSL certificates (including Let's Encrypt) with the Ubiquiti UniFi Controller on Unix/Linux Systems
#!/usr/bin/env bash
# unifi_ssl_import.sh
# UniFi Controller SSL Certificate Import Script for Unix/Linux Systems
# by Steve Jenkins <http://www.stevejenkins.com/>
# Incorporates ideas from https://source.sosdg.org/brielle/lets-encrypt-scripts
# Version 2.2
# Last Updated June 26, 2016
# REQUIREMENTS
@nkwood
nkwood / cloudsqlproxy.service
Created May 24, 2016 17:54 — forked from israelfaria/cloudsqlproxy.service
How to use GCE SQL Proxy as service in Ubuntu 15.10 images
[Unit]
Description=Google Cloud Compute Engine SQL Proxy
After=cloud-config.target
Wants=cloud-config.target
[Service]
Type=simple
ExecStartPre=/bin/mkdir -p /run/cloudsqlproxy
#Optional steps if you wanna link default mysqld socket to an instance