Tutorial by Examples: e

Debian, Ubuntu and CentOS Add the official repository Debian/Ubuntu curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh | sudo bash CentOS curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.rpm.sh ...
The config location for your runner is: Debian/Ubuntu/CentOS /etc/gitlab-runner/config.toml if run as root ~/.gitlab-runner/config.toml if run as non-root Windows config.toml where your binary is located A minimal config.toml can look like this: concurrent = 1 [[runners]] name = "E...
Gmail Example MAIL_URL=smtp://username%40gmail.com:[email protected]:465/ Note: This setup only allows 2000 emails to be sent per day. Please see https://support.google.com/a/answer/176600?hl=en for alternative configurations.
Setup First, install the necessary packages with: npm install express cors mongoose Code Then, add dependencies to server.js, create the database schema and the name of the collection, create an Express.js server, and connect to MongoDB: var express = require('express'); var cors = require('...
Run the following as root: passwd username
Run the following as root: useradd username
Run the following as root: userdel username
Run the following as root: userdel -r username
groups More detailed information about user and group numerical IDs can be found with the id command.
groups username More detailed information about user and group numerical IDs can be found with id username.
This can be useful if you're writing a game or something that needs to execute a piece of code every a few seconds. import android.os.Handler; public class Timer { private Handler handler; private boolean paused; private int interval; private Runnable task = new Runnable ...
// World physics self.physicsWorld.gravity = CGVectorMake(0, -9.8);
Firstly, we set node category let groundBody: UInt32 = 0x1 << 0 let boxBody: UInt32 = 0x1 << 1 Then add Ground type node and Box type node. let ground = SKSpriteNode(color: UIColor.cyanColor(), size: CGSizeMake(self.frame.width, 50)) ground.position = CGPointMake(CGRectGetMidX(sel...
Set scene as delegate //set your scene as SKPhysicsContactDelegate class yourScene: SKScene, SKPhysicsContactDelegate self.physicsWorld.contactDelegate = self; Then you have to implement one or the other of the contact functions: optional func didBegin(contact:) and/or optional fund didEnd...
MSBuild evaluates PropertyGroup, Choose and ItemGroup elements that are directly under the Project element before those that are in Target elements. Directly under the Project element, PropertyGroup and Choose elements are evaluated in the order in which they appear, and then ItemGroup elements a...
=SUMPRODUCT(IF(FREQUENCY(MATCH(A1:A100,A1:A100,0),MATCH(A1:A100,A1:A100,0))>0,1))
add_action( 'init', function() { // do something here } ); Using a function block to hook a set of instructions. With the init hook, the set of instructions will be executed right after wordpress has finished loading the necessary components.
function my_init_function() { // do something here } add_action( 'init', 'my_init_function' ); Using the name of the function to hook a set of instructions. With the init hook, the set of instructions will be executed right after wordpress has finished loading the necessary components. ...
class MyClass { static function my_init_method() { // do something here } } add_action( 'init', array( 'MyClass', 'my_init_method' ) ); Using a static method of a class to hook a set of instructions. With the init hook, the set of instructions will be executed right after w...

Page 762 of 1191