<?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 Jose E Hernandez on Medium]]></title>
        <description><![CDATA[Stories by Jose E Hernandez on Medium]]></description>
        <link>https://medium.com/@divious_1?source=rss-fd370d6594d9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-XXz5_0u2-k762hS3KfyaA@2x.jpeg</url>
            <title>Stories by Jose E Hernandez on Medium</title>
            <link>https://medium.com/@divious_1?source=rss-fd370d6594d9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 06:45:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@divious_1/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[Introducing sigconverter.io: The Community-Driven Sigma Translation Tool]]></title>
            <link>https://medium.com/magicswordio/introducing-sigconverter-io-the-community-driven-sigma-translation-tool-f7b6822e55b4?source=rss-fd370d6594d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7b6822e55b4</guid>
            <category><![CDATA[sigma]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[detection-engineering]]></category>
            <dc:creator><![CDATA[Jose E Hernandez]]></dc:creator>
            <pubDate>Thu, 31 Aug 2023 15:11:46 GMT</pubDate>
            <atom:updated>2023-08-31T15:40:50.842Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction</strong></h3><p>In the ever-evolving landscape of cybersecurity, the need for effective and accessible tools has never been greater. That’s why we’ve developed<a href="https://sigconverter.io"> sigconverter.io</a>, a community-driven, free online Sigma translation tool designed to address the gaps in accessibility and privacy found in similar third-party services. The source code is hosted on <a href="https://github.com/magicsword-io/sigconverter.io">GitHub</a>, our tool not only aims to simplify the process of writing, validating, and sharing Sigma rules but also keeps your activities private. Offering an easy-to-use interface for Sigma rule conversion, support for multiple backends through pySigma, and continuous updates to stay in sync with <a href="https://github.com/SigmaHQ/pySigma">pySigma</a>, this tool is a game-changer. In this blog post, we’ll delve into why this tool is essential, how it was built, its capabilities, and what lies ahead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rVWs6RS7AoY26YRY" /></figure><h3>Why Do We Need a Community-Run and Open Source Conversion UI? 🤔</h3><h3>🤝 Community-Driven, Always Free and Open Source</h3><p>The power of community-driven initiatives lies in the collective expertise and passion for making things better. By keeping <a href="https://sigconverter.io">sigconverter.io</a> open source and free, we ensure that it remains a tool for the community, by the community. This approach guarantees that the tool will always be up-to-date, incorporating the latest features and improvements.</p><h3>🔒Privacy and Protecting Individual Data</h3><p>In a world where data is the new oil, protecting individual privacy is paramount. <a href="https://sigconverter.io">sigconverter.io</a> is designed with privacy as a core value. We don’t monetize user data or subject it to ongoing monitoring. Your activities on the platform remain your own, safeguarded from commercial exploitation.</p><h3>🛠️ New Features and Maintenance by Researchers</h3><p>The tool is not just a one-off project but a continually evolving platform. Maintained by researchers like us, it will keep incorporating new features and improvements, ensuring it remains a relevant and effective tool for the cybersecurity community.</p><h3>How We Built This Converter 🏗️</h3><p>Inspired by <a href="https://uncoder.io">uncoder.io</a>, <a href="https://sigconverter.io">sigconverter.io</a> is built on top of pySigma and leverages Python Flask as its web server under the hood. This project was completely based on <a href="https://github.com/M3NIX/sigmaio">sigmaio</a> by <a href="https://twitter.com/m3nixx">Julian Ortel</a>. Special thanks to the author Julian for laying the groundwork. The tool is hosted as a Cloud Run project under Google Cloud, ensuring both reliability and availability. We take your privacy seriously. Rest assured, we will never collect individual user data or any personal information like emails. While we plan to implement Google Analytics for understanding web traffic and planning scalability, this will not compromise your personal data in any way.</p><h3>What Can It Do and What Does the Future Look Like? 🌟</h3><p>Currently, <a href="https://sigconverter.io">sigconverter.io</a> supports the conversion of Sigma rules to various SIEM query languages. We have big plans for the future, including rule validation, sharing capabilities, bulk rule conversion and support for even more SIEM platforms.</p><h3>📣 Your Feedback Matters</h3><p>We’re always looking to improve and expand the tool’s capabilities. If you have suggestions for new features or encounter any bugs, please create a GitHub <a href="https://github.com/magicsword-io/sigconverter.io/issues">issue</a> on our repository. Your feedback is invaluable in making <a href="https://sigconverter.io">sigconverter.io</a> a better tool for everyone.</p><h3>How Does The Conversion Work 📝</h3><p>As stated at the start the tool leverages the latest and greatest pySigma library for converting sigma rules into the different backend’s queries. In practice the app leverages the Sigma “Backend” class and the different backends and pipelines published in the sigma plugin <a href="https://github.com/SigmaHQ/pySigma-plugin-directory/blob/main/pySigma-plugins-v1.json">directory</a>, all of which is made accessible via the interface.</p><p>This flexibility also means that in case you have a custom or private backend, you can still make use of the app by simply installing your backend on the same system.</p><h3>Examples</h3><p>Here are some rules that can be converted to a couple different backends, to give you a taste of what the tool can do:</p><ul><li><a href="https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_curl_download_susp_file_sharing_domains.yml">sigma/rules/windows/process_creation/proc_creation_win_curl_download_susp_file_sharing_domains.yml at master · SigmaHQ/sigma</a></li><li><a href="https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_susp_local_system_owner_account_discovery.yml">sigma/rules/windows/process_creation/proc_creation_win_susp_local_system_owner_account_discovery.yml at master · SigmaHQ/sigma</a></li></ul><h3>What’s Next? 🚀</h3><p>The journey is just beginning. We’re excited about the roadmap for <a href="https://sigconverter.io">sigconverter.io </a>and are eager for your feedback. Currently, the project is maintained by:</p><ul><li><a href="https://twitter.com/m3nixx">Julian Ortel</a></li><li><a href="https://twitter.com/nas_bench">Nasreddine Bencherchali</a></li><li><a href="https://twitter.com/Kostastsale">Kostas</a></li><li><a href="https://twitter.com/M_haggis">Michael Haag</a></li><li><a href="https://twitter.com/_josehelps">Jose Enrique Hernandez</a></li></ul><p>We’re always looking for more contributors, so if you’re interested, please join us!</p><p>Kudos to Florian Roth (<a href="https://github.com/Neo23x0">GitHub</a>), Thomas Patzke (<a href="https://github.com/thomaspatzke">GitHub</a>), and the entire<a href="https://github.com/SigmaHQ/sigma"> Sigma community</a> for the immense value they provide by building community detections.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7b6822e55b4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/magicswordio/introducing-sigconverter-io-the-community-driven-sigma-translation-tool-f7b6822e55b4">Introducing sigconverter.io: The Community-Driven Sigma Translation Tool</a> was originally published in <a href="https://medium.com/magicswordio">magicswordio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building CI pipeline for Splunk Content]]></title>
            <link>https://medium.com/josehelps/building-ci-pipeline-for-splunk-content-51ed5c9c8bf0?source=rss-fd370d6594d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/51ed5c9c8bf0</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[splunk]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[content]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Jose E Hernandez]]></dc:creator>
            <pubDate>Thu, 28 Feb 2019 19:41:54 GMT</pubDate>
            <atom:updated>2019-03-02T02:31:13.098Z</atom:updated>
            <content:encoded><![CDATA[<h3>Using CircleCI and Splunk AppInspect*</h3><p>Recently worked on writing and open sourcing <a href="https://github.com/splunk/TA-osquery/">https://github.com/splunk/TA-osquery</a>. One of my goals was to make sure my code was in compliance with Splunk’s best practices at every stage of development. No one wants to get first wind of all of the issues in his or her app while they&#39;re submitting to Splunkbase.com, am I right?</p><p>Because a few of us were going to be working on that repo/app, automated testing was the way to go. I thought it would be great to share the experience with you, in case you’d also like to start automatically testing your Splunk content (App, TA, DA, SA).</p><p>Pan camera over to <a href="http://www.circleci.com">CircleCI</a>, a CI/CD cloud service that allows you to “automate your pipeline from commit to deploy”. First I spent a few minutes going through the “<a href="https://circleci.com/docs/2.0/getting-started/">getting started</a>” process and ended with an example job running on in repo. The next step was to figure out what tool to use to test Splunk automatically. Fortunately, Splunk provides <a href="http://dev.splunk.com/view/appinspect/SP-CAAAE9U">AppInspect</a> as a way for customers to automatically validate their applications. Its description:</p><blockquote>“Splunk AppInspect evaluates your <a href="https://docs.splunk.com/Splexicon:App">Splunk app</a> against a set of Splunk-defined criteria so that you can be assured of its quality and robustness.”</blockquote><p>The next task was to build a job to automatically run AppInspect on every pull request for our TA-osquery. This was the end result:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/35413cbabba7b40c35f8fbaafcba1c26/href">https://medium.com/media/35413cbabba7b40c35f8fbaafcba1c26/href</a></iframe><p>Here, you can see that CircleCI executes three jobs: <strong>grab appinspect</strong>, <strong>install appinspect</strong>, and <strong>run appinspect.</strong> Let’s unpack these a bit:</p><ul><li>The job <strong>grab appinspect</strong> is straightforward. Using curl grabs its latest build and untars it under the ~/appinspect-latest directory.</li><li>Next, <strong>install appinspect</strong> uses pip to install the necessary tools and <a href="https://pythontips.com/2013/07/30/what-is-virtualenv/">virtualenv</a>. We use virtualenv to install appinspect and its dependencies.</li><li>Finally, <strong>run appinspect </strong>runs appinspect and returns an error if your app does not pass. It also prepares the repo code to ensure it does not return obvious errors.</li></ul><p>Now, let’s look at a full example configuration from the TA-OSquery repo:</p><p><a href="https://github.com/splunk/TA-osquery/blob/master/.circleci/config.yml">splunk/TA-osquery</a></p><p>Note the <strong>validate-content</strong> job where we clone, build, and run Splunk Appinspect. There is also a <strong>publish-github-release</strong> job, which takes the inspected tarball (TA-osquery.tar.gz) and creates a Github release using <a href="https://github.com/tcnksm/ghr">ghr</a> that includes it. Also, under the <strong>workflows</strong> section, we define a very simple process:</p><ul><li>All pull request (CI jobs) run the <strong>validate-content </strong>job</li><li>The <strong>publish-github-release </strong>job only runs on tags that start with v (eg. v1.0) and it requires the <strong>validate-content</strong> job to run successfully.</li></ul><p>This allows us to only generate a release when we tag one in our code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dac4033e8f99d7be886cd74f65f71639/href">https://medium.com/media/dac4033e8f99d7be886cd74f65f71639/href</a></iframe><p>Mind you, this does require you to set an environmental variable in CircleCI named GITHUB_TOKEN with a Github token. The Github token must have access to post releases to your repo.</p><p>On the Github side, while not required, I highly suggest you create the following <a href="https://help.github.com/en/articles/configuring-protected-branches">branch protection rule</a> for all your branches (<strong>*</strong>):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*Q7YfL4KM3HGMPQ-EGLGSog.png" /></figure><p>Require at least 1 reviewer for each pull request and always require that the <strong>validate-content</strong> job finishes successfully before allowing merging.</p><p>To summarize, in order to automatically test Splunk content in Github, you need to:</p><ol><li>Sign-up and <a href="https://circleci.com/docs/2.0/getting-started/">configure CircleCI</a> with Github</li><li>Modify <a href="https://github.com/splunk/TA-osquery/blob/master/.circleci/config.yml">TA-osquery job</a> and save to <strong>.circleci/config.yml</strong> in your repo</li><li>Configure branch protection Github</li></ol><p>Using <a href="https://pre-commit.com/">pre-commit hooks</a>, specifically, those for linting configuration files and flake8 for python scripts, will help with the code hygiene of any project. Also, if you see yourself editing the CircleCI config file, it is good practice to use their <a href="https://circleci.com/docs/2.0/local-cli/">cli tool</a> to validate the file</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c763b2de0820fff867e811594c929e15/href">https://medium.com/media/c763b2de0820fff867e811594c929e15/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51ed5c9c8bf0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/josehelps/building-ci-pipeline-for-splunk-content-51ed5c9c8bf0">Building CI pipeline for Splunk Content</a> was originally published in <a href="https://medium.com/josehelps">josehelps</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Go RESTful API using GOA that scales effortlessly with Google App Engine and are…]]></title>
            <link>https://medium.com/@divious_1/build-a-go-restful-api-using-goa-that-scales-effortlessly-with-google-app-engine-and-are-67e32da8c828?source=rss-fd370d6594d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/67e32da8c828</guid>
            <category><![CDATA[swagger]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[restful-api]]></category>
            <category><![CDATA[go]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Jose E Hernandez]]></dc:creator>
            <pubDate>Thu, 19 Jul 2018 20:42:17 GMT</pubDate>
            <atom:updated>2018-07-23T20:16:32.380Z</atom:updated>
            <content:encoded><![CDATA[<p>Build a Go RESTful API using GOA that scales effortlessly with Google App Engine and are beautifully documented by Swagger</p><h3>Prelude</h3><p>If you are interested in the guide, just jump to the building section below. Otherwise, I will pace you through my thought process.</p><p>In the previous months, I have found myself spending copious amount of time with Go. There are a multitude of reasons, but the most prominent being its portability and the speed it provides. Recently I had a need to write a Web service, which ideally would be powered by an API. Instead of picking my usually tools (python/flask) for the job I decided to tackle this one in <a href="https://golang.org/">Go</a>. After spending a few days defining the requirements for the API I settled on the following:</p><ul><li>Needs to scale with usage automatically, requires little maintenance and must be impervious to usage spikes as much as possible.</li><li>Needs to be highly fault tolerant</li><li>Needs to be well documented, ideally via a interactive UI</li><li>Lastly, since time is of the essence, any tech stack selected needs to give me as much scaffolding out of the box I can use for CRUD operations. Then, allow me to iterate on it as fast as possible (add/edit) endpoints.</li></ul><p>The first two requirements are easily met by using a container based platform like <a href="https://kubernetes.io/">Kubernetes</a>. Having some experience with it, it was my obvious go to choice. My greatest aversion to using it was the overhead that it would have with managing such a deployment. One of the key things I had in mind was keeping the maintenance cost (labor and monetary) to a minimum for this API. This made <a href="https://cloud.google.com/appengine/">Google App Engine</a> (GAE) an obvious choice. App engine would provide me with:</p><ul><li>Infinitely scale based on usage, not paying for CPU time that’s not used but it will scale up if there is a spike in usage</li><li>Fault tolerance across multiple regions in Google Cloud Platform automatically</li><li>Access to all other google components like data store natively (I needed a NOSQL store as well)</li></ul><p>Now that I had selected a platform to deploy to, my next search was for a Go web framework that would serve as a great CRUD API platform. My top two Choices were <a href="https://gin-gonic.github.io/gin/">Gin</a> and <a href="https://echo.labstack.com/">Echo</a>. Personally, I gravitate to the simplicity and documentation of Echo but found better examples (specifically tutorials that describe how to deploy to GAE) for Gin. After much searching I settled on <a href="https://goa.design/">GOA</a> for the following reasons:</p><ul><li>To get started with GOA I do not have to write any scaffolding code. GOA generates a full project structure for me from a <a href="https://goa.design/design/">design</a> file.</li><li>It also generates a <a href="https://goa.design/design/swagger/">Swagger specification</a> to help me document which was one off my requirements.</li><li>Using its <a href="https://goa.design/reference/goa/design/apidsl/">DSL</a> it allows me iterate on the API functions in an extremely quick fashion.</li><li>Lastly, has <a href="https://goa.design/design/security/">security</a> for the API built in.</li></ul><h3>Building</h3><p>Before we jump in, I want to point out that we will walk though the <a href="https://github.com/goadesign/goa-cellar">cellar example</a> as a base to show how a fully functioning example is meant to work. We will then make a few changes to support hosting in Google App engine with a Swagger UI for documentation.</p><p><strong>Requirements</strong></p><ul><li>Install <a href="https://github.com/goadesign/goa-cellar">cellar example</a> and have it running locally</li><li>Install <a href="https://cloud.google.com/appengine/docs/standard/go/quickstart#before-you-begin">Google Cloud SDK</a> and configure a project</li><li>Install Goa go get -u github.com/goadesign/goa/...</li></ul><p>As the goa-cellar example states the only non-generated directories are:</p><blockquote>the controllers package, which contains the API business logic</blockquote><blockquote>the store package, which contains the database operations.</blockquote><blockquote>the design package itself, which contains the DSL the describes the API and which is used to generate the code</blockquote><p>I encourage to peak into each directory and look at their contents. This is the code that you will be writing for your app.</p><p>If we look at the <a href="https://github.com/goadesign/goa-cellar/blob/master/design/resources.go">design/resources.go</a> component, you will notice that the API URL paths are defined. We also see that the only path defined is that for a <a href="https://github.com/goadesign/goa-cellar/blob/master/public/swagger/swagger.yaml">swagger </a>spec file but not its UI. Let’s change that!</p><p>In the Resource definition for swagger, lets change the file directive to include everything under the public folder not just the <a href="https://github.com/goadesign/goa-cellar/blob/master/design/resources.go#L202">swagger.json</a> file. Change <a href="https://github.com/goadesign/goa-cellar/blob/master/design/resources.go#L198">your resource file</a> swagger section to look like this:</p><pre>var _ = Resource(&quot;swagger&quot;, func() {<br> Origin(&quot;*&quot;, func() {<br>  Methods(&quot;GET&quot;, &quot;OPTIONS&quot;)<br> })<br> Files(&quot;/swagger/*filepath&quot;, &quot;public/swagger/&quot;)<br>})</pre><p>Save, edit and exit out of <strong>resource.go</strong></p><p>Now that we have a path (/swagger) that loads all files placed in it.</p><p>The next step is to regenerate our app code based on the newly modified resource and for same of example, lets also regenerate our, app, main, and swagger code base.</p><pre>cd $GOPATH/src/github.com/goadesign/goa-cellar/<br>goagen app -d github.com/goadesign/goa-cellar/design<br>goagen main -d github.com/goadesign/goa-cellar/design<br>goagen swagger -d github.com/goadesign/goa-cellar/design -o publi<br>c</pre><p>Now we are ready to move the <a href="https://swagger.io/tools/swagger-ui/">Swagger UI</a> into it. Run:</p><p>cd ~/tmp &amp;&amp; git clone <a href="https://github.com/swagger-api/swagger-ui">https://github.com/swagger-api/swagger-ui</a></p><p>Then move the <strong>dist</strong> folder into cellar-goa public folder:</p><p>mv ~/tmp/swagger-ui/dist/* $GOPATH/src/github.com/goadesign/goa-cellar/public/swagger/</p><p>Then edit the$GOPATH/src/github.com/goadesign/goa-cellar/public/swagger/index.htmland change the URL from this to point to your local swagger</p><pre>url: “./swagger.json”,</pre><p>You should end up with something similar to this tree (brew install tree if you do not have the tool):</p><pre>~/go/src/github.com/goadesign/goa-cellar/public <br>└── # tree<br>.<br>├── html<br>│   └── index.html<br>├── js<br>│   ├── axios.min.js<br>│   ├── client.js<br>│   ├── example.go<br>│   └── index.html<br>├── schema<br>│   └── schema.json<br>└── swagger<br>    ├── favicon-16x16.png<br>    ├── favicon-32x32.png<br>    ├── index.html<br>    ├── oauth2-redirect.html<br>    ├── swagger-ui-bundle.js<br>    ├── swagger-ui-bundle.js.map<br>    ├── swagger-ui-standalone-preset.js<br>    ├── swagger-ui-standalone-preset.js.map<br>    ├── swagger-ui.css<br>    ├── swagger-ui.css.map<br>    ├── swagger-ui.js<br>    ├── swagger-ui.js.map<br>    ├── swagger.json<br>    └── swagger.yaml</pre><pre>4 directories, 20 files</pre><p>We now have a swagger UI.</p><p>And if we were to run this example locally, everything should work perfectly. Try it out now:</p><pre>cd $GOPATH/src/github.com/goa-design/goa-cellar/<br>go build main.go<br>./main</pre><p>You should see a service start up in port 8081, then just visit <a href="http://localhost:8081/swagger/">http://localhost:8081/swagger/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yEoRdiFjSXuDlSAoL4BVsQ.png" /></figure><p>API should be fully functional too.</p><pre>curl -s localhost:8081/cellar/accounts | jq<br>[<br>  {<br>    &quot;href&quot;: &quot;/cellar/accounts/1&quot;,<br>    &quot;id&quot;: 1,<br>    &quot;name&quot;: &quot;account 1&quot;<br>  },<br>  {<br>    &quot;href&quot;: &quot;/cellar/accounts/2&quot;,<br>    &quot;id&quot;: 2,<br>    &quot;name&quot;: &quot;account 2&quot;<br>  }<br>]</pre><p>Now to deploy in Google’s App Engine. The gcloud tool-chain ships with <strong>dev_appserver.py</strong> a tool to allow you to run a local development environment for GAE standard. To run it, we must pass it the <a href="https://github.com/goadesign/goa-cellar/blob/master/app.yaml">app.yml</a> which contains our GAE definitions.</p><pre>cd $GOPATH/src/github.com/goadesign/goa-cellar/<br>dev_appserver.py app.yml</pre><p>And … you will see the go build fail with an error similar to:</p><pre>2018/07/19 11:48:22 go-app-builder: Failed parsing input: app file account.go conflicts with same file imported from GOPATH</pre><p>This is primarily due to how App Engine expects <a href="https://cloud.google.com/appengine/docs/flexible/go/using-go-libraries">the location of imports</a>. Let’s create a folder and move our GAE configuration over to it. We also need to move the public folder as we are changing the root location the app is initiating from.</p><pre>mkdir appengine<br>mv app.yaml appengine/<br>mv appengine.go appengine/ <br>mv public appengine/</pre><p>Then, lets try to start our app engine development environment again.</p><pre>dev_appserver.py appengine/app.yaml</pre><p>You should see a similar output to below:</p><pre>WARNING  2018-07-19 15:52:51,940 devappserver2.py:114] *** Notice ***<br>In a few weeks dev_appserver will default to using the Cloud Datastore Emulator. We strongly recommend you to enable this change earlier.<br>To opt-in, run dev_appserver with the flag --support_datastore_emulator=True<br>Read the documentation: <a href="https://cloud.google.com/appengine/docs/standard/python/tools/migrate-cloud-datastore-emulator">https://cloud.google.com/appengine/docs/standard/python/tools/migrate-cloud-datastore-emulator</a><br>Help us validate that the feature is ready by taking this survey: <a href="https://goo.gl/forms/UArIcs8K9CUSCm733">https://goo.gl/forms/UArIcs8K9CUSCm733</a><br>Report issues at: <a href="https://issuetracker.google.com/issues/new?component=187272">https://issuetracker.google.com/issues/new?component=187272</a></pre><pre>INFO     2018-07-19 15:52:51,945 devappserver2.py:158] Skipping SDK update check.<br>INFO     2018-07-19 15:52:52,219 api_server.py:274] Starting API server at: <a href="http://localhost:52855">http://localhost:52855</a><br>INFO     2018-07-19 15:52:52,329 dispatcher.py:270] Starting module &quot;default&quot; running at: <a href="http://localhost:8080">http://localhost:8080</a><br>INFO     2018-07-19 15:52:52,342 admin_server.py:152] Starting admin server at: <a href="http://localhost:8000">http://localhost:8000</a><br>lvl=info msg=mount ctrl=Account action=Create route=&quot;POST /cellar/accounts&quot;<br>lvl=info msg=mount ctrl=Account action=Delete route=&quot;DELETE /cellar/accounts/:accountID&quot;<br>lvl=info msg=mount ctrl=Account action=List route=&quot;GET /cellar/accounts&quot;<br>...<br>lvl=info msg=mount ctrl=Public files=public/html/index.html route=&quot;GET /ui&quot;<br>lvl=info msg=mount ctrl=Js files=public/js route=&quot;GET /js/*filepath&quot;<br>lvl=info msg=mount ctrl=Js files=public/js/index.html route=&quot;GET /js/&quot;<br>lvl=info msg=mount ctrl=Swagger files=public/swagger/ route=&quot;GET /swagger/*filepath&quot;<br>lvl=info msg=mount ctrl=Swagger files=public/swagger/index.html route=&quot;GET /swagger/&quot;</pre><p>Note that our listening port changes to 8080 in this case but we can test the API again:</p><pre>└── # curl -s localhost:8080/cellar/accounts | jq<br>[<br>  {<br>    &quot;href&quot;: &quot;/cellar/accounts/1&quot;,<br>    &quot;id&quot;: 1,<br>    &quot;name&quot;: &quot;account 1&quot;<br>  },<br>  {<br>    &quot;href&quot;: &quot;/cellar/accounts/2&quot;,<br>    &quot;id&quot;: 2,<br>    &quot;name&quot;: &quot;account 2&quot;<br>  }<br>]</pre><p>Now we are ready to deploy to your project run.</p><p>cd $GOPATH/src/github.com/goadesign/goa-cellar/appengine &amp;&amp; gcloud app deploy</p><p>Now you have a REST API example that scales with usage, is documented automatically using swagger spec, has a <a href="https://github.com/goadesign/goa-cellar/tree/master/tool/cellar-cli">CLI</a> tool generated and an <a href="https://goa.design/implement/goagen/#gen_client">API client objects</a>. This foundation makes a perfect framework for deploying micro services across your organization as well as the basis for an API project. I hope you enjoyed this tutorial and if you run into any questions following these steps feel free to message me via twitter.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67e32da8c828" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hackmiami Con #6 Closing Thoughts and Presentation Bits]]></title>
            <link>https://medium.com/josehelps/hackmiami-con-6-closing-thoughts-and-presentation-bits-9c6a40a95dab?source=rss-fd370d6594d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c6a40a95dab</guid>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[building]]></category>
            <dc:creator><![CDATA[Jose E Hernandez]]></dc:creator>
            <pubDate>Mon, 21 May 2018 14:00:03 GMT</pubDate>
            <atom:updated>2018-05-21T14:07:24.689Z</atom:updated>
            <content:encoded><![CDATA[<p>Yesterday in my drive home after the close of the HackMiami 6th conference I was overtaken with a feeling of humbleness. Humble because despite of how small our local security community is there is an over abundance of talent, love and appreciation for one another. I reminiscence of the days where a handful of us came together in Planet Linux Cafe (RIP) and just shared the latest thing we were working on. Much of that spirit still has carried on almost 7th years later and not an ounce of curiosity and the hacker spirit has been lost.</p><p>Below is a short moment I was able to capture that spirit with some of our young hackers assembling a ethereum miner for their first time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pPMJjnQ_tcBAtNcXtZHwRw@2x.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NmuHwgGHmQ76r7pDuc0buA@2x.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*njpFIppV88guEtJJ0wKi3A@2x.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UG9elnGwDewTs_13VhbYFw@2x.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kUNwJ1_snhU_kuRzIzMejA@2x.jpeg" /></figure><p>Did I mention the venue was not too shabby either?</p><p>For those of you whom are interested here are the slides for “Building your own ethereum miner” workshop:</p><p><a href="https://www.slideshare.net/eherna2000/building-an-ethereum-miner-workshop-97753234">https://www.slideshare.net/eherna2000/building-an-ethereum-miner-workshop-97753234</a></p><p>As well as “Building a SOC” deck:</p><p><a href="https://www.slideshare.net/eherna2000/building-a-soc-hackmiami-2018-97787461/">https://www.slideshare.net/eherna2000/building-a-soc-hackmiami-2018-97787461/</a></p><p>Thank you @hackmiami for maintaining the Planet Linux Cafe spirit alive, see you next year!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c6a40a95dab" width="1" height="1" alt=""><hr><p><a href="https://medium.com/josehelps/hackmiami-con-6-closing-thoughts-and-presentation-bits-9c6a40a95dab">Hackmiami Con #6 Closing Thoughts and Presentation Bits</a> was originally published in <a href="https://medium.com/josehelps">josehelps</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hackmiami Mining Altcoins]]></title>
            <link>https://medium.com/josehelps/hackmiami-mining-altcoins-13f402a0b4d2?source=rss-fd370d6594d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/13f402a0b4d2</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[mining]]></category>
            <dc:creator><![CDATA[Jose E Hernandez]]></dc:creator>
            <pubDate>Mon, 20 Nov 2017 00:26:52 GMT</pubDate>
            <atom:updated>2017-11-20T00:34:17.951Z</atom:updated>
            <content:encoded><![CDATA[<p>Thank you @hackmiami for the warm welcome. It has been a while since I attend a meeting yesterdays was stellar. Starting with the OSINT talk by Hunny.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*9CxHmNaizePMPewKeh-VIw.jpeg" /></figure><p>We had some great conversations in various topics of mining. Below is the speaker deck, but if you are looking for a step by step guide on how to get started with mining I recommend <a href="https://josehelps.com/my-first-ethereum-mining-rig-1b8f74fff88b">My first Ethereum Mining Rig</a>. It explains exactly what to buy and where, and acts as a getting started guide.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fspeakerdeck.com%2Fplayer%2F0fb264e6bbcb4cc3a4d80fae9c050db6&amp;url=https%3A%2F%2Fspeakerdeck.com%2Fdivious1%2Fmining-altcoins&amp;image=https%3A%2F%2Fspeakerd.s3.amazonaws.com%2Fpresentations%2F0fb264e6bbcb4cc3a4d80fae9c050db6%2Fslide_0.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=speakerdeck" width="710" height="463" frameborder="0" scrolling="no"><a href="https://medium.com/media/a72ab22889a8b5a97517f20ff5f5a4b1/href">https://medium.com/media/a72ab22889a8b5a97517f20ff5f5a4b1/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13f402a0b4d2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/josehelps/hackmiami-mining-altcoins-13f402a0b4d2">Hackmiami Mining Altcoins</a> was originally published in <a href="https://medium.com/josehelps">josehelps</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Risks of mining ETH on GPUs]]></title>
            <link>https://medium.com/josehelps/risks-of-mining-eth-on-gpus-c2085d9490c4?source=rss-fd370d6594d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2085d9490c4</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[mining]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Jose E Hernandez]]></dc:creator>
            <pubDate>Fri, 22 Sep 2017 06:27:10 GMT</pubDate>
            <atom:updated>2017-09-22T06:27:54.812Z</atom:updated>
            <content:encoded><![CDATA[<p>Came across this <a href="https://www.techpowerup.com/234482/eth-mining-lower-vram-gpus-to-be-rendered-unprofitable-in-time">story</a> which struck a bit of worry in my hear as I finally understood why is always best to buy larger memory GPU for mining. It showcases a hidden risk in mining ETH. There is no doubt that ETH is here to stay and grow, but miners need to understand that over time the DAG grows and cannot be stored in low memory GPUs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*ZJYSoLW6NfDlkbhCaE7dcA.png" /><figcaption>From: <a href="https://investoon.com/tools/dag_size">https://investoon.com/tools/dag_size</a></figcaption></figure><p>Current size is <strong>2.12 GB</strong> this means any GPU under 2GB memory is rendered useless and cannot effectively mine ETH. DAG will grow over time and eventually all 4GB GPUs will reach that until then we have at least 1 year.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2085d9490c4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/josehelps/risks-of-mining-eth-on-gpus-c2085d9490c4">Risks of mining ETH on GPUs</a> was originally published in <a href="https://medium.com/josehelps">josehelps</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Second Ethereum mining Rig]]></title>
            <link>https://medium.com/josehelps/my-second-ethereum-mining-rig-d3236e1c5e59?source=rss-fd370d6594d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3236e1c5e59</guid>
            <category><![CDATA[mining]]></category>
            <category><![CDATA[gpu]]></category>
            <category><![CDATA[overclocking]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Jose E Hernandez]]></dc:creator>
            <pubDate>Mon, 21 Aug 2017 14:43:41 GMT</pubDate>
            <atom:updated>2017-08-21T14:43:41.757Z</atom:updated>
            <content:encoded><![CDATA[<h3>Intro</h3><p>Recently started mining ethereum and decided to blog my experience throughout the process. You can see my first “POC” miner at my lessons learned in <a href="https://medium.com/josehelps/my-first-ethereum-mining-rig-1b8f74fff88b">part 1</a>. In my second miner I decided to seek a platform that I can scale on and eventually turn into a money generating device.</p><h4>6+ GPU Miners</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AH61XwXA0QZzwk6gl05AUw.jpeg" /><figcaption>What my new miner looks like</figcaption></figure><p>The first thing I did on my second machine was increase the GPU count. Its a simple concept really, the more GPUs the bigger the hash rate (Mh/s), the faster ETH can be mined/generated. This meant getting a motherboard that supported more PCI slots in order to install more GPUs. My favorite motherboard so far base on the price has been this <a href="http://www.newegg.com/Product/Product.aspx?Item=13-128-840R">Gigabyte</a> model, other motherboards whom have 6+ PCI slots are +$200. I experimented with a few (ASRock, MSI and Biostar) and cannot say anything specifically negative about them just that the Gigabyte is priced the best. My second choice was the <a href="https://www.newegg.com/Product/Product.aspx?Item=N82E16813130966&amp;cm_re=Z170A-KRAIT-GAMING-3X-_-13-130-966-_-Product">MSI Krait</a> due its build and the ease of upgrading the bios, and finding support online from other miners.</p><h4>Motherboard Settings</h4><p>You must adjust the PCI settings on your bios otherwise it won’t boot up with more than 5 GPUs. It will give you a very none descriptive segfaults that looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*f9qK1b469FakXaL4uUXTKw@2x.jpeg" /></figure><p>There is a <a href="https://forum.ethereum.org/discussion/11404/msi-z170-7-gpu-bios-setting-step-by-step">very good guide</a> on how to do this on the MSI’s, on the Gigabyte the setting is under MISC in the home page of the BIOS. Make sure you flash the latest BIOS. Not sure why GEN2 must be defined, but base on some light investigation seems to be related to the amount of data lanes/encoding GEN2 uses versus the default GEN3.</p><p>Moreover, going to 6 GPUs also meant bigger power supply, in my hunt anything smaller than a 850 WATT one is too small. I always find modular ones to be the best, again the <a href="https://www.newegg.com/Product/Product.aspx?Item=N82E16817438092&amp;cm_re=evga_850w-_-17-438-092-_-Product">EVGA</a> is one of my favorite.</p><h4>Over Clocking</h4><p>Finding the coolest card! No literally the one that runs the coolest with the least power consumption, a good hash rate and its not above $300 has been my obsession the last 2 weeks. So far I can comfortably say the RX460’s are still my favorite ones base on the above factors. This is simply because I haven’t gotten my hands on any RX470’s or RX480’s, because of their amazing hash rate versus power consumption efficiency everyone seems to want them. If you find them in stock usually they are more than $300+ or try your luck in <a href="https://www.ebay.com/sch/i.html?_from=R40&amp;_sacat=0&amp;_nkw=rx+480+8gb&amp;rt=nc&amp;LH_BIN=1">ebay</a>. Each RX480 can roughly generate <strong>22 Mh/s </strong>versus an RX460 at <strong>11 MH/s. </strong>Problem is that unlike the expensive brother of the 480 the 460 can be picked up for $109 if you look in the right placed. Yes it is 4GB versus a 8GB card, but we are mining <a href="https://www.techpowerup.com/234482/eth-mining-lower-vram-gpus-to-be-rendered-unprofitable-in-time">ETH on borrow time</a> we all know that. Just looking at the hash rate versus cost the RX460 seem like a good choice, but when over clocked then it becomes a great alternative.</p><p>On ethos to overclock just follow this simple steps:</p><ol><li>Run show stats it will produce an output similar to:</li></ol><pre>miner:                                    claymore<br>miner_hashes:                             11.40 11.43 11.40 11.33 10.57 11.20<br>models:                                   01 Baffin RX 460 xxx-xxx-xxx Micron<br>                                          02 Baffin RX 560 xxx-xxx-xxx Micron<br>                                          03 Baffin RX 460 xxx-xxx-xxx Micron<br>                                          06 Baffin RX 460 113-BAFFIN_PRO_160513_4GD5_MS_DF_W8 Micron<br>                                          07 Baffin RX 460 113-BAFFIN_PRO_4GD5_160925_MIC_0D_72W_W81 Micron<br>                                          08 Baffin RX 460 113-BAFFIN_PRO_160513_4GD5_MS_DF_W8 Samsung<br>bioses:                                   xxx-xxx-xxx xxx-xxx-xxx xxx-xxx-xxx 113-BAFFIN_PRO_160513_4GD5_MS_DF_W8 113-BAFFIN_PRO_4GD5_160925_MIC_0D_72W_W81 113-BAFFIN_PRO_160513_4GD5_MS_DF_W8<br>default_core:                             1212 1287 1212 1220 1220 1220<br>default_mem:                              1750 1750 1750 1750 1750 1750<br>vramsize:                                 4 4 4 4 4 4<br>core:                                     1138 1182 1138 1138 1138 1138<br>mem:                                      1750 1750 1750 1750 1750 1750<br>memstates:                                1 2 1 1 1 1<br>meminfo:                                  GPU0:01.00.0:Radeon RX 460:xxx-xxx-xxx:Micron MT51J256M3<br>                                          GPU1:02.00.0:Radeon RX 560:xxx-xxx-xxx:Micron MT51J256M3<br>                                          GPU2:03.00.0:Radeon RX 460:xxx-xxx-xxx:Micron MT51J256M3<br>                                          GPU3:06.00.0:Radeon RX 460:113-BAFFIN_PRO_160513_4GD5_MS_DF_W8:Micron MT51J256M3<br>                                          GPU4:07.00.0:Radeon RX 460:113-BAFFIN_PRO_4GD5_160925_MIC_0D_72W_W81:Micron MT51J256M3<br>                                          GPU5:08.00.0:Radeon RX 460:113-BAFFIN_PRO_160513_4GD5_MS_DF_W8:Samsung K4G80325FB<br>voltage:                                  0.00 0.00 0.00 0.00 0.00 0.00<br>watts:                                    0.00 0.00 0.00 0.00 0.00 0.00<br>overheatedgpu:                            <br>throttled:                                <br>powertune:                                5 5 5 5 5 5</pre><p>we will specifically be looking at</p><pre>default_core:                             1212 1287 1212 1220 1220 1220<br>default_mem:                              1750 1750 1750 1750 1750 1750<br>vramsize:                                 4 4 4 4 4 4<br>core:                                     1138 1182 1138 1138 1138 1138<br>mem:                                      1750 1750 1750 1750 1750 1750</pre><p>The default_core tells us what the expected clock rate of the card is, meanwhile the core tells us what is actually set. In this output you can see most of my cards are actually under clock. Let say we were going to overclock by 5% we calculate that from the default values, for example on the output above my first GPU runs at 1212 MHZ, so a 5% over clock would be 1272 MHZ.</p><p>2. edit local.conf vim local.conf add/comment out the following lines:</p><pre># globalcore 1000<br># globalmem 1250<br># globalfan 90<br># globalpowertune 20</pre><p>globalcore sets your speed across all cores, globalmem does the same for memory, fan sets fan speed and powertune how much power to provide to the GPU (more means more pull from the power supply more consumption). To increase the 5% just add core</p><pre>globalcore 1272<br># globalmem 1250<br>globalfan 90<br># globalpowertune 20</pre><p>These settings can also be edited per GPU for example</p><pre># cor c94e13 1180 1180 1180 1180 1180 1180<br># mem c94e13 2150 2150 2150 2150 2150 2150<br># pwr c94e13 7 7 7 7 7 7</pre><p>where <strong>c94e13</strong> is the machine hostname, can be obtained by running hostname and after that have a column per GPU (e.g. GPU0 is first column, GPU1 second). I have different GPUs and this is why you see variations of the default_core in step one. Due to this I set my overclock parameters per GPU (not everyone will have the same 5%) as the following:</p><pre>#5% everyone<br>cor 657054 1273 1351 1273 1281 1281 1281<br>mem 657054 1838 1838 1838 1838 1838 1838<br>fan 657054 85 85 85 85 85 85<br>pwr 657054 8 8 8 8 8 8</pre><p>3. The last step is easy, save and restart :wq and then r ;-). Oh don’t forget to verify when the machine boots up again your settings kicked in by running show stats again!</p><p>Using this technique I have been able to get the RX460 comfortably producing between 13–14 Mh/s with ran cold with a 850 WATT power supply. In a 6 GPU rig that is 78–84Mh/s which equals to about <a href="https://www.cryptocompare.com/mining/calculator/eth?HashingPower=78&amp;HashingUnit=MH%2Fs&amp;PowerConsumption=0&amp;CostPerkWh=0">$184 a month today</a> not taking power cost into consideration. I am spending roughly about $30–40 on power per miner. That is a $144 per month per machine! Not too bad considering that <a href="https://www.inc.com/brian-d-evans/ethereum-ether-could-be-worth-more-than-bitcoin-very-soon.html">ETH is set to overpass bitcoin</a> in the future due to smart contracts and bitcoin is $4200 this week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wg9fjc8hpd30La4U4LeIeA.png" /></figure><h4>GPU Firmware hacks</h4><p>Another way to squeeze additional performance out of GPU is to modify their bios. This will overwrite what clock rate the machine thinks it can operate at on its ASIC which will render better performance, but with more risk as well. If a mistake is made while modifying the bios you could end up with a burned GPU. Where as in overclocking the worst is that the machine will crash before then! I haven’t experimented with it yet with it because it requires a windows machine, and also the best custom bioses I have found have been for the RX480/470 and not the RX460. If interested, the following guide does a great job at explaining the process <a href="https://steemit.com/ethereum/@yogibear/mine-more-ethereum-with-rx470-rx480-bios-mods">https://steemit.com/ethereum/@yogibear/mine-more-ethereum-with-rx470-rx480-bios-mods</a></p><h4>Securing ethos</h4><p>A part of me was not considering writing this but the security nut in me couldn’t resist. Here are some basic steps to take with your ethos rig, if you haven’t done so already.</p><p>ethos is clearly built on Ubuntu 14.04 (Trusty) :</p><pre>/home/ethos # cat /etc/apt/sources.list | grep deb | tail<br>deb <a href="http://security.ubuntu.com/ubuntu">http://security.ubuntu.com/ubuntu</a> trusty-security main restricted<br>deb-src <a href="http://security.ubuntu.com/ubuntu">http://security.ubuntu.com/ubuntu</a> trusty-security main restricted</pre><p>and their updater is wrapped around the operating system ethos-update does not update ubuntu. In fact when you run an update command they clearly say its not supported it!</p><pre>/home/ethos # sudo apt-get update<br>WARNING: Upgrading, updating, and/or installing packages with apt-get is unsupported and will likely break ethOS. If you still want to apt-get, use apt-get-ubuntu. update</pre><p>which means you have a linux machine on an old OS version with ssh open and (default credentials, hopefully not). Here are some basic steps to take to make your machine a tad bit more secure.</p><ol><li>Lock down ssh, by /home/ethos# vim /etc/ssh/sshd_config disabling root log in and changing the default port.</li></ol><pre>PermitRootLogin no<br>Port 2222</pre><p>save and restart the service service ssh restart</p><p>2. change default password passwd ethos</p><p>3. <a href="https://askubuntu.com/questions/440649/how-to-disable-ipv6-in-ubuntu-14-04">disable ipv6</a></p><p>and if you can ssh into your account with <a href="https://www.debian.org/devel/passwordlessssh">a key instead of a password</a>.</p><h4>Evolution of this Project</h4><p>After sharing with a few colleagues my interest in mining and some of my recent escapades they decided to jump in and asked me to build them miners. As a result in a span of a few weeks we have built 12 miners and counting, here is what a one of those larger setups looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4_m0Dqv1HJGW5jchnd4DQg.jpeg" /><figcaption>6 miners — 18 GPUs</figcaption></figure><p>If you are curious or interested in building your own ETH miner, reach out, I am here to help!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3236e1c5e59" width="1" height="1" alt=""><hr><p><a href="https://medium.com/josehelps/my-second-ethereum-mining-rig-d3236e1c5e59">My Second Ethereum mining Rig</a> was originally published in <a href="https://medium.com/josehelps">josehelps</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My first Ethereum Mining Rig]]></title>
            <link>https://medium.com/josehelps/my-first-ethereum-mining-rig-1b8f74fff88b?source=rss-fd370d6594d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b8f74fff88b</guid>
            <dc:creator><![CDATA[Jose E Hernandez]]></dc:creator>
            <pubDate>Tue, 27 Jun 2017 01:35:00 GMT</pubDate>
            <atom:updated>2017-08-20T21:32:43.312Z</atom:updated>
            <content:encoded><![CDATA[<h4>Intro</h4><p>I have always been interested in cryptocurrencies, but like many of my friends never fully had a grasp of the how the market worked and how currencies were generated. After speaking with a colleague who has left his day job to day trade on <a href="https://www.poloniex.com/">Poloniex</a> he explained the market and economic implications of cryptocurrencies. It peaked my interest and after a few days of research decided to embarked on building my very own ethereum mining rig. Below is the result of what my research yielded and what I ended up using for the machine and all the necessary components. My first rig yielded ~42MH/s with 4 RX460’s. This guide is meant for a total new comer like myself. Hope is helpful!</p><h4>The Rig:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*wOhMTD8KIjBbpmpD7U7nEw.jpeg" /></figure><p>When building a machine the build list is pretty straight forward, if you have built a gaming machine in the past. ETH mining happens on the GPUs which will eventually determine your hash rate (X MH/s), which equates to how much ETHER (currency) you are generating from mining. For a more detail explanation of hash rate and what it is visit <a href="https://github.com/ethereum/wiki/wiki/Mining">this link</a>. Below is the part list I ended up purchasing:</p><p>These are the most basic components which really won’t change the performance of your miner <strong>non-critical</strong>.</p><ul><li><a href="https://www.newegg.com/Product/Product.aspx?Item=N82E16819113286">CPU</a> — any slow processor would do, you will be running low overhead *nix OS, least likely Windows, just make sure it works with your motherboard.</li><li><a href="https://www.newegg.com/Product/Product.aspx?Item=N82E16820231743&amp;cm_re=4_GB_RAM_DDR3-_-20-231-743-_-Product">Memory</a> — as long as it has minimally 4GB of RAM memory</li><li><a href="https://www.newegg.com/Product/Product.aspx?Item=9SIAAZ64RR5792&amp;cm_re=16GB_SSD-_-9SIAAZ64RR5792-_-Product">HDD/SDD</a> — Any would work, although I highly recommend purchasing the pre-loaded SSD with ethos from <a href="https://gpushack.com/products/ethos-16gb-ssd">gpushack</a>.</li></ul><p>Now the <strong>critical</strong> components:</p><ul><li><a href="https://www.newegg.com/Product/Product.aspx?Item=9SIA85V41B1218">Motherboard</a> — The most important aspect of purchasing a motherboard is making sure it has +4 PCI 2.0 slots, the more slots supported by the motherboard the more GPU density you can have and thus a bigger hash rate. Highly recommend reading through the most <a href="http://cryptomining-blog.com/tag/motherboard-for-ethereum-mining/">recommended boards</a> (a bit aged still worth reviewing).</li><li><a href="https://www.newegg.com/Product/Product.aspx?Item=N82E16817438018&amp;cm_re=evga_power_supply-_-17-438-018-_-Product">Power Supply</a> — Its what will feed your rig, two things are important when selecting the power supply, make sure you have plenty of capacity and it is very efficient. The lowest capacity I would recommend is 850 WATT. My go to choice is the <a href="https://www.newegg.com/Product/Product.aspx?Item=N82E16817139057">corsair RM1000</a> which comfortably supports a 6 GPU machine very low power waste, does not heat easily and extremely silent. Another worthy mention is the <a href="https://www.newegg.com/Product/Product.aspx?Item=N82E16817438018&amp;cm_re=evga_power_supply-_-17-438-018-_-Product">EVGAs</a> which are a tad cheaper as well.</li><li><a href="http://www.bestbuy.com/site/xfx-amd-radeon-rx-460-4-gb-gddr5-pci-express-3-0-graphics-card/5549901.p?skuId=5549901">GPU</a> — The most critical component in an ethereum mining rig by far. Base on crypto compare the best GPU to use today base on the consumption/vs hash rate generated is the AMD RX480. For ETHER mining it is recommended for the GPU to have +4GB of memory. <a href="https://www.cryptocompare.com/mining/#/equipment?f0=ETH">Cryptocompare.com</a> has a great list of suggested GPUs and reviews. Due to their incredibly high demand from miners and gamers it is darn near impossible to find RX480, RX470s, or their predecessors RX570 or RX580s in the market at a reasonble price. After much research and hunting for a deal I decided to settle with RX460’s (~11MH/s) for my first machine. These do not have as much power as the RX480 (~24 MH/s) but they also consume considerably less power. Most importantly they were 4–5 times cheaper than the <a href="https://www.ebay.com/sch/i.html?_from=R40&amp;_sacat=0&amp;LH_BIN=1&amp;_nkw=rx%20480%208gb&amp;_dcat=27386&amp;rt=nc&amp;LH_ItemCondition=1000&amp;_trksid=p2045573.m1684">RX480</a> sold today and easier to find.</li></ul><p>Besides the core components there are a list of accessories I recommend to buy, although optional they will make your rig much easier to administer and manage.</p><ul><li><a href="https://www.amazon.com/6-Pack-PCI-E-Powered-Adapter-Extension/dp/B01N3UVJHM/ref=pd_sim_147_3?_encoding=UTF8&amp;pd_rd_i=B01N3UVJHM&amp;pd_rd_r=8G0XCK0EEVBFRCTTRW90&amp;pd_rd_w=q44Km&amp;pd_rd_wg=nDz7f&amp;psc=1&amp;refRID=8G0XCK0EEVBFRCTTRW90">USB Riser Cards</a> — you will need these to comfortably connect all GPUs.</li><li><a href="https://www.amazon.com/gp/product/B06XH73LJB/ref=oh_aui_detailpage_o01_s00?ie=UTF8&amp;psc=1">Power Meter</a> (optional) — you will need this to understand what your power consumption is, see the economics portion of the guide for details.</li><li><a href="http://www.ebay.com/itm/PC-Computer-Desktop-ATX-Motherboard-Power-Short-Fast-On-Off-I-O-Switch-Cable/251839885762?ssPageName=STRK%3AMEBIDX%3AIT&amp;_trksid=p2057872.m2749.l2649">Power switch for ATX MOBO</a> — if you don’t plan on shorting the two power pins on the motherboard buy this :-).</li><li><a href="https://www.amazon.com/SONGMICS-Folding-Utensil-Drainer-UKAB901/dp/B00ZX0MV6S/ref=sr_1_4?ie=UTF8&amp;qid=1498490962&amp;sr=8-4&amp;keywords=bamboo+dish+rack">Case</a> — open air cases are recommended to allow a rig to breathe, most <a href="https://gpushack.com/products/gpushack-frame?variant=41304551631">open air frame cases</a> are $100 — $250 USD. Personally I decided to use a bamboo dish rack which has exactly the same effect and it costs $15 USD on Amazon. It does not look half bad either and is extremly portable.</li></ul><p><strong>Slide show of Build</strong></p><p><a href="https://flic.kr/s/aHsm3pmDcB">First ETH Rig</a></p><h4>Bundles</h4><p>Gpushack.com has great bundles which include the motherboard, memory, cpu and an ssd with ethos pre-loaded. I high recommend these bundles as for one they are ultimately cheaper than buying the parts separately, but also gpushack are the guys who maintain ethos and everything will work out of the box with it. To find the bundles visit: <a href="https://gpushack.com/">https://gpushack.com/</a></p><h4>ETHOS Distro</h4><p>After some research the operating system I decided to use for my mining rig was <a href="http://ethosdistro.com/">http://ethosdistro.com/</a>. ETHOS is an Ubuntu 16.04 base operating system with LXE as its desktop environment. Comes pre-built with amd and nvidia drivers, plus a ton of goodies like, an admin panel, over clocking utilities, statistics services, support for multiple miners and much more. The key to configuring ETHOS is if your rig make sure you comment out remote.local and make all your changes in local.conf as explained here: <a href="http://ethosdistro.com/kb/#quick-start-guide">http://ethosdistro.com/kb/#quick-start-guide</a>. Once booted ethos will automatically start mining to a pre-configured wallet.</p><p>a few interesting key commands are:</p><ul><li>show stats — displays your GPUs and system stats like temperature, clock rate, and model.</li><li>show miner — displays the current miners worked being performed, a real time checker of how many MH/s your generating</li></ul><p>This is an example of my current <a href="https://pastebin.com/raw/mQU2qada">local.conf</a> config as help. Remember <strong>edit the wallet settings</strong>.</p><p>Once ETHOS is up and running it will automatically generate an URL with an panel to monitor your instance from here is an example of my current rig:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*ttC_N5zjlfOjiTT5." /></figure><p><a href="http://90c2b7.ethosdistro.com/">90c2b7 ethOS</a></p><h4>Claymore Miner</h4><p><a href="https://bitcointalk.org/index.php?topic=1433925.0">Claymore</a> is one of many miners that come pre-installed with ETHOS. Claymore not only is a very efficient miner whom boasts a 1–3% has rate increate over others but it can also dual mine multiple coins miner a loss of performance. The miner in ETHOS is set under the local.conf under the <strong>miner </strong>conf paramter.</p><p>A few important things to know regarding claymore and dual mining. There is a fee for using claymore as described by the developer/s:</p><blockquote>This miner is free-to-use, however, current developer fee is 1% for Ethereum-only mining mode (-mode 1) and 2% for dual mining mode (-mode 0), every hour the miner mines for 36 or 72 seconds for developer.<br> Decred/Siacoin/Lbry/Pascal is mined without developer fee.<br>If you don’t agree with the dev fee — don’t use this miner, or use “-nofee” option.<br>Attempts to cheat and remove dev fee will cause a bit slower mining speed (same as “-nofee 1”) though miner will show same hashrate.<br> Miner cannot just stop if cheat is detected because creators of cheats would know that the cheat does not work and they would find new tricks. If miner does not show any errors or slowdowns, they are happy.</blockquote><p>Also in my testing mining 2 coins potential ETH hash rate drops from 12 MH/s per RX 460 to 10, clearly reducing your gains. The alternative coins are Sia/Pascal/Decre, whom today have smaller markets than that of ETH and in my personal opinion not worth it as it also tacks on a 2% fee from the miner. Hence I configured Claymore to only mine ether. Passing the <strong>-dpsw</strong> parameter with your email will allow you to modify the payment schedule on nanopool, which is important if you want to get paid faster.<br><br>Here is a example of my <a href="https://pastebin.com/raw/PefsB1mi">claymore.stub.conf</a> file where all the Claymore parameters live in ETHOS. Please remember to reboot the rig once configured in order for the settings to take place, do this by typing <strong>r</strong> on the terminal.</p><h4>Mining Pools</h4><p>ETHOS comes pre-configured with <a href="https://nanopool.org/">https://nanopool.org/</a> as the mining pool. If you are not sure what a mining pool is you can find a way better explanation than I can write here:</p><p><a href="https://en.wikipedia.org/wiki/Mining_pool">Mining pool - Wikipedia</a></p><p>but in short, helps you get paid faster and track your progress for a fee, in nanopool’s case is 1%. Once your wallet address is configured you can track the mining progress to that wallet by visiting nanopool and passing your wallet address, you can see an example of one of my miners at:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*agAfbvQxMangRjFa." /></figure><p><a href="https://eth.nanopool.org/account/0x3EDeFEe8B452A74b15997000FF9D3c913EDd03fb">Nanopool | Ethereum | Account</a></p><h4>Economics of Mining</h4><p>There are 3 main variables when mining any crypto currency those are:</p><ol><li>current price of coin</li><li>cost of power to mine</li><li>Hash rate</li></ol><p>The price of the coin will be primarily dictated by the market, a great place to keep a pulse of where it is with respect to there coins is <a href="https://coinmarketcap.com/">https://coinmarketcap.com</a><br><br>The cost of power can be calculated simply by providing the power meter (suggested above) with what your local KwH cost is. This can be found in your electrical bill or in your local power utility website. For example in Miami it is $0.123. The meter will then count how much power per KwH your machine is consuming. My 4 GPU rig clocked in at about 430 WATTs.</p><p>Your current hash rate will determine how much ether you are actually mining. Hash rate can be affected by how power your GPU is, how difficult the hash calculation rate is at the moment. Again many of these can be found in crypto compare for each GPU.</p><h4>Wallets and Trading Services</h4><p>After having built a rig a few obvious questions will come up, what wallet should I use,how do I convert ETH to USD or any other coin?<br><br>There are many wallets out there, each with their pros and cons. After spending some time reading, the most recommended ETH wallet seemed to be mist, although I had a tough time getting it running on my linux desktop, and hence decided to experiment with alternatives. First I started with Jaxx as they had a mobile client as well as a local one. <a href="https://jaxx.io/">Jaxx</a> is a great wallet, and the integration with shapeshift is really nice addition, but they strongly advice against mining payouts which made me shy away from them. Ultimately I settled on <a href="https://www.exodus.io/">Exodus</a>, mainly due to its user interface which I fell in love with, plus there are some added security benefits. A good comparison can be found at:<br><br><a href="https://www.reddit.com/r/Bitcoin/comments/60a9si/jaxx_vs_exodus_which_is_a_better_wallet/">https://www.reddit.com/r/Bitcoin/comments/60a9si/jaxx_vs_exodus_which_is_a_better_wallet/</a></p><p>Both Jaxx and Exodus allow you to exchange between coins but they are not exchange markets themselves. If you are getting comfortable with mining and have an appetite/interest on day trading I high recommend <a href="https://poloniex.com/">Poloniex</a> or <a href="https://bittrex.com/">Bittrex</a>. Poloniex also advice’s users not o use them as a mining payout wallet. <br><br>Finally if you want to convert ETH or BTC to USD <a href="http://coinbase.com/">coinbase.com</a> is the best place to do so. Another wallet provider that advice against using them as a mining pool payout. The main reasons are:<br><br><a href="https://community.coinbase.com/t/why-warning-about-sending-mining-rewards-directly-to-wallet-address/15522/7">https://community.coinbase.com/t/why-warning-about-sending-mining-rewards-directly-to-wallet-address/15522/7</a></p><h4>Final Words</h4><p>My first rig has been running for about 4 weeks now and successfully making payments. This is a great (and potentially) profitable project to embark upon for any enthusiast out there. I am now on the path of building my second rig with 6 GPUs with new lessons learned (potential part 2 coming). Please drop me a line if this write up helped you (@divious_1) or you have any questions. Also credits to <a href="https://blockoperations.com/gpu-mining-zcash-ethereum-ethosdistro-amd-rx470/">blockoperations.com</a> who’s blog gave me direction throughout the build process.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b8f74fff88b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/josehelps/my-first-ethereum-mining-rig-1b8f74fff88b">My first Ethereum Mining Rig</a> was originally published in <a href="https://medium.com/josehelps">josehelps</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fighting Bot Attacks presentation at FIRST]]></title>
            <link>https://medium.com/josehelps/fighting-bot-attacks-presentation-at-first-666b50605d3?source=rss-fd370d6594d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/666b50605d3</guid>
            <dc:creator><![CDATA[Jose E Hernandez]]></dc:creator>
            <pubDate>Mon, 08 May 2017 20:18:00 GMT</pubDate>
            <atom:updated>2017-08-20T22:55:57.966Z</atom:updated>
            <content:encoded><![CDATA[<p>Took some time to speak to FIRST attendee regarding some of the lessons learned at Zenedge fighting bot attacks. In the presentation, I covered an attacker whom persistently kept coming back to a customer and bypassing our mitigation techniques and how we evolved to protect ourselves. Them move to cover how bots are fought by most providers today and fingerprints obtain using fingerprint2.js library.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9guInzzv30eBXkDx2Jlk-g.png" /></figure><p>Finished the talk by describing how you can build your own protection. See the slide show below</p><p><a href="https://app.slidebean.com/p/NFgtVrcBmD/Fighting-Bots">Fighting Bots</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=666b50605d3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/josehelps/fighting-bot-attacks-presentation-at-first-666b50605d3">Fighting Bot Attacks presentation at FIRST</a> was originally published in <a href="https://medium.com/josehelps">josehelps</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FrakenTank is Alive!]]></title>
            <link>https://medium.com/josehelps/frakentank-is-alive-7fc484d71820?source=rss-fd370d6594d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7fc484d71820</guid>
            <dc:creator><![CDATA[Jose E Hernandez]]></dc:creator>
            <pubDate>Tue, 07 Jun 2016 05:49:00 GMT</pubDate>
            <atom:updated>2017-08-20T21:18:31.586Z</atom:updated>
            <content:encoded><![CDATA[<h4>FrakenTank</h4><p>My friend <a href="https://twitter.com/funkejunx">Berto</a> just finished his FrankenTank and its looking awesome. Really interesting for a weekend project, and a mobile platform for other things to be built on it. See a demo video at:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FAGiGdii72P8%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAGiGdii72P8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FAGiGdii72P8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/30a418e6bfeb16d08ec96b334467fb3b/href">https://medium.com/media/30a418e6bfeb16d08ec96b334467fb3b/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7fc484d71820" width="1" height="1" alt=""><hr><p><a href="https://medium.com/josehelps/frakentank-is-alive-7fc484d71820">FrakenTank is Alive!</a> was originally published in <a href="https://medium.com/josehelps">josehelps</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>