Skip to content

Instantly share code, notes, and snippets.

View pepzwee's full-sized avatar
🐙
Currently hoarding data

Kristjan pepzwee

🐙
Currently hoarding data
View GitHub Profile
/* Kuna headeril on taustaks pandud pilt, siis selle läbipaistvust peab pildile ise tegema,
hetkel on slider paigutatud headeri alla ilusti, et saaks selle läbipaistva osa ära teha.
---
All nende ümmarguste nuppude jaoks on HTML puudu.
*/
#block-views-frontpage-slider-block {position: relative; top: 32px; left: 0; right: 0; z-index: 1; height: 500px;}
.views-slideshow-cycle-main-frame{height:500px !important; overflow:hidden;}
/* Slider Controls (oleks vaja prev&next ikoone, võib ka html panna) */
// models/server.js
import DS from 'ember-data';
export default DS.Model.extend({
serverHistory: DS.hasMany("history/server", { async: true })
});
// models/history/server.js
import DS from 'ember-data';
et:
root: 'Kodu'
how_can_we_help: "Kuidas saame aidata?"
browse_topics: "Teemade sirvimine"
support_team: "Kasutajatoe tiim"
nothing_here: "Siin ei ole midagi, veel!"
# Navigation
knowledgebase: "Teadmistebaas"
community: "Kommuun"
var bot = require("alfred-teamspeak")();
//var Gamedig = require('gamedig');
//var async = require('async');
bot.login({
'name': '[BOT] Pubgamers.eu',
'host': 'ts.pubgamers.eu',
'port': 10011,
'loginName': 'serveradmin',
'loginPass': 'xxx',
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Session;
var sitedata = {
connectedUsers: 0
}
io.on('connection', function(socket) {
var userdata = {
joined: false
}
// connected users stuff
socket.on('join', function() {
if(userdata.joined) return; // User already joined
In this file where you log-in. You need to do these things:
1. Get steamID64 and find the user_id
2. Encrypt the user_id
3. Either make Route::post(authenticate) to a get so you can redirect without problems or you make it to GET and with parameters (less safe)
3.1 http://stackoverflow.com/questions/5576619/php-redirect-with-post-data
3.2 You will also need to think of a way to prevent "hackers"
3.2.1 Maybe csrf_token will help?
3.3 Don't use redirect('authenticate') because then it will use the same domain, instead use redirect('http://correctdomain.com/authenticate')
4. Should work
'use strict';
const config = require('../config');
const async = require('async');
const fs = require('fs');
let Trade = require('./index');
const SteamUser = require('steam-user');
const SteamCommunity = require('steamcommunity');
const SteamTotp = require('steam-totp');
server {
listen 80;
listen [::]:80;
server_name <domain name>;
root <files location>;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
var URL = require('url'),
http = require('http'),
https = require('https'),
_ = require('lodash'),
contentTypes = require('./content-types.js'),
debug = require('debug')('unblocker:proxy'),
request = require('request');
function proxy(config) {