npm install react-native-maps --save
// Top-level build file where you can add configuration options common to all sub-projects/modules.
<?php | |
$ch = curl_init(); | |
curl_setopt_array($ch, [ | |
CURLOPT_URL => 'https://www.instagram.com/' . $_GET['username'] . '/embed/', | |
CURLOPT_USERAGENT => 'Mozilla/5.0 (Linux; Android 6.0.1; SM-G935S Build/MMB29K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/55.0.2883.91 Mobile Safari/537.36', | |
CURLOPT_RETURNTRANSFER => true | |
]); | |
$output = curl_exec($ch); | |
curl_close($ch); |
apt-get update | |
apt-get upgrade | |
apt-get install sudo git build-essential htop apt-transport-https ca-certificates curl gnupg2 software-properties-common # python-software-properties | |
# apt-get install openjdk-7-jre | |
# user | |
useradd -s /bin/bash -m -d /home/akinozgen -c "akinozgen" -g staff akinozgen | |
gpasswd -a akinozgen sudo | |
echo "AllowGroups sudo" >> /etc/ssh/sshd_config | |
passwd akinozgen |
-- Reference: https://stackoverflow.com/questions/36647058/removing-duplicates-with-unique-index | |
ALTER IGNORE TABLE mytable ADD UNIQUE INDEX myindex (A, B, C, D); |
<?php | |
/** | |
* I've published a fully-tested Composer library with type-casting. | |
* @see https://github.com/simivar/reverse-print-r | |
*/ | |
/** | |
* Matt: core | |
* Trixor: object handling | |
* lech: Windows suppport |
SELECT sum(round(((data_length + index_length) / 1024 / 1024 / 1024), 2)) AS "Size in GB" | |
FROM information_schema.TABLES | |
WHERE table_schema = 'MY_DATABASE' |
# what we want: | |
# client -> OpenVPN -> Tor -> Internet | |
# Install & configure OpenVPN | |
# https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04 | |
# assumed OpenVPN configuration | |
# 10.8.0.1/24-Subnet | |
# tun0-Interface |
<?php | |
/** | |
* Gera a paginação dos itens de um array ou collection. | |
* | |
* @param array|Collection $items | |
* @param int $perPage | |
* @param int $page | |
* @param array $options | |
* | |
* @return LengthAwarePaginator |
//Import Statements | |
public class ActivityName extends AppCompatActivity { | |
private RecyclerView mRecyclerView; | |
private RecyclerView.Adapter mAdapter; | |
private RecyclerView.LayoutManager mLayoutManager; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
//daterangepicker.js | |
$(function() { | |
function cb(start, end) { | |
$('#reportrange span').html(start.format('MMMM D') + ' - ' + end.format('MMMM D')); | |
} | |
cb(moment().subtract(29, 'days'), moment()); | |
$('#reportrange').daterangepicker({ |