Skip to content

Instantly share code, notes, and snippets.

@creaoy
creaoy / extract-testflight.js
Created November 30, 2015 21:11 — forked from larsparendt/extract-testflight.js
Extract TestFlight user email addresses from iTunes Connect
//Make sure you scroll down to get all data loaded
var text = '';
$('.col-email').each(function(index,el) {
if (index == 0) {
text = 'Email, First Name, Last Name\n';
}
else {
//Email
text = text + $.trim($(el).find("a").text()) + ',';
//First Name
@creaoy
creaoy / gist:46b1cf77ef72f5c7922f
Created January 5, 2016 01:18
Intro cards for requester
<div class="content has-header ionic-pseudo">
<div class="list card">
<div class="item item-avatar">
<img src="https://lh5.googleusercontent.com/-89xTT1Ctbrk/AAAAAAAAAAI/AAAAAAAABcc/Kg0vilTzpKI/photo.jpg">
<h2>1st of Jan</h2>
<p>Request to Elon Musk</p>
</div>
<div class="content has-header">
<div class="list card">
<div class="item item-avatar">
<img src="/img/docs/mcfly.jpg">
<h3 class="calm">Intro request to your friend</h3>
<h3>Marty McFly</h3>
<p>COO @BackToTheFuture</p></div>
@creaoy
creaoy / gist:ed6ba8af8fe7ee19c8bc
Created January 5, 2016 18:34
show message form
<div class="item item-body">
<p>Message
<textarea rows="10" cols="35" style="border:1px solid #eee; padding: 5px;">From Johnny: I'd like to be introduced because Yuriy is awesome</textarea>
</p>
<a class="item button button-full button-balanced" href="#">
Make an Intro
</a>
</div>
<div class="container">
<div class="row text-center">
</div>
<div class="row">
<div class="col-md-10 col-sm-12 ">
<h1>Connected accounts:</h1>
</div>
<div class="container">
<div class="row text-center">
</div>
<div class="row">
<div class="col-md-10 col-sm-12 ">
<h1>Connected accounts:</h1>
</div>
@creaoy
creaoy / gist:8bcc099d622f0cbe0b42577a7387540a
Created November 24, 2016 16:02 — forked from douglasjarquin/gist:2208690
Amazon RDS Performance Tuning Settings
rds-modify-db-parameter-group {param-group-name} \
--parameters="name=character_set_server, value=utf8, method=pending-reboot" \
--parameters="name=collation_server, value=utf8_general_ci, method=pending-reboot" \
--parameters="name=tmp_table_size, value={DBInstanceClassMemory/16}, method=pending-reboot" \
--parameters="name=max_heap_table_size, value={DBInstanceClassMemory/16}, method=pending-reboot" \
--parameters="name=query_cache_type, value=1, method=pending-reboot" \
--parameters="name=query_cache_size, value=131072, method=pending-reboot" \
--parameters="name=table_open_cache, value=2500, method=pending-reboot" \
--parameters="name=join_buffer_size, value={DBInstanceClassMemory/64}, method=pending-reboot" \
--parameters="name=thread_cache_size, value={DBInstanceClassMemory/12582880}, method=pending-reboot" \
@creaoy
creaoy / uuid2
Created February 20, 2017 12:56
.factory('uuid2', [function() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return {
newuuid: function() {
// http://www.ietf.org/rfc/rfc4122.txt
@creaoy
creaoy / gist:916f345c0ba1d411febedcdeab98f0e7
Last active September 6, 2017 18:27
finshi front sciprt
<div class="row" style="color:#fff;z-index:2;position:relative;"><div class="col-md-4 col-md-offset-4" style="text-align:center;"><p>Total Tokens Bought</p><h1 id="total_usd"></h1><small>1 FINS = 1 USD</small></div>
<!--
<div class="ico-info">
Ethereum
<div id="invested_eth"></div>
Total Tokens Bought
<div id="total_tokens_bought"></div>
1 FINS = 1 USD
Bitcoin
<div id="invested_btc"></div>