Skip to content

Instantly share code, notes, and snippets.

@Steadroy
Steadroy / README.md
Created January 4, 2018 19:47 — forked from NotoriousBTC/README.md
Digital Ocean CPU Cloud Mining Instructions

CPU Cloud Mining

  • Sign Up for an SSD cloud server or log in if you already have an account.

  • Click 'Create Droplet' to get your instance running

  • Select the specifications you wish to mine (16GB/8CPU) on as well as the latest Ubuntu x64 image (Ubuntu 13.10 x64).

  • Your username and password will be emailed to you within 55 seconds

@Steadroy
Steadroy / gist:f4d20f23138af73996bfe66be75b9236
Created October 29, 2017 11:51 — forked from prime31/gist:5675017
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array
@Steadroy
Steadroy / digitalocean-proxy.sh
Created December 27, 2016 17:06 — forked from haf/LICENSE
Setting up a digitalocean proxy
#!/usr/bin/env bash
# How to start:
# 1. Sign up for DigitalOcean with this link https://www.digitalocean.com/?refcode=7bf219507e61
# -- it will be filled with $10 to start out (if you use the above link)
# 2. Go to https://cloud.digitalocean.com/settings/applications and find you API key
# 3. In your shell, run 'export DIGITALOCEAN_TOKEN="INSERT TOKEN HERE"', without the outer quotes.
# 4. `brew install jq`
# 5. `./digitalocean-proxy`
# 6. When you are done, press CTRL+C ONCE, and everything will be cleaned up.
@Steadroy
Steadroy / gist:5dfc38c51a8e6059c048b7cf28e92f26
Created October 13, 2016 15:57 — forked from mhawksey/gist:3007293
Turn Google Site pages into RSS feed
/*
Copyright 2011 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@Steadroy
Steadroy / twitter_scrape.php
Created August 16, 2016 01:46
Twitter Analytics Scraper
<?php
// Call this with a cron script on a timed interval to scrape it
$user_agent = $_SERVER['HTTP_USER_AGENT']; // its possible you may wish to use an alternative user agent here
// First call gets hidden form field authenticity_token
// and session cookie
$ch = curl_init();
$sTarget = "https://twitter.com/";
curl_setopt($ch, CURLOPT_URL, $sTarget);
@Steadroy
Steadroy / Form.css
Created August 1, 2016 03:24 — forked from Burrer/Form.css
Contact Form: Using SendGrid WebAPI and cURL PHP
/* Form.html CSS, just copy and paste any where in your style.css file, or customize to fit with your domain */
form.contact p {
font-size: 15px;
padding: 0 0 15px 0;
margin: 0;
}
form.contact input, form.contact textarea {
font-family: Arial;
font-size: 15px;
@Steadroy
Steadroy / success.php
Created March 28, 2016 02:24 — forked from cosenary/success.php
Instagram PHP API - How to get the most recent media published by an Instagram user.
<?php
/**
* Instagram PHP API
* Example for using the getUserMedia() method
*
* @link https://github.com/cosenary/Instagram-PHP-API
* @author Christian Metz
* @since 31.01.2012
*/
@Steadroy
Steadroy / README.md
Created December 19, 2015 04:57 — forked from betzerra/README.md
Instagram Hashtag Archiver

Instagram Hashtag Archiver

This script helps you to download locally the latest pictures related to a specific Instagram hashtag. It will fetch them and sort them by username.

No resume feature. No extra metadata. No OAuth pain.

Install