Skip to content

Instantly share code, notes, and snippets.

{
"responses": [
{
"textAnnotations": [
{
"locale": "gl",
"description": "xougl\nxoUg\ner.net\n",
"boundingPoly": {
"vertices": [
{
<?php
$jsonData = file_get_contents('http://pastebin.com/raw/1u67Dk86');
$result = json_decode($jsonData, true);
//print_r ($result);
echo $result['responses']['0']['textAnnotations']['0']['description'];
?>
<VirtualHost *:80>
ServerAdmin your_email_address
ServerName domain1.net
ServerAlias www.domain1.net
DocumentRoot /var/www/domain1
<Directory />
Options FollowSymLinks
AllowOverride None
Require all granted
@kripul
kripul / IXR_Library.php
Last active September 19, 2017 15:36
PHP script to create wordpress new post using xmlrpc
<?php
/**
* IXR - The Incutio XML-RPC Library
*
* Copyright (c) 2010, Incutio Ltd.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
@kripul
kripul / lamp.sh
Last active February 1, 2018 05:10
install lamp ubuntu 16.04
#!/bin/bash
DEBIAN_FRONTEND=noninteractive sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get install apache2 mysql-server php libapache2-mod-php php-mcrypt php-mysql php-cli php-cgi php-curl php-gd -y
@kripul
kripul / ubuntuvnc.sh
Last active February 28, 2018 08:11
ubuntuvnc.sh
#!/bin/bash
DEBIAN_FRONTEND=noninteractive sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get upgrade -y
DEBIAN_FRONTEND=noninteractive sudo apt-get install --no-install-recommends ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal unzip -y
DEBIAN_FRONTEND=noninteractive sudo apt-get install ubuntu-restricted-extras -y
DEBIAN_FRONTEND=noninteractive sudo apt-get install vnc4server -y
vncserver :1
This file has been truncated, but you can view the full file.
SET FOREIGN_KEY_CHECKS=0;
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
DROP TABLE IF EXISTS `db_province_data`;
DROP TABLE IF EXISTS `db_postal_code_data`;
-- --------------------------------------------------------
-- Table structure for `db_province_data`
-- --------------------------------------------------------
#!/bin/sh
echo "First port used for proxy? Example 10000 "
read FIRST_PORT
echo "How many proxy do you want to create? Example 500"
read COUNT
IP4=$(curl -4 -s icanhazip.com)
IP6=$(curl -6 -s icanhazip.com | cut -f1-4 -d':')
#!/bin/bash
#read -p "link file GZ : " linkgz
read -p "IP : " serverip
read -p "GATEWAY : " servergw
cat >/tmp/net.bat<<EOF
@ECHO OFF
cd.>%windir%\GetAdmin
@kripul
kripul / cekstl.sh
Last active November 26, 2021 14:58
#!/bin/bash
for i in 1 2 3 4 5
do
test="$(curl -m 6 icanhazip.com)"
if [[ -n $test ]]; then
logger "Koneksi normal"
else
logger "Koneksi hilang, merestart STL"