This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
module.exports = { | |
appID: 730, // 730 - CS:GO | |
contextID: 2, // ContextID | |
bots: { | |
'bot_1': { | |
"siteName": "Bot 1", | |
"accountName": "<removed>", | |
"password": "<removed>", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Http\Requests; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Support\Facades\Session; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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'; |
NewerOlder