Simply add this snippet...
export XDG_RUNTIME_DIR="/run/user/$UID"
export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus"...to .bashrc or .zshrc or any file ran on login.
| /* -------------------------------------------------------------------------- */ | |
| // All Bootstrap 4 Sass Mixins [Cheat sheet] | |
| // Updated to Bootstrap v4.5.x | |
| // @author https://anschaef.de | |
| // @see https://github.com/twbs/bootstrap/tree/master/scss/mixins | |
| /* -------------------------------------------------------------------------- */ | |
| /* | |
| // ########################################################################## */ | |
| // New cheat sheet for Bootstrap 5: |
Simply add this snippet...
export XDG_RUNTIME_DIR="/run/user/$UID"
export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus"...to .bashrc or .zshrc or any file ran on login.
| import { Component, Injectable, Directive, TemplateRef } from '@angular/core'; | |
| import { NgbModal, NgbModalRef, NgbModalOptions } from '@ng-bootstrap/ng-bootstrap'; | |
| /** | |
| * Options passed when opening a confirmation modal | |
| */ | |
| interface ConfirmOptions { | |
| /** | |
| * The title of the confirmation modal | |
| */ |
| #!/bin/bash | |
| ## THIS IS THE OLD WAY | |
| ## Nowadays, simply follow the Compose installation instructions in the official documentation: | |
| ## https://docs.docker.com/compose/install/ | |
| # get latest docker compose released tag | |
| COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4) |
| // Used to @include a cursor within a pre-existing class | |
| @mixin cursor($cursor-type) { | |
| cursor: $cursor-type; | |
| } | |
| // Used to generate cursor classes | |
| @mixin cursor-class($cursor-type) { | |
| .#{$cursor-type}-cursor { cursor: $cursor-type; } | |
| } |
This is a compilation of various open-source Unity plugins, codebases, or utility scripts that may aid in expediting the development process.
"ProbePolisher is a Unity Editor plugin for editing light probes. It works both on Unity Basic (free) and Unity Pro."
To limit a CPU to a certain C-state, you can pass the processor.max_cstate=X option in the kernel line of /boot/grub/grub.conf.
Here we limit the system to only C-State 1:
kernel /vmlinuz-2.6.18-371.1.2.el5 ... processor.max_cstate=1
On some systems, the kernel can override the BIOS setting, and the parameter intel_idle.max_cstate=0 may be required to ensure sleep states are not entered:
| <?php // Namespace DB; | |
| use Illuminate\Database\Capsule\Manager as Capsule; | |
| class Connection { | |
| public function __construct() | |
| { | |
| $this->capsule = new Capsule; | |
| // Same as database configuration file of Laravel. |
| # Running xdebug in the console, for debugging Laravel artisan commands. Useful as I keep forgetting this one... | |
| php -dxdebug.remote_autostart artisan | |
| #Running phpcs for 5.3: | |
| phpcs -pv --standards= --runtime-set testVersion 5.3 --ignore=*/public/*,*.js,*.css,*/tests/*,*/views/training/* . |