Skip to content

Instantly share code, notes, and snippets.

View scroll's full-sized avatar
🏠
Working from home

Marin Petrov scroll

🏠
Working from home
View GitHub Profile
@scroll
scroll / ikfk.py
Last active December 10, 2019 16:59
IKFK Snapping
import maya.cmds as mc
import maya.OpenMaya as om
ik_control = 'IK_ctl'
pv_control = 'PV_ctl'
ik_joints = ['001_ik', '002_ik', '003_ik']
fk_controls = ['001_ctl', '002_ctl', '003_ctl']
ik_attr = 'Settings_locShape.IkFk'
def get_rotation(transform):
##############################################
# Sample client-side OpenVPN 2.0 config file #
# for connecting to multi-client server. #
# #
# This configuration can be used by multiple #
# clients, however each client should have #
# its own cert and key files. #
# #
# On Windows, you might want to rename this #
# file so it has a .ovpn extension #
@scroll
scroll / openvpn.txt
Created January 7, 2019 13:19
openvpn error
openvpn --config marin.petrov.ovpn
Mon Jan 7 15:14:08 2019 WARNING: file 'marin.petrov.key' is group or others accessible
Mon Jan 7 15:14:08 2019 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Sep 5 2018
Mon Jan 7 15:14:08 2019 library versions: OpenSSL 1.1.0g 2 Nov 2017, LZO 2.08
Mon Jan 7 15:14:08 2019 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.
Enter Private Key Password: ******
Mon Jan 7 15:15:13 2019 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Mon Jan 7 15:15:13 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]195.24.36.147:1194
Mon Jan 7 15:15:13 2019 Socket Buffers: R=[212992->212992] S=[212992->212992]
Mon Jan 7 15:15:13 2019 UDP link local: (not bound)
@scroll
scroll / ls.sh
Created May 22, 2018 07:41
celery perms
bash-4.3$ ls -l
total 60
drwxr-xr-x 4 1000 1000 4096 Apr 28 20:33 app
drwxr-xr-x 2 root root 4096 May 10 13:05 bin
drwxr-xr-x 5 root root 340 May 22 07:35 dev
drwxr-xr-x 20 root root 4096 May 22 07:35 etc
drwxr-xr-x 3 root root 4096 May 10 13:08 home
drwxr-xr-x 7 root root 4096 May 10 13:08 lib
drwxr-xr-x 5 root root 4096 Jan 9 19:36 media
drwxr-xr-x 2 root root 4096 Jan 9 19:36 mnt
@scroll
scroll / html.py
Last active August 29, 2015 14:06
html in maya
from PyQt4 import QtCore
from PyQt4 import QtGui
from PyQt4 import QtWebKit
import maya.cmds as cmds
import maya.OpenMayaUI as OpenMayaUI
import sip
def getMayaMainWindow():
ptr = OpenMayaUI.MQtUtil.mainWindow()
@scroll
scroll / keybase.md
Created August 16, 2014 23:13
keybase.md

Keybase proof

I hereby claim:

  • I am scroll on github.
  • I am scroll_lock (https://keybase.io/scroll_lock) on keybase.
  • I have a public key whose fingerprint is 653A 2A93 D773 1985 BD71 9B9D B56D 1B8F 5BB0 8E42

To claim this, I am signing this object:

Verifying that +scroll_lock is my Bitcoin username. You can send me #bitcoin here: https://onename.io/scroll_lock
@scroll
scroll / Stream.js
Created August 28, 2011 21:57 — forked from orlinmp/Stream.js
javascript library: includes system.js and stream.js
//Defines Stream interface
//ServerStream Implements Stream interface to make easy communication with server through Key-Value pairs.
//constructor
function Stream()
{
this._length = 0;
this._position = -1;
};