Skip to content

Instantly share code, notes, and snippets.

@ApAshton3DPluginDev
ApAshton3DPluginDev / LinkBoxList & ProcessBar C4D GUI Example.py
Last active February 17, 2024 20:06
This Cinema 4D script allow you to see how a c4d.CUSTOMGUI_INEXCLUDE_LIST and c4d.CUSTOMGUI_PROGRESSBAR gui works. And this will also show, you can change or set the process bar color and other ui colors too. Quick Video on how it works: https://streamable.com/55e1q | How to Install: .....\C4D RXX\library\scripts
"""
LinkBoxList & ProcessBar GUI Example
Author: Asthon Rolle AKA AP Asthon
Cinema 4D Python Script For C4D
Compatible:
- Win / Mac
- R16, R17, R18, R19, R20, R21
"""
@S1U
S1U / render28.py
Last active June 8, 2022 00:57 — forked from cloutsocks/render.py
GPU rendering script for Blender 2.8
import bpy
# Mark all scene devices as GPU for cycles
bpy.context.scene.cycles.device = 'GPU'
print("--------------- SCENE LIST ---------------")
for scene in bpy.data.scenes:
print(scene.name)
scene.cycles.device = 'GPU'
scene.render.resolution_percentage = 200
@estorgio
estorgio / Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS.md
Last active June 19, 2024 15:50
Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

Update 28 July 2019: An updated version of this guide for Ubuntu Server 18.04 LTS is now available. Feel free to check it out.

Update 23 May 2020: This guide is ALREADY OUTDATED and might no longer work with new versions of Ubuntu and VirtualBox. Please consider switching to the updated guide instead. I will no longer respond to the replies to this gist. Thank you.

Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

This guide will walk you through steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. Tested on Ubuntu Server 16.04.3 LTS (Xenial Xerus)

@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active July 23, 2024 14:54
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub
@v1shwa
v1shwa / apache-permission.sh
Last active October 28, 2023 08:03
Ubuntu: Fix for Permissions denied on /var/www/html
# 1. Change owner of /var/www/html directory to apache user, here: www-data
sudo chown -R www-data:www-data /var/www/html
# 2. Allow Group to edit
sudo chmod -R 775 /var/www/html
# 3. Add yourself to apache group(www-data)
sudo usermod -a -G www-data ${USER}
/*
CreateFormData - Creates "multipart/form-data" for http post
https://www.autohotkey.com/boards/viewtopic.php?t=7647
Usage: CreateFormData(ByRef retData, ByRef retHeader, objParam)
retData - (out) Data used for HTTP POST.
retHeader - (out) Content-Type header used for HTTP POST.
objParam - (in) An object defines the form parameters.
@korya
korya / Subfolder to git repo.md
Last active July 18, 2024 18:47
Convert subfolder into Git submodule
@n3wtron
n3wtron / simple_mjpeg_streamer_http_server
Last active July 8, 2024 17:49
Simple Python Motion Jpeg (mjpeg server) from webcam. Using: OpenCV,BaseHTTPServer
#!/usr/bin/python
'''
Author: Igor Maculan - n3wtron@gmail.com
A Simple mjpg stream http server
'''
import cv2
import Image
import threading
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer
from SocketServer import ThreadingMixIn
@sebcode
sebcode / ncursestest.cpp
Created April 24, 2011 20:48
quick&dirty example on how to use ncurses library in c++ to build a mutt-like user interface. build with g++ -lncurses ncursestest.cpp
#include <iostream>
#include <signal.h>
#include <ncurses.h>
#include <menu.h>
#include <string>
#include <unistd.h>
using namespace std;
#define SCREEN_MAIN 0