Skip to content

Instantly share code, notes, and snippets.

@Immortal-
Immortal- / index.php
Created November 2, 2012 02:40
first commit
<?php
$key = "YOURAPKEY";
$acc = "YOURUSERNAME";
$salt = "YOURSALT";
$user = $_GET['usr'];
$usrkey = $_GET['ky'];
$cmd = $_GET['cmd'];
session_start();
if(isset($_POST['lgnbtn'])){
@Immortal-
Immortal- / Example.php
Last active December 22, 2015 00:00
Example usage of AuthPanel
<?php
require('authcode_class.php');
/*-- Making an authcode --*/
$A = new Authcode();
$name = 'Testuser';
$salt = '1234565789!';
$_code = $A->make($name,$salt);
echo $_code;
@Immortal-
Immortal- / apiusage.php
Created August 30, 2013 04:03
Using AuthPanel's api
<?php
//Get string from website
function getString($url){
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$returnval = curl_exec ($ch);
curl_close ($ch);
return $returnval;
}
@Immortal-
Immortal- / errorreportingscript
Created September 8, 2013 21:05
error reporting for your personscript.
<?php
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);
?>

Keybase proof

I hereby claim:

  • I am immortal- on github.
  • I am immortal (https://keybase.io/immortal) on keybase.
  • I have a public key whose fingerprint is E220 55C4 2178 D2E4 0F22 77D4 B5F7 129F FC82 77D7

To claim this, I am signing this object:

@Immortal-
Immortal- / sublime_liscense
Last active August 29, 2015 14:27 — forked from dengmin/sublime_liscense
sublime text 2.0.2 build 2221注册码
----- BEGIN LICENSE -----
Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
942194A6 02396E98 E62C9979 4BB979FE
91424C9D A45400BF F6747D88 2FB88078
90F5CC94 1CDC92DC 8457107A F151657B
1D22E383 A997F016 42397640 33F41CFC
E1D0AE85 A0BBD039 0E9C8D55 E1B89D5D
@Immortal-
Immortal- / eSock.cs
Created March 8, 2016 03:21 — forked from pigeonhands/eSock.cs
eSock 2
using System.Security.Cryptography;
using System;
using System.IO;
using System.IO.Compression;
using System.Net;
using System.Net.Sockets;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Threading;
@Immortal-
Immortal- / Functions.php
Created April 7, 2016 17:28
Using Onion Omega's GPIO using php
<?php
//When I get bored again Ill turn this into a library.
function SetIO($pin, $value)
{
exec("fast-gpio set $pin $value 2>&1", $output);
return explode(': ',$output[0])[1];
}
function ReadIO($pin)
{
@Immortal-
Immortal- / OmegaPHP.php
Last active April 13, 2016 03:07
GPIO class for the Omega by Onion using php.
<?php
/**
* @Author: Chris McCaslin
* @Date: 4/8/2016
* @Orignal-Php Idealist: https://github.com/ringmaster/GPIOHelperPHP/ (Good idea, But I don't like reinventing the wheel why recode fast-gpio with php?)
* @Update: 4/12/2016 Added SetFlow, and GetDirection still need to write documentation on these methods.
*/
class OmegaPHP
{
@Immortal-
Immortal- / OmegaPHPExample.php
Last active April 9, 2016 05:29
Ussing OmegaPHP.php
<?php
require 'OmegaPHP.php'; //Require Our Library You can get at https://gist.github.com/Immortal-/a18f58ac5c21ba27921b7626b5a8b06e
$gpio = new OmegaPHP();
//Turns pin 0 to On or HIGH or 1
$pin = (int)0; //This is just for my testing purposes You do not have to cast to an int.
$gpio->SetPIN($pin,HIGH);// Set's the pin to 1 or HIGH
$returned = $gpio->ReadPin($pin);