Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Oussama abdallah oussaki

🎯
Focusing
Block or report user

Report or block oussaki

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@oussaki
oussaki / GitCheat.md
Last active Oct 24, 2017
Git Cheat Sheet
View GitCheat.md

Push an existing repository

$ git remote add origin git@github.com:username/new_repo
$ git push -u origin master]

Go one step back in history

git checkout @~1
View push_IOS_WP.php
<?php
// Server file
class PushNotifications {
// (Android)API access key from Google API's Console.
private static $API_ACCESS_KEY = 'AIzaSyDG3fYAj1uW7VB-wejaMJyJXiO5JagAsYI';
// (iOS) Private key's passphrase.
private static $passphrase = 'joashp';
// (Windows Phone 8) The name of our push channel.
private static $channelName = "joashp";
View push.php
<?php session_start();
$connect = mysql_connect( "localhost", '******', "******");
mysql_select_db("******");
$url = 'https://android.googleapis.com/gcm/send';
$headers = array(
'Authorization: key=' . '******',
You can’t perform that action at this time.