Skip to content

Instantly share code, notes, and snippets.

PsyChip

Block or report user

Report or block PsyChip

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
@PsyChip
PsyChip / serialrelay.ino
Created Aug 23, 2015
Serial relay controller for arduino
View serialrelay.ino
/*
Serial Relay Controller
Armagan Corlu aka PsyChip
root@psychip.net
April 2015
*/
const byte NUMBER_OF_PINS = 4; // set number of relays
@PsyChip
PsyChip / class.geolocation.php
Created Aug 23, 2015
Cross-version library for maxmind offline geolocation api. download depencies and databases from https://www.maxmind.com
View class.geolocation.php
<?php
# Maxmind Geolocation Database
# Portable library for cross-version readings
#
# Armagan Corlu aka Psy_Chip
# root@psychip.net
# 30.08.2014
#
# sample usage:
@PsyChip
PsyChip / class.selenium.php
Created Aug 23, 2015
Minified php driver for selenium web automation framework (http://www.seleniumhq.org)
View class.selenium.php
<?php
/* Minified Sellenium PHP Driver
* Requires original webdriver to run
*
* Coded By Armagan Corlu aka Psy_chip
* root@psychip.net
* 2012
*
* + Macro Support
* + minified functions
@PsyChip
PsyChip / class.psydb.php
Created Aug 23, 2015
Set of extra functions and utilities for medoo database framework (http://medoo.in)
View class.psydb.php
<?php
include_once "medoo.min.php"; // path to original medoo framework
class psydb extends medoo {
/*
* usage:
* rquery($query): raw query. returns a simple mysql resource
* aquery($query): return a single line in one array
* mquery($query): return all results in a inception (array in array)
@PsyChip
PsyChip / wifi_sensor_station.ino
Last active Apr 17, 2016
wireless soil humidity, temperature and light measurement with esp8266. more info at http://psychip.net/entry/indoor-gardening-ep2-monitoring-vitals-with-esp8266
View wifi_sensor_station.ino
#include <SoftwareSerial.h>
#include <OneWire.h>
const String uniqid = "180316-003";
const String serveraddr = "192.168.1.21";
const String serverport = "3535";
const String ssid = "your_ssid_here";
const String password = "your_ssid_pass";
int TMP = 13;
View class.twificonfig.php
<?php
/*
* Wifi Configuration Library For Windows Vista/7/8/10
* Uses operating system's built in utilities
*
* Armagan Corlu aka PsyChip
* March 2016
*
*/
View libraspi.js
/*
Raspberry pi toolkit for node.js
depends on sync runner library (npm install sync-runner)
functions:
getThrm(): returns cpu temperature
getVcc(): returns total used voltage by soc unit
uptime(): system uptime in milliseconds
serviceStart(): starts a system daemon, call serviceStop() to do opposite
View app.js
/* global os */
var request = require('sync-request/index.js');
var raspi = require("raspi");
var conf = {
server: "192.168.1.125",
port: "8484",
devid: "200616-004",
debug: true,
@PsyChip
PsyChip / class.psyutil.php
Created Jul 2, 2016
my private php utilities which used in previously involved web projects. no documentation but it's worth to take a look.
View class.psyutil.php
<?php
# PsyUtils - Generic web toolkit for php 5.4+
# Armagan Corlu aka PsyChip
# root@psychip.net
# March 2014
$psy_mimetypes = [
'cpt' => 'application/mac-compactpro',
'bin' => 'application/macbinary',
View keybase.md

Keybase proof

I hereby claim:

  • I am psychip on github.
  • I am psychip (https://keybase.io/psychip) on keybase.
  • I have a public key whose fingerprint is 1600 0ECF A507 E1E5 705E F4E2 3EC1 1897 E5E2 20CE

To claim this, I am signing this object:

You can’t perform that action at this time.