Skip to content

Instantly share code, notes, and snippets.

View idooo's full-sized avatar
🇺🇦
...

Alex Shteinikov idooo

🇺🇦
...
View GitHub Profile
@idooo
idooo / README.md
Last active August 29, 2015 14:11 — forked from rderoldan1/README.md

Add rpmforge as a repository

  1. Create a repo file in /etc/yum.repos.d/rpmforge.repo, you need to be an admin
  2. Copy the following text.
#Name: RPMforge RPM Repository for Red Hat Enterprise 5 - dag
#URL: http://rpmforge.net/
[rpmforge]
name = Red Hat Enterprise $releasever - RPMforge.net - dag
// You have an array with links to your backend server
var links = ['http://server.com/link1', 'http://server.com/link2', ...];
// Also you have a simple async function that execute ajax request
// and then execute a callback passing server response as an argument
sendRequest(link, callback(response));
// Write a function that will get data from all the links
// and then print ONE ARRAY with ALL the server responses to browser's console
@idooo
idooo / gist:8763160
Created February 2, 2014 04:41
Tweeria 2.3.2 patch notes
2.3.2 Kangaroo update
Fixes:
— Fixed page selection bug in market
- Placeholder for player's avatar if image source was changed by Twitter
- Minor layout fixes
Changes:
— Experience points required to reach next level displaying in player's profile
@idooo
idooo / monitoring.py
Last active December 21, 2015 06:39
AWS Instance-side script to push custom metrics UsedSpacePercent and UsedMemoryPercent to Cloudwatch
#!/usr/bin/python
import boto.ec2.cloudwatch
import boto.utils
import commands
if not boto.config.has_section('Boto'):
boto.config.add_section('Boto')
boto.config.set('Boto', 'proxy', 'proxy.com.au')
{% set cardCreator = "tweeria" %}
{% set cardTitle = address %}
{% set cardDesc = "" %}
{% set cardImage = host+"style/img/icon.png" %}
{% set cardUrl = host+address %}
{% if __query__ %}
{% set cardUrl = "?"+__query__ %}
{% endif %}
{% if player and player.race_name %}
2.3.1 Cat returns
Fixes:
— Unlimited Gear Works bug was fixed
— Correct page that player not found
- 60 levels characters in the raitings
- Can't create guild vs. guild war versus your guild
- Security improvements and other minor fixes
— Fixed bug that in some cases player can buy artworks for another class/faction/race
Changes:
@idooo
idooo / gist:5316940
Last active December 15, 2015 20:09
Prettify Google Hangout
For Google Chrome:
1) Install userScriptCSS extension:
https://chrome.google.com/webstore/detail/userscriptcss/pdfbjinabdohnegjnbfgdgohlhegamnm
2) Settings -> Extensions -> userScriptCSS -> Options
3) Fill fields:
Enter a URL regexp here: https://plus.google.com/hangouts/_/.*
@idooo
idooo / gist:5217458
Created March 21, 2013 22:37
Street Types
Access
Alley
Alleyway
Amble
Anchorage
Approach
Arcade
Artery
Avenue
Basin
@idooo
idooo / gist:3861015
Created October 9, 2012 19:51
tweenk oauth
# в твинке используюся библиотека tweepy, но документации к ней не особо дофига
# примерно так это работает у нас
# твои ключи приложения с dev.twitter.com
consumer_key = ''
consumer_secret = ''
....
# редиректишь пользователя на страницу авторизации приложения
#!/bin/bash
#
# require: Dropbox-Uploader -> https://github.com/andreafabrizi/Dropbox-Uploader
mongodump -d tweenk
tar -zcvf tweenk.tar.gz dump
./dropbox_uploader.sh upload tweenk.tar.gz "_mongo_backup/tweenk.tar.gz"
rm -rf dump
rm -f tweenk.tar.gz