Not working:
Fn+F12
: airplane modeFn+F11
: sleep modeFn + F7-8
: lcd backlight brightnessFn+F5
: fan turbo mode?
''' | |
Created on Feb 8, 2013 | |
@author: matthieuc | |
@contact: matthieu.cadet@gmail.com | |
''' | |
import PySide.QtGui as QtGui | |
def setNukeZeroMarginsWidget(widget_object): |
orig_node=nuke.selectedNode() | |
new_filepath="/path_dir/path_to_new_file.fbx" | |
# save current fbx take and node name knob | |
fbx_take=orig_node.knob("fbx_take_name").getValue() | |
fbx_node=orig_node.knob("fbx_node_name").getValue() | |
# set knob flag NO_KNOB_CHANGED to avoid popup message | |
orig_node.knob("file").setFlag(0x00020000) |
#!/usr/bin/env python | |
# vim: set fileencoding=utf-8 | |
# | |
# USAGE: | |
# Back up your tmux old config, run the script and redirect stdout to your conf | |
# file. Example: | |
# | |
# $ cp ~/.tmux.conf ~/.tmux.conf.orig | |
# $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf | |
# |
-- select the csv to import to iCloud keychain | |
set theFile to (choose file with prompt "Select the CSV file") | |
-- read csv file | |
set f to read theFile | |
-- split lines into records | |
set recs to paragraphs of f | |
-- open safari passwords screen, check it is unlocked, do not allow to proceed until it is unlocked or user clicks cancel. |
#!/bin/bash | |
while true | |
do | |
inotifywait -e modify /sys/class/backlight/acpi_video0/brightness | |
echo brightness set to: $(cat /sys/class/backlight/acpi_video0/brightness) | |
xbacklight -set $(cat /sys/class/backlight/acpi_video0/brightness) | |
done |
# Install for all users: | |
# $ wget https://gist.githubusercontent.com/zessx/10777a44ff56304487e7970142ca0b65/raw/bash-git-prompt.sh --no-check-certificate -P /etc/bash_completion.d | |
# Install for one user: | |
# $ wget https://gist.githubusercontent.com/zessx/10777a44ff56304487e7970142ca0b65/raw/bash-git-prompt.sh --no-check-certificate -P ~ | |
# $ echo "\n\n# Bash Git Prompt\nsource ~/bash-git-prompt.sh" >> ~/.bashrc | |
# $ . ~/.bashrc | |
# Settings: | |
BGP_BRANCH_SAFE=("develop") |
Instructions for setting up a git server on a Synology NAS with Diskstation. Specifically, I am using a DS414 with DSM 5.0.
gituser
via Diskstation interface (with File Station and WebDAV privilages)git
(located at /volume1/git
) with read/write access for gituser
and admin
. This folder will hold all the repos.def hideAllViewerQtInfosWidgets(): | |
try: | |
import PySide.QtGui as QtGui | |
parentApp = QtGui.QApplication.allWidgets() | |
parentName = "Viewer" | |
name = "/" | |
parentViewer = None | |
for parent in parentApp: |
import PySide.QtGui as QtGui | |
import PySide.QtCore as QtCore | |
_DEFAULT_ITEM_SIZE = QtCore.QSize(100, 85) | |
_USER_ROLE = QtGui.QStandardItem.UserType + 1 | |
class CustomItemWidget(QtGui.QWidget): | |
def __init__(self, parent=None): | |
super(CustomItemWidget, self).__init__(parent=parent) |