<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Brian O&#39;Mullane on Medium]]></title>
        <description><![CDATA[Stories by Brian O&#39;Mullane on Medium]]></description>
        <link>https://medium.com/@brianom?source=rss-5220d0e690f4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Roa1uohLsLIht4HELUpNMA.jpeg</url>
            <title>Stories by Brian O&amp;#39;Mullane on Medium</title>
            <link>https://medium.com/@brianom?source=rss-5220d0e690f4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 15:14:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@brianom/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Set up a website with a custom domain on S3 from the commandline]]></title>
            <link>https://medium.com/@brianom/set-up-a-website-with-a-custom-domain-on-s3-from-the-commandline-49add2529330?source=rss-5220d0e690f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/49add2529330</guid>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Brian O'Mullane]]></dc:creator>
            <pubDate>Wed, 14 Jun 2017 22:24:22 GMT</pubDate>
            <atom:updated>2017-06-14T22:24:22.478Z</atom:updated>
            <content:encoded><![CDATA[<h4>i.e. the easy way, cut and paste these commands</h4><p>This short guide assumes you have first <a href="http://docs.aws.amazon.com/cli/latest/userguide/installing.html">downloaded the AWS commandline (CLI) tools</a> and <a href="http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html">set it up with your AWS credentials</a>.</p><p>It is also going to assume you register your domain with <a href="https://console.aws.amazon.com/route53/">Route53</a> (the AWS DNS management service). This will save a bunch of hassle and only costs a little more.</p><p>For reference, you could just use the AWS console and follow <a href="http://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html">this guide</a>, but cutting and pasting the following commands is way easier than navigating the AWS console.</p><p>I’m going to focus on just the custom domain part here, there is more detail post on creating the site from the commandline <a href="https://github.com/brianom/aws-create-s3-website-commandline">here</a></p><h3>Create a S3 bucket for the custom domain</h3><p>For your new domain “<strong><em>example.com</em></strong>”, you must create a bucket with the name the same as the domain name:</p><pre>aws s3 mb s3://<strong><em>example.com</em></strong></pre><p>To upload a local index.html file and give everyone in the world permission to read it (you can borrow mine <a href="https://github.com/brianom/aws-s3-website-custom-domain">here</a>):</p><pre>aws s3 cp index.html s3://<strong><em>example.com</em></strong> --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers</pre><p>You can visit your site here, <a href="http://example.com.s3.amazonaws.com/index.html">http://<strong><em>example.com</em></strong>.s3.amazonaws.com/index.html</a></p><h3>Configure s3 bucket for hosting</h3><p>First it’s a good idea to create and upload an error page:</p><pre>aws s3 cp error.html s3://<strong><em>example.com</em></strong> --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers</pre><p>Then set s3 to route traffic to them both:</p><pre>aws s3 website s3://<strong><em>example.com</em></strong> --index-document index.html --error-document error.html</pre><h3>Configure Route53 to direct your domain to s3</h3><p>If you have registered your domain with AWS it will automatically set up a “hosted zone” with the AWS name servers set up. So all we need to do is set up the Alias record which directs traffic to the domain to the s3 bucket.</p><p>We are going to use the aws route53 command change-resource-record-sets, to do this we need the hosted-zone-id of the domain and the region. The regions cannot be retrieved via the API, but are listed <a href="http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">here</a>, eu-west-ireland is <em>Z1BKCTXD74EZPE</em>.</p><p>To get the hosted-zone-id of the domain use:</p><pre>aws route53 list-hosted-zones</pre><p>you are looking for a code that looks something like: <em>Z2C72EK3L6ZJVX</em>. you can see it here:</p><pre>&quot;Id&quot;: &quot;/hostedzone/Z2C72EK3L6ZJVX&quot;</pre><p>To set up the alias record, you can now plug these, your region and your domain in to the following command:</p><pre>aws route53 change-resource-record-sets --hosted-zone-id <strong><em>Z2LHOQSGWMPWH7</em></strong> --change-batch &#39;<br>{<br>  &quot;Comment&quot;: &quot;Create an alias record to map my new domain to an s3 bucket&quot;,<br>  &quot;Changes&quot;: [<br>    {<br>      &quot;Action&quot;: &quot;CREATE&quot;,<br>      &quot;ResourceRecordSet&quot;: {<br>        &quot;Name&quot;: &quot;<strong><em>example.com</em></strong>.&quot;,<br>        &quot;Type&quot;: &quot;A&quot;,<br>        &quot;AliasTarget&quot;: {<br>          &quot;HostedZoneId&quot;: &quot;<strong><em>Z1BKCTXD74EZPE</em></strong>&quot;,<br>          &quot;DNSName&quot;: &quot;s3-website-<strong><em>eu-west-1</em></strong>.amazonaws.com.&quot;,<br>          &quot;EvaluateTargetHealth&quot;: false<br>        }<br>      }<br>    }<br>  ]<br>}&#39;</pre><p>The response should look like:</p><pre>{<br>    &quot;ChangeInfo&quot;: {<br>        &quot;Status&quot;: &quot;PENDING&quot;, <br>        &quot;Comment&quot;: &quot;Create an alias record to map my new domain to an s3 bucket&quot;, <br>        &quot;SubmittedAt&quot;: &quot;2017-06-14T21:29:56.153Z&quot;, <br>        &quot;Id&quot;: &quot;/change/C1NNTHU82J8NBS&quot;<br>    }<br>}</pre><p>It is generally a good idea to repeat these steps for the <a href="http://www.example.com/">www.<strong><em>example.com</em></strong></a> sub domain.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49add2529330" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create and host a website on AWS S3 from the commandline]]></title>
            <link>https://medium.com/@brianom/how-to-create-and-host-a-website-on-aws-s3-from-the-commandline-7f24227a2e41?source=rss-5220d0e690f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f24227a2e41</guid>
            <category><![CDATA[hosting]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[website]]></category>
            <category><![CDATA[cli]]></category>
            <dc:creator><![CDATA[Brian O'Mullane]]></dc:creator>
            <pubDate>Wed, 07 Jun 2017 21:22:31 GMT</pubDate>
            <atom:updated>2017-06-07T21:22:31.117Z</atom:updated>
            <content:encoded><![CDATA[<p>This short tutorial assumes you have first <a href="http://docs.aws.amazon.com/cli/latest/userguide/installing.html">downloaded the AWS commandline (CLI) tools</a> and <a href="http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html">set it up with your AWS credentials</a>. Once complete you should see a folder called .aws in your home folder, with your credentials in it.</p><h3>Create a S3 bucket</h3><p>To create a S3 bucket to store your site you must give it a unique name (if you don’t it will return a warning to say that is already in use). I am going to use “seed-site”</p><pre>aws s3api create-bucket --bucket seed-site</pre><p>It should return:</p><pre>{ &quot;Location&quot;: &quot;/seed-site&quot; }</pre><p>If you got to your <a href="https://console.aws.amazon.com/s3">AWS console</a> you should now see your new bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7OXjBBzDG6Wc5ETz.png" /></figure><p>Create your website files and go to that folder. (you can use my index.html and other files available <a href="https://github.com/brianom/aws-create-s3-website-commandline">here</a>). You can copy the files one at a time like this:</p><h3>Upload files</h3><p>You can use cp a lot like the regular commandline copy.</p><pre>aws s3 cp index.html s3://seed-site/</pre><p>returns:</p><pre>upload: ./index.html to s3://seed-site/index.html</pre><p>Or all the files in your folder and sub folders using a recursive copy. The command line parameters I’ve used tell it to just copy the jpeg and html files I need. I have also made all the files publically available using “ — acl public-read”</p><pre>aws s3 cp . s3://seed-site/ --recursive --exclude &quot;*&quot; --include &quot;*.jpg&quot; --include &quot;*.html&quot; --acl public-read</pre><p>You can verify they have been copied to the remote folder using a remote list.</p><pre>aws s3 ls s3://seed-site/</pre><p>Returns:</p><pre>2017-06-07 06:38:29     329903 dead-seed.jpg<br>2017-06-07 06:38:29       1608 error.html<br>2017-06-07 06:38:29       1587 index.html<br>2017-06-07 06:38:29     201254 seed.jpg</pre><h3>Make it a website</h3><p>Finally to configure this S3 bucket to serve the files as a website, run the following command</p><pre>aws s3 website s3://seed-site/ --index-document index.html --error-document error.html</pre><p>Ta-Da: <a href="https://seed-site.s3.amazonaws.com/index.html">https://seed-site.s3.amazonaws.com/index.html</a></p><p>Next how to do it with a custom domain</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f24227a2e41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Insert how many people you are following on twitter into a google spreadsheet]]></title>
            <link>https://medium.com/@brianom/insert-how-many-people-you-are-following-on-twitter-into-a-google-spreadsheet-fce5014b5316?source=rss-5220d0e690f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/fce5014b5316</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[google-spreadsheets]]></category>
            <category><![CDATA[metrics]]></category>
            <category><![CDATA[twitter]]></category>
            <dc:creator><![CDATA[Brian O'Mullane]]></dc:creator>
            <pubDate>Mon, 03 Apr 2017 14:55:48 GMT</pubDate>
            <atom:updated>2017-04-03T14:55:48.349Z</atom:updated>
            <content:encoded><![CDATA[<p>I wrote a blog on how to <a href="https://medium.com/@brianom/track-twitter-followers-over-time-using-google-sheets-140b1908f35b">track how many follows you have on twitter</a> over time. I was asked could you also track how many people you are following in a google spreadsheet.</p><p>Here’s a quick hack to go to a users page and navigate to the follower count and insert it in a cell all in a single command. It uses google sheets importXML. Note: this will fail if twitter changes the layout of their page, but it is working fine now.</p><p>Simply insert this in to a cell and change the “brianom” to your user name:</p><p>=IMPORTXML(“https://twitter.com/intent/user?screen_name=brianom&quot;,&quot;//*[@class=&#39;stats graph-stats’]/dl[2]”)</p><p>The result will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/208/1*iTyPlbAlCwtP8VBbNc3scg.png" /></figure><p>Hope this solves a problem for you, I updated the <a href="https://docs.google.com/spreadsheets/d/1-DFcldT3AR_GmvQYZTAar5xDk5rynQlX5LHVIIyJQO4/edit#gid=2005939797">spreadsheet</a> in my original article with this hack.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fce5014b5316" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Track twitter followers over time using Google Sheets]]></title>
            <link>https://medium.com/@brianom/track-twitter-followers-over-time-using-google-sheets-140b1908f35b?source=rss-5220d0e690f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/140b1908f35b</guid>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Brian O'Mullane]]></dc:creator>
            <pubDate>Fri, 26 Aug 2016 15:00:57 GMT</pubDate>
            <atom:updated>2016-08-26T15:04:35.989Z</atom:updated>
            <content:encoded><![CDATA[<p>Keeping an eye on how your twitter followers are changing over time is essential to most social media marketing. What is the effect of publishing tweets? or following / unfollowing other users?</p><p>Twitter don’t make this easy for you. On the <a href="http://analytics.twitter.com/">twitter analytics</a> page the only view of the history is a sparkline and the totals for the last 28 days.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/161/1*ty9Bq9QSRNUXQghSEzOaZA.png" /></figure><p>A solution I use is to write some code for google sheets, to grab the latest total on an hourly basis and write it to a sheet. This is based on a <a href="https://kaspars.net/blog/web-development/twitter-follower-count-without-api">neat hack</a> by <a href="https://kaspars.net/">Kaspars Dambis</a> which gets the number of followers for any user without messing with authentication on the twitter API.</p><p><a href="https://docs.google.com/spreadsheets/d/1-DFcldT3AR_GmvQYZTAar5xDk5rynQlX5LHVIIyJQO4/edit?usp=sharing">Heres’s</a> the spreadsheet. Make a copy and have fun.</p><p>You can get at the code via Tools &gt; Script Editor… Press play to try it out. Or set it to run on a schedule via Resources &gt; Trigger. Where you will see this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*abCqqQmWPHXvR8Rem40OcA.png" /></figure><p>The first time it runs you will need to give it access:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*hPf3mEvbAP4__Ww0MeVLvQ.png" /></figure><p>DONE!</p><p>This next bit is optional. If you want to populate it with the last 28 days of data, you can get the data behind the sparkline on the analytics widget. If you right click on it and “inspect element” you can get the numbers that generate it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*xadwoTo7sNaRH5QNmyZ6Xw.png" /></figure><p>If you copy them in to the spreadsheet title “Reverse Engineer Sparklines” (in the yellow box at top). Then copy your current followers and increase over 28 days in to the other 2 yellow boxes. It will give you a list of 28 data points you can add to the account history page.</p><p>That’s it. If you find this useful please shout.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=140b1908f35b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>