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
# Script to grep ip address of connected adb device and connect them through network | |
ip_addr=$(adb shell ip addr show wlan0 | grep "inet\s" | awk '{print $2}' | awk -F'/' '{print $1}' ) | |
echo $ip_addr | |
port=`5555` | |
adb tcpip $port | |
adb connect $ip_addr | |
adb devices |
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
"html": "<!DOCTYPE html>\n <html>\n <head>\n <title>GBPS Broadband</title>\n<link rel='dns-prefetch' href='//fonts.googleapis.com' />\n<link rel='dns-prefetch' href='//maxcdn.bootstrapcdn.com' />\n<link rel='dns-prefetch' href='//s.w.org' />\n<link rel=\"alternate\" type=\"application/rss+xml\" title=\"GBPS Broadband » Feed\" href=\"https://gbpsbroadband.com/feed/\" />\n<link rel=\"alternate\" type=\"application/rss+xml\" title=\"GBPS Broadband » Comments Feed\" href=\"https://gbpsbroadband.com/comments/feed/\" />\n\t\t<script type=\"text/javascript\">\n\t\t\twindow._wpemojiSettings = {\"baseUrl\":\"https:\\/\\/s.w.org\\/images\\/core\\/emoji\\/11\\/72x72\\/\",\"ext\":\".png\",\"svgUrl\":\"https:\\/\\/s.w.org\\/images\\/core\\/emoji\\/11\\/svg\\/\",\"svgExt\":\".svg\",\"source\":{\"concatemoji\":\"https:\\/\\/gbpsbroadband.com\\/wp-includes\\/js\\/wp-emoji-release.min.js?ver=5.0.3\"}};\n\t\t\t!function(a,b,c){function d(a,b){var c=String.fromCharCode;l.clearRect(0, |
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
import 'package:flutter/material.dart'; | |
import 'package:http/http.dart' as http; | |
import 'Movie.dart'; | |
import 'dart:convert'; | |
import 'package:flutter/foundation.dart'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. |
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
void _requestData() async { | |
final response = await http.get('$_url'); | |
if (response.statusCode == 200) { | |
// If server returns an OK response, parse the JSON | |
Movie movie = Movie.fromJson(json.decode(response.body)); | |
setState(() { | |
_name = movie.title; | |
_imagePath = movie.image; | |
}); |
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
func requestData() { | |
let url = Foundation.URL(string: URL) | |
let session = URLSession.shared | |
let task = session.dataTask(with: url!) | |
{ | |
(data, response, error ) in | |
do { | |
let json = try JSONSerialization.jsonObject(with: data!) as! Dictionary<String, AnyObject> | |
let title = json["original_title"] as! String |
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
// | |
// ViewController.swift | |
// Intercept API demo | |
// | |
// Created by Muneef m on 29/9/18. | |
// Copyright © 2018 Muneef m. All rights reserved. | |
// | |
import UIKit |
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
requestData = ()=> { | |
const url = this.URL+'Muneefm/demo_data/master/movie.json?rand='+(1 + Math.random() * (99999 - 1)); | |
console.log(url) | |
fetch(url).then((response) => response.json()).then((jsonResponse) => { | |
this.setState({ | |
title: jsonResponse.original_title, | |
imagePath: jsonResponse.poster_path, | |
isLoadingComplete: true | |
}) |
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
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
* | |
* @format | |
* @flow | |
*/ | |
import React, {Component} from 'react'; | |
import {Platform, StyleSheet, Text, View, Button, Image} from 'react-native'; |
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
stages: | |
- deploy | |
variables: | |
AWS_ACCESS_KEY_ID: "ABCD" | |
AWS_SECRET_ACCESS_KEY: "ABCD" | |
AWS_DEFAULT_REGION: "us-east-1" | |
NAME: "your-function-name" | |
RUNTIME: "nodejs6.10" | |
ROLE: "arn:aws:iam::000000000000:role/xxxxx" | |
HANDLER: "index.handler" |
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
public String generateMagneticUrl(String hash,String movieName) throws UnsupportedEncodingException { | |
//magnet:?xt=urn:btih:TORRENT_HASH&dn=Url+Encoded+Movie+Name&tr=http://track.one:1234/announce&tr=udp://track.two:80 | |
String baseString = "magnet:?xt=urn:btih:"+hash+"&dn="; | |
String encodedMovieName = URLEncoder.encode(movieName, "utf-8").replace("+", "%20"); | |
baseString+=encodedMovieName; | |
String tracker1 = "udp://open.demonii.com:1337/announce"; | |
String tracker2 = "udp://tracker.openbittorrent.com:80"; | |
String tracker3 = "udp://tracker.coppersurfer.tk:6969"; | |
String tracker4 = "udp://glotorrents.pw:6969/announce"; |
NewerOlder