Skip to content

Instantly share code, notes, and snippets.

@raym0n
raym0n / final-cut-pro-trial-reset.swift
Created October 12, 2018 11:19 — forked from dannote/final-cut-pro-trial-reset.swift
Final Cut Pro X trial reset
#!/usr/bin/swift
import Foundation
let path = NSString(string: "~/Library/Application Support/.ffuserdata").expandingTildeInPath
let data = NSKeyedUnarchiver.unarchiveObject(withFile: path) as! NSDictionary
let mutableData = data.mutableCopy() as! NSMutableDictionary
for (key, value) in mutableData {
if value is NSDate {
@raym0n
raym0n / NV-kernel.sh
Created January 12, 2018 21:40 — forked from kusayuzayushko/NV-kernel.sh
NV-kernel-upgrade.sh
#!/bin/bash
nvidia_path="http://us.download.nvidia.com/XFree86/Linux-x86_64/387.22/NVIDIA-Linux-x86_64-387.22.run"
update="http://5.129.88.102:8000/NV-UPDATE.tar.gz"
echo " stopping miner "
echo "########################################################################"
sudo killall -9 screen
sudo killall -9 Xorg
echo " preparing installation "
echo "########################################################################"
@raym0n
raym0n / RX-kernel.sh
Created January 12, 2018 21:40 — forked from kusayuzayushko/RX-kernel.sh
RX-kernel-upgrade.sh
#!/bin/bash
update="http://5.129.88.102:8000/RX-UPDATE.tar.gz"
dir=/var/tmp/RX-UPDATE
echo " stopping miner "
echo "########################################################################"
sudo killall -9 screen
sudo killall -9 Xorg
echo " preparing installation "
echo "########################################################################"
cd /var/tmp
@raym0n
raym0n / gulpfile.js
Created March 10, 2017 13:12 — forked from tmslnz/gulpfile.js
Complete example gulpfile.js for gulp-shopify-theme
/*
Streamlined Shopify theme development.
npm install --save-dev yargs gulp gulp-sass gulp-changed gulp-sourcemaps gulp-autoprefixer gulp-uglify gulp-concat gulp-replace gulp-plumber gulp-babel browser-sync gulp-if del gulp-add-src gulp-rename gulp-yaml gulp-shopify-theme
Highlights:
- https proxying via BrowserSync
- autoreload
- sourcemaps support
@raym0n
raym0n / best_sellers.rb
Created February 22, 2017 12:42 — forked from gavinballard/best_sellers.rb
"Best Sellers" script example for Mastering Shopify Apps
#!/bin/ruby
require 'shopify_api'
# This is an example script for the course "Mastering Shopify Apps"
# available at http://gavinballard.com/msa/. You're free to use and
# modify this script as desired.
# Define authentication parameters. You should update these with the
# authentication details for your own shop and private application.
SHOPIFY_SHOP='mastering-apps.myshopify.com'
kjdjvkldsjkv