This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat ~/.ssh/id_rsa.pub | |
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSU | |
GPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3 | |
Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XA | |
t3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/En | |
mZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbx | |
NrRFi9wrf+M7Q== your_email@pasarkode.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ssh-keygen -t rsa -b 4096 -C "your_email@pasarkode.com" | |
Generating public/private rsa key pair. | |
Enter file in which to save the key (/home/pasarkode/.ssh/id_rsa): | |
Created directory '/home/pasarkode/.ssh'. | |
Enter passphrase (empty for no passphrase): | |
Enter same passphrase again: | |
Your identification has been saved in /home/pasarkode/.ssh/id_rsa. | |
Your public key has been saved in /home/pasarkode/.ssh/id_rsa.pub. | |
The key fingerprint is: | |
d0:82:24:8e:d7:f1:bb:9b:33:53:96:93:49:da:9b:e3 your_email@pasarkode.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!defined('LOG_SUMMARY')) define('LOG_SUMMARY', 0); /* Summary */ | |
if(!defined('LOG_EMERG')) define('LOG_EMERG', 1); /* System is unusable */ | |
if(!defined('LOG_ALERT')) define('LOG_ALERT', 2); /* Immediate action required */ | |
if(!defined('LOG_CRIT')) define('LOG_CRIT', 3); /* Critical conditions */ | |
if(!defined('LOG_ERR')) define('LOG_ERR', 4); /* Error conditions */ | |
if(!defined('LOG_WARNING')) define('LOG_WARNING', 5); /* Warning conditions */ | |
if(!defined('LOG_NOTICE')) define('LOG_NOTICE', 6); /* Normal but significant */ | |
if(!defined('LOG_INFO')) define('LOG_INFO', 7); /* Informational */ | |
if(!defined('LOG_DEBUG')) define('LOG_DEBUG', 8); /* Debug-level messages */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once dirname(__FILE__) . '/models/workers.php'; | |
require_once dirname(__FILE__) . '/models/notification.php'; | |
class Modules_Plugin_Flusher { | |
protected $config; | |
protected $logger; | |
protected $activity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Copyright 2014 Shop-Wiz.Com. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may | |
* not use this file except in compliance with the License. You may obtain | |
* a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* CodeIgniter Curl Class | |
* | |
* simple curl to remote server call | |
* | |
* @package CodeIgniter | |
* @subpackage Libraries | |
* @category Libraries | |
* @author Ano Van |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
set_time_limit(0); | |
// API access key from Google API's Console | |
define( 'API_ACCESS_KEY', 'API-KEY-HERE' ); | |
//this ID only get from Android device | |
$registrationIds = array( $_GET['id'] ); | |
// prep the bundle | |
$msg = array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Put your device token here (without spaces): | |
$deviceToken = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; | |
// Put your private key's passphrase here: | |
$passphrase = 'xxxxxxx'; | |
// Put your alert message here: | |
$message = 'A push notification has been sent!'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// API access key from Google API's Console | |
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' ); | |
$registrationIds = array( $_GET['id'] ); | |
// prep the bundle | |
$msg = array |
NewerOlder