Skip to content

Instantly share code, notes, and snippets.

View rjmoggach's full-sized avatar
🦄
React'ing.

Robert Moggach rjmoggach

🦄
React'ing.
View GitHub Profile
@rjmoggach
rjmoggach / overclock_nvidia.sh
Created November 20, 2017 15:33
overclock nvidia bash script
#!/usr/bin/env bash
DEFAULT_FAN=65
DEFAULT_MEM=1500
DEFAULT_GPU=150
DEFAULT_POW=200
echo "Setting up ${GPU_COUNT} GPU(s)..."
GPU_COUNT="$(nvidia-smi -L | wc -l)"
@rjmoggach
rjmoggach / chart_all_coins.sh
Created January 27, 2018 15:30
Chart & Classify Bittrex Coins
#!/usr/bin/env bash
# COINS=( 1ST 2GIVE ABY ADA ADT ADX AEON AGRS AMP ANT )
COINS=( 1ST 2GIVE ABY ADA ADT ADX AEON AGRS AMP ANT \
APX ARDR ARK AUR BAT BAY BCC BCY BITB BLITZ \
BLK BLOCK BNT BRK BRX BSD BTC BTCD BTG BURST \
BYC CANN CFI CLAM CLOAK CLUB COVAL CPC CRB CRW \
CURE CVC DASH DCR DCT DGB DMD DNT DOGE DOPE DTB \
DYN EBST EDG EFL EGC EMC EMC2 ENG ENRG ERC ETC \
@rjmoggach
rjmoggach / framestore_setup.md
Last active January 31, 2018 18:06
Configuring A New Framestore for Autodesk Flame

Initial Checks

After Red Hat Installation is complete, login to your new installation.

Default Autodesk Login

User: root Pass: password

1) Check /etc/fstab to verify whether or not StorageMedia entry has been added.

@rjmoggach
rjmoggach / RRM_utils.py
Created February 19, 2018 18:02 — forked from evitolins/RRM_utils.py
Maya Python Snippets
'''
This fixes a RRM bug (v1.4.7) where saved RRM setups do not preserve a
module's 'pinned' status.
'''
import maya.cmds as cmds
import maya.mel
def RRM_fixPinBug(objs):
for obj in objs:
trans = cmds.xform(obj,q=True, r=True, translation=True)
maya.mel.eval("RRM_PinProxies(1, 0);")
@rjmoggach
rjmoggach / nucamio.py
Last active January 9, 2021 17:07
nucamio
import math
import os
import re
import json
from pprint import pprint
from collections import OrderedDict
from operator import add
import maya.cmds as cmds
import maya.mel as mel
@rjmoggach
rjmoggach / gulpfile.js
Last active January 24, 2019 17:30
mediumra.re gulpfile for insight and pipeline themes...
/* eslint-disable */
// REQUIRE STATEMENTS
const fs = require('fs'),
path = require('path'),
gulp = require('gulp'),
pixrem = require( 'gulp-pixrem' ),
log = require('fancy-log'),
newer = require('gulp-newer'),
runSequence = require('run-sequence'),
sass = require('gulp-sass'),
@rjmoggach
rjmoggach / ease.js
Created July 17, 2019 01:32
After Effects Easing Functions
function easeExpo(beginValue, endValue, duration, offset) {
t = time - offset;
if (t < 0) return beginValue;
if (t > duration) return endValue;
if (beginValue.constructor == Array) {
x = 0;
y = 0;
z = 0;
if (beginValue.length == 2) {
x = easeExpo(beginValue[0], endValue[0], duration, offset);
@rjmoggach
rjmoggach / cloudSettings
Last active June 20, 2020 22:19 — forked from nsrmoggach/extensions.json
VSCode's Settings - Syncing
{"lastUpload":"2020-06-20T22:19:51.851Z","extensionVersion":"v3.4.3"}
@rjmoggach
rjmoggach / nc-toggle-maint.sh
Created February 2, 2020 16:04
NextCloud Toggle Maintenance Mode
#!/usr/bin/env bash
function get_maint() {
echo `sudo -u www-data php /var/www/nextcloud/occ maintenance:mode`
}
function set_maint() {
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on
}
@rjmoggach
rjmoggach / rivet.mel
Created August 27, 2020 16:59
Maya MEL Rivet Script
// Copyright (C) 2000-2001 Michael Bazhutkin - Copyright (C) 2000 studio Klassika
// www.geocites.com/bazhutkin
// [email protected]
//
// Rivet (button) 1.0
// Script File
// MODIFY THIS AT YOUR OWN RISK
//
// Creation Date: April 13, 2001
//