Skip to content

Instantly share code, notes, and snippets.

@tyler274
tyler274 / gist:f136e9b65ee9027033e4
Last active August 29, 2015 14:12
possible fix
# Run every 3 hours
@periodic_task(run_every=crontab(minute=0, hour="*/3"))
def run_api_refresh():
users = User.objects.all()
for user in users:
# Check if the api server is online
if EveApiManager.check_if_api_server_online():
api_key_pairs = EveManager.get_api_key_pairs(user.id)
if api_key_pairs:
// Group group id
ipsRegistry::DB()->build(array('select' => 'g_id', 'from' => 'groups', 'where'=>"g_title='{$group}'"));
$result = ipsRegistry::DB()->execute();
array_push($groups, ipsRegistry::DB()->fetch($result)['g_id']);
$groupstoadd = implode(",", $groups);
IPSMember::save( array( 'core' => array( 'field' => 'member_id', 'value' => $member['member_id'])),array('core' => array('mgroup_others'=>$groupstoadd)));
[11:28:49 PM] Tyler: sending this for myself
<?php
/**
* Remote API User Administration configuration
*
* @author Author: Raynaldo Rivera
*/
class API_Server
{
<?php
/**
* Remote API User Administration configuration
*
* @author Author: Raynaldo Rivera
*/
class API_Server
{
<?php
/**
* Remote API User Administration configuration
*
* @author Author: Raynaldo Rivera
*/
class API_Server
{
<?php
/**
* Remote API User Administration configuration
*
* @author Author: Raynaldo Rivera
*/
class API_Server
{
{% load staticfiles %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
from django.conf import settings
from eveonline.managers import EveManager
@login_required
def hr_application_management_view(request):
personal_app = None
corp_applications = None
if request.user.is_superuser:
@tyler274
tyler274 / gist:df0ce753264c42ce27e1
Last active August 29, 2015 14:14
youtube center gist
This file has been truncated, but you can view the full file.
/**
The MIT License (MIT)
Copyright (c) 2014 Jeppe Rune Mortensen
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
{"version":"tiamat-1.0-110751","url":"https:\/\/www.fuzzwork.co.uk\/dump\/tiamat-1.0-110751\/","format":".sql.bz2","tables":["dgmTypeAttributes","invCategories","invContrabandTypes","invControlTowerResourcePurposes","invControlTowerResources","invFlags","invGroups","invItems","invMarketGroups","invMetaGroups","invMetaTypes","invNames","invPositions","invTypeMaterials","invTypeReactions","invTypes","invUniqueNames","mapDenormalize","staStations"]}