Using the ec2 tools:
ec2-run-instances ami-xxxxxxxx -t t2.micro -k mykeypair -g sg-xxxxxxx
Using aws:
aws ec2 run-instances --image-id ami-xxxxxx --count 1 --instance-type t2.micro --key-name mykeypair --security-groups mysecuritygroup
#include <iostream> | |
#include <algorithm> | |
#include <sstream> | |
#include <vector> | |
#include <string> | |
#include <fstream> | |
#include <set> | |
#include <numeric> | |
#include <regex> |
require 'twitter' | |
client = Twitter::REST::Client.new do |config| | |
config.consumer_key = "..." | |
config.consumer_secret = "..." | |
config.access_token = "..." | |
config.access_token_secret = "..." | |
end | |
user = 123 | |
cursor = client.follower_ids(user, count: 5000) |
function max() { | |
if [ $1 -gt $2 ] | |
then | |
echo $1 | |
else | |
echo $2 | |
fi | |
} | |
function min() { |
const int MAX = 1000; | |
//endregion | |
long long X, Y, N; | |
long long ta(long long length) | |
{ | |
return length * (length + 1) / 2; | |
} | |
// Upper right |
bool check(int64 d, int64 c) { | |
return f(d) >= c; | |
} |
#include <bits/stdc++.h> | |
using namespace std; | |
typedef long long int64; | |
inline int64 f(int64 x) { | |
return x * x + (x + 1) * (x + 1); | |
} | |
inline int64 g(int64 x) { | |
return x * (x + 1) / 2; |
AFG: Afghanistan | |
AGO: Angola | |
ALB: Albania | |
ARE: United Arab Emirates | |
ARG: Argentina | |
ARM: Armenia | |
ATA: Antarctica | |
ATF: French Southern and Antarctic Lands | |
AUS: Australia | |
AUT: Austria |
{ | |
"africa": { | |
"name": "Africa", | |
"names": [ | |
"Афрыка", | |
"Àfrica", | |
"Afrika", | |
"Afrika", | |
"Afrika", | |
"Αφρική", |
// ======================================== | |
// ! Casper | |
// ! Common issues: Unsafe Javascript attempt to access frame with URL | |
// ! Issues: http://goo.gl/u1murB | |
// ! Version : 1.0 | |
// ======================================== | |
var fs = require('fs'); | |
var utils = require('./src/utils'); | |
var system = require('system'); | |
var casper = require('casper').create(); |