Skip to content

Instantly share code, notes, and snippets.

View rajithwijepura's full-sized avatar

Rajith WIjepura rajithwijepura

View GitHub Profile
/**
* Show electricians which have not sent coupons for 2 year
* @return void
*/
public function inactive() {
$time = new Time('2 years ago');
$electricians = $this->Electricians->find('all', [
'conditions' => [
'Electricians.is_deleted' => 0,
@rajithwijepura
rajithwijepura / scp run in the background
Last active December 15, 2021 08:23 — forked from CreatorB/scp run in the background
How to put scp in background
#!/bin/bash
nohup scp file_to_copy user@server:/path/to/copy/the/file > nohup.out 2>&1
# Ctrl + Z
bg
jobs