start new:
tmux
start new with session name:
tmux new -s myname
| %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} | |
| %global pkg_name $name | |
| Name: python-%{pkg_name} | |
| Version: $version | |
| Release: 1%{?dist} | |
| Summary: $summary | |
| Group: Development/Languages | |
| License: $license |
| /* | |
| * As a example here, this function returns the related Model's attribute modelName. | |
| * | |
| * We can access Model's information from constructor attribute. | |
| */ | |
| var getModelName = function(object) { | |
| return object.constructor.modelName | |
| } |
| $ rpm2cpio [filename] | cpio --extract |
| <keybind key="XF86MonBrightnessUp"> | |
| <action name="Execute"> | |
| <command>xbacklight -inc 10%</command> | |
| </action> | |
| </keybind> | |
| <keybind key="XF86MonBrightnessDown"> | |
| <action name="Execute"> | |
| <command>xbacklight -dec 10%</command> | |
| </action> | |
| </keybind> |
| # Predefinition before doing anything | |
| project_lib=${RPM_BUILD_ROOT}%{python_sitelib}/%{pkg_name} | |
| product_module=${project_lib}/%{pkg_name}/product_settings.py | |
| product_module_bak=${product_module}.bak | |
| static_root=${RPM_BUILD_ROOT}%{_datadir}/%{pkg_name}/static/ | |
| # Add all app names whose static files are needed to be collected | |
| # Just enter what you write in settings.py | |
| apps_static_collected_from="" | |
| cp $product_module $product_module_bak |
| function install_vb_additions | |
| { | |
| local VB_VERSION="$1"; | |
| curl -O http://download.virtualbox.org/virtualbox/${VB_VERSION}/VBoxGuestAdditions_${VB_VERSION}.iso | |
| sudo mkdir /mnt/iso | |
| sudo mount -o loop VBoxGuestAdditions_${VB_VERSION}.iso /mnt/iso | |
| sudo yum install -y kernel-devel-`uname -r` gcc make perl bzip2 | |
| cd /mnt/iso | |
| sudo ./VBoxLinuxAdditions.run # Do the task | |
| cd |
| function install_vb_additions | |
| { | |
| local VB_VERSION="$1"; | |
| local download_url=http://download.virtualbox.org/virtualbox/${VB_VERSION}/VBoxGuestAdditions_${VB_VERSION}.iso | |
| curl -C - -O $download_url | |
| sudo mkdir /mnt/iso | |
| sudo mount -o loop VBoxGuestAdditions_${VB_VERSION}.iso /mnt/iso | |
| sudo yum install -y kernel-devel-`uname -r` gcc make perl bzip2 | |
| pushd /mnt/iso | |
| sudo ./VBoxLinuxAdditions.run |
| type GitClient interface { | |
| GetWebhookByTargetUrl | |
| } | |
| type GitHubClient struct {} // implements interface GitClient | |
| type GitLabClient struct {} // implements interface GitClient | |
| type GitProvder interface { | |
| CreateMergeRequest() error |
| \ | setup.cfg | pyproject.toml | tox.ini | own config file |
|---|---|---|---|---|
| tox | [tox:tox] | [tool.tox] | [tox] | tox.ini |
| pytest | [tool:pytest] | [tool.pytest.ini_options] | [pytest] | pytest.ini |
| flake8 | [flake8] | - | [flake8] | .flake8 |
| mypy | [mypy] | [tool.mypy] | - | mypy.ini |
| black | - | [tool.black] | - | .black |