Skip to content

Instantly share code, notes, and snippets.

View Hansimov's full-sized avatar

Hansimov

View GitHub Profile
@cmontesano
cmontesano / select_loop.py
Created January 9, 2019 19:40
Cinema 4D - Python version of my Select Loop plugin
"""
This is a python port of my old Select Loop C++ plugin for Cinema 4D. Rather
than porting this to R20 and recompiling, distributing, etc I decided to port
it to Python for use as a Script manager plugin.
Just import this script into your Script Manager and add it to a toolbar
or assign a shortcut.
MIT License
Copyright 2019 Christopher Montesano
@hamzahamidi
hamzahamidi / open-cmder-here.md
Last active February 23, 2024 01:30
"Open Cmder Here" in context menu

"Open Cmder Here" in context menu

Edit 04/2021:

As of the lastest versions, just execute the following command .\cmder.exe /REGISTER ALL per Documentation.

Original Solution

To add an entry in the Windows Explorer context menu to open Cmder in a specific directory, paste this into a OpenCmderHere.reg file and double-click to install it.

wget -O /tmp/YaHei.Consolas.1.12.zip https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/uigroupcode/YaHei.Consolas.1.12.zip
unzip /tmp/YaHei.Consolas.1.12.zip
sudo mkdir -p /usr/share/fonts/consolas
sudo mv YaHei.Consolas.1.12.ttf /usr/share/fonts/consolas/
sudo chmod 644 /usr/share/fonts/consolas/YaHei.Consolas.1.12.ttf
cd /usr/share/fonts/consolas
sudo mkfontscale && sudo mkfontdir && sudo fc-cache -fv
@deyixtan
deyixtan / sublime_text_patch.md
Last active April 8, 2024 06:11
Sublime Text Patching Guide

Automated Patching

Download slt.py python script (supports multiple build) from this repository.

Usage

python slt.py <"sublime_text file path">


Manual Patching

@santisbon
santisbon / Search my gists.md
Last active June 3, 2024 00:22
How to search gists.

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@jimmywarting
jimmywarting / readme.md
Last active June 5, 2024 05:12
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@drakemccabe
drakemccabe / colorspace_change.bash
Last active March 27, 2023 16:06
Change video color space from bt601 to bt709 using FFMPEG
ffmpeg -i input.mp4 -vf "scale=in_color_matrix=bt601:out_color_matrix=bt709" output.mp4
@whophil
whophil / Preferences.sublime-settings
Last active December 13, 2020 19:20
Sublime Text 3 user settings to use Unix style line endings by default (and also show the line ending type in the status bar)
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/User/SublimeLinter/base16-ocean.light (SL).tmTheme",
"default_line_ending": "unix",
"font_size": 12,
"ignored_packages":
[
"Anaconda",
"Monokai Extended",
@objmagic
objmagic / fib.tex
Created December 30, 2015 06:07
LaTeX is Turing complete
\newcount \temp \newcount \fone \newcount \ftwo \newcount \counter
\newcommand{\fibonacci}[1]{
\counter=#1
\fone=1
\ftwo=1
\temp=0
\the\fone, \the\ftwo
\fibloop
}
@kevinkindom
kevinkindom / Python Socket 编程详细介绍.md
Last active June 7, 2024 09:03
Python Socket 编程详细介绍

Python Socket 编程详细介绍

Python 提供了两个基本的 socket 模块:

  • Socket 它提供了标准的BSD Socket API。
  • SocketServer 它提供了服务器重心,可以简化网络服务器的开发。

下面讲解下 Socket模块功能。

Socket 类型