teleren/devto huggingface dataset:
5-minute SSH proxy setup in a container environment
Tags: tutorial, beginners, devops, docker
Published: 2017-12-07 15:33:23

---
title: 5-minute SSH proxy setup in a container environment
published: true
description: Simple tutorial on how to deploy a simple SSH proxy app in a container environment.
tags: #tutorial,#beginners,#devops,#docker 
cover_image: https://thepracticaldev.s3.amazonaws.com/i/tfdn4a2mjvz686lom9wc.png
---
I’ll tell you how to pull an ssh from Docker Hub to a docker platform and launch proxy using a couple commands. I did this with [Containerum](https://containerum.com/ "containerum.com"), but I believe the process is more or less the same for other docker platforms, too.

Basically, what you need to do is pull the SSH image from Docker Hub and deploy it in a container. Then you need to expose the SSH and pull proxy from GitHub. And then you just run your proxy from the inside of the SSH container.

In this tutorial I used Containerum CLI ([*https://github.com/containerum/chkit*](https://github.com/containerum/chkit)) so keep in mind that commands are platform-specific and vary slightly depending on what platform you are using.

* First, in my case I had to download and install Containerum CLI (chkit). Then login with
```
chkit login
```

* Create a container with Debian image
```
chkit run debian --image hklcf/debian-ssh-docker --port 22 --port 8989 --memory 512Mi --cpu 400m
```
22 and 8989 are ports here
![](https://thepracticaldev.s3.amazonaws.com/i/yai2lgqh56bjpk1174oq.png)

* Expose your debian container and a port for your proxy 
```
chkit expose deploy debian -p ssh:22:TCP -p proxy:8989:TCP
```

* Check the mapping ports with
```
chkit get svc
```
 As you can see, 22 is mapped to 34441. And 8989 is mapped to 27471.
![](https://thepracticaldev.s3.amazonaws.com/i/w9wlu5e7tqv5zziepzf4.png)

* Next - login to SSH. To do so, enter your IP and port of the service - in the case above our IP is x3.containerum.io, SSH port is 34441. The default user and password for this image is “root / password”

* Update the system and install wget with
```sh
apt-get update && apt install wget
```

* Then install proxy with
```sh
wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh && \
chmod +x shadowsocks-all.sh && ./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log
```
![](https://thepracticaldev.s3.amazonaws.com/i/0lw7z2dkyfcjaeqlgbse.png)
* Finally, configure your proxy server and your shadowsocks client and enjoy!

P.S. If you have any questions or know a better way to launch an SSH proxy server in containers, comment below!
A thought about music in Videogames
Tags: videogames, retro, classicalmusic
Published: 2017-12-07 15:27:53

---
title: A thought about music in Videogames
published: true
description: A thought about music in Videogames
tags: videogames, retro, classical music
---

Some months I started learning to play the accordion and since a couple of days I am learning to play the beginning of Frederic Chopin's Funeral March. After playing the first part repeatedly I realised this is the same music in the DOS game "Digger", from 1983. 


![alt text](http://msdosgames.com/wp-content/uploads/2015/11/digger-1983-dos-game.gif "Digger Game").

Do you remember this game?


I think this is the first computer game I ever played in my life, alongside "Alley Cat". 

From the Wikipedia entry: 

> During normal game play "Popcorn" is used as background music. In bonus mode the Overture to Wilhelm Tell by Gioachino Rossini plays. If the player dies, a rendition of Frédéric Chopin's Piano Sonata No. 2 in B flat Minor (also known as The Funeral March) is played, accompanied with a picture of a RIP gravestone. Digger used a pulse width modulation sound system which was unusual and advanced for 1983.

Early computer games didn't have high end graphics like the ones we have today. But they were conceptually sophisticated in their own way.

This also led me to do a [quick search on video game musicians](https://en.wikipedia.org/wiki/List_of_video_game_musicians). There seem to be a lot of them. Whenever I think of the making of a videogame I think immediately about developers and graphic designers, I had never given a thought to the fact that there is someone behind the music as well. I guess music has become so ubiquitous that it is not so immediate realising that there's someone working to make it happen.
Parenting moments with shell scripting
Tags: coding, education, eventsandlife, commandline
Published: 2017-12-26 16:00:44

---
title: "Parenting moments with shell scripting"
published: true
tags: Coding,Education,Events and Life,command line
canonical_url: https://pauljacobson.me/2017/12/07/parenting-moments-with-shell-scripting/
---

I’m both fascinated by and borderline besotted with shell scripting (you know, all that command line stuff). It turns out my son is intrigued by what you can do from the command line, and it opens the door to some pretty cool parenting moments.

This afternoon I showed my son a little script I wrote that opens [Firefox Developer Edition](https://www.mozilla.org/en-US/firefox/developer/), [VS Code](https://code.visualstudio.com/), [Remember the Milk](https://www.rememberthemilk.com/), and displays the weather forecast for my city just by running an aliased script from my command line. [The weather service is a very cool command line script that Jessie Frazelle wrote](https://github.com/jessfraz/weather).

{% twitter 937671751273676800 %}

My son was astounded when he saw all these apps open after typing a single command in [iTerm2](https://www.iterm2.com/). He immediately asked me to create something for him.

So I wrote a similar script for him for his Ubuntu PC. It doesn’t work quite the same as mine does on my Mac (Linux has an interesting way of opening some apps that tethers them to the terminal session) but he now has a little command he can use to open VS Code and give him a weather update from his terminal.

I love that he’s also into these things. He asked me to introduce him to something he can use to learn all these shell commands. He wants to write them down in a sort of cheatsheet. I have a couple of resources ([the Linux Documentation Project](http://www.tldp.org/index.html) is an awesome one I only recently came across) I’ll share with him, I think he’ll get a kick out of learning this stuff.
About my life
Tags: life, success, winning
Published: 2017-12-07 15:01:52

---
title: "About my life"
published: true
description: My first post
tags: #life #success #winning
---
![first post win](http://sv2109.com/sites/default/files/field/image/first-blog-post-winning.jpg)

This blog says mi thinks and practice my English skills, sorry if you don't understand all  jejeje XD
I have worked in different companies as the web developer, software engineer, and designer, but the process in that companies are very strict and they don't let be creative.
the creative in the development process, I consider is important like whatever one.
They confused their business with creative software.
When I was working in a building company as a web developer, I saw that your schedules didn't part of the profile designer, well we must be respectful because are the rules it's normal.
but now that I'm in a new job, things are very different and people work without schedules with more compromised and their energy is awesome.
its a little blog about my life as geek and thanks for reading and comment that post.
I hope you have a nice day and remember if you want you to do.
So What Do We Like For Windows Text Editors?
Tags: windows, discuss, textediting, texteditors
Published: 2017-12-07 14:30:52

---
title: So What Do We Like For Windows Text Editors?
published: true
description: So What Do We Like Windows Text Editors? What are the best editors for Windows? 
tags: windows, discuss, text editing, text editors
---

I've been using Notepad++ for several years and generally like it. At one time I tried Atom but it was a bit lethargic. Looked at Sublime once but it's been a while. I used ConTEXT for years but it seems like a dead-end.

What Windows text editors do you like for general text work for things like script files, .bat files, minor snippets of code and text, etc.

I prefer an editor that's fairly light and doesn't bring my machine to its knees. If it has a simple macro record/playback ability even better.

Thanks and interested in people's thoughts!
Joining Open Source Project -- And Learning a New Language
Tags: opensource, discuss
Published: 2017-12-07 14:15:58

---
title: Joining Open Source Project -- And Learning a New Language
published: true
description: 
tags: Opensource, discuss
---

Afternoon All,

I work as a software engineer for a financial company that focuses on JEE life-cycle. However, I'd like to learn Go and join an open source project... Any suggestions/recommendations?
Explain coroutines like I'm five
Tags: explainlikeimfive, discuss, coroutines, async
Published: 2017-12-07 10:33:37

---
title: Explain coroutines like I'm five
published: true
description: 
tags: 
    - explainlikeimfive
    - discuss
    - coroutines
    - async
---

I have been using this concept in Javascript's redux-sagas & Python's asyncio but have failed to understand their underlying working. Who can explain to me how coroutines actually work?
Source Me
Tags: javascript, electron, react, showdev
Published: 2017-12-07 08:06:55

---
title: Source Me
published: true
description: An easy-to-use resource application
tags: javascript, electron, react, showdev
cover_image: https://thepracticaldev.s3.amazonaws.com/i/gtmmlzi4a8c2mt5iap25.png
---

A free and easy-to-use resource application.

> Get useful resources in a minute

The purpose of the application to be built was to get useful utilities and tools in a minute or two. These utilities helped me to build and simultaneously save time by not searching on the web.
The tools and utilities are : -

1. Material Design Colours
2. Content Delivery Networks
3. Fonts
4. Epsum Generator
5. Material Designed Icons
6. URL Shortener
7. Emoji Picker
8. Image Compress

{% twitter 932608093015310336 %}

The application is open-sourced on GitHub and the latest release can be downloaded over here.

> **_Note: The application currently does not support Mac systems ( i do not own one). If someone is willing to contribute for the support, file an issue or contact me._**

The application is built with Electron and React. Thank you for reading this small article on Source Me.

With ❤️,
**Idrees Dargahwala**
TIL a bit of KONAMI
Tags: todayilearned, javascript, webdev
Published: 2017-12-07 06:25:00

---
title: TIL a bit of KONAMI
published: true
tags: til, javascript, webdev
---

## What I Learned

Today I learned that there is a term called 'konami' and what it means in terms of web development. In simplistic terms, remember when you use to type a secret code on your gaming console or keypad (up, down, up, down, left, right, left)? Well, picture the same concept, except while on a webpage! Simplistically, that's kind of what konami is! However, in our case, it's us that get to decide what these little easter eggs can do. 

Want to know a popular website that has a konami code implemented in its source code? Take a guess ..... BUZZFEED! Don't believe me, well give it a try.

1. Go to [Buzzfeed](https://www.buzzfeed.com)
2. Let the page load and then type the following code on your keyboard:
`up, up, down, down, left, right, left, right, b, a, enter`
3. Be amazed!

Since first learning the concept,  Buzzfeed’s konami has changed. At one point, their konami would run a function that replaced all words on the page with **"Wilkie!"** (no clue as to who Wilkie is or why Wilkie was given the honor), but today a sparkle/confetti effect was looped in the background. 

Anyways, that's what I learned today and I'm interested to hear what effects you guys can find and/or what functions your konami codes produce. Let me know what you think or if you find some that you would like to share :).

## And why exactly is this interesting? 

1. It's something I would not have guessed developers would still implement. 
2. It's clever and playful, which is always nice.
3. The code was a little bit more challenging than you'd initially think.

[My Example](https://jessemayo.me/30days/konami/index.html)
Unity Dotween snippets
Tags: unity3d, dotween, cs
Published: 2017-12-07 06:08:44

---
title: Unity Dotween snippets
published: true
description: 
tags: #unity #dotween #cs
---

* import lib.

```
using DG.Tweening;
```

* Delayed Action.

```
DOVirtual.DelayedCall (0.5f, ()=>Foo());

DOVirtual.DelayedCall (0.5f, ()=>Debug.Log("called after 0.5 sec."));

```


* Blink UGUI Image.

```
Image image = this.gameObject.GetComponent<Image> ();

DOTween.ToAlpha (
    () => image.color,
    color => image.color = color,
    0.2f,  // target alpha.
    2.0f   // time.
).SetLoops (-1, LoopType.Yoyo).SetEase (Ease.InOutCirc);
```

* Infinite Loop UGUI Object.

```
RectTransform rt = progressObj.transform as RectTransform;
rt.DORotate (new Vector3 (0.0f, 0.0f, -360.0f), 1.0f, RotateMode.LocalAxisAdd).SetLoops (-1, LoopType.Restart).SetEase(Ease.Linear);
```


* 独自のパラメータや変数をTweenさせる (.To).

```
DOTween.To(
  () => GetSomeFloat(),
  (x) => SetSomeFloat(x),
  TargetSomeFloatValue,
  TweenDurationTime
);
```
Okay... string
Tags: javascript, npm, string, validation
Published: 2017-12-07 03:15:26

---
title: Okay... string
published: true
description: A npm package 
tags: javascript, npm, string, validation
cover_image: https://thepracticaldev.s3.amazonaws.com/i/qgp9sntf3lgqhspg1rhf.jpg
---

**What is it about ?**
okay-string is a npm package which contains numerous methods which can be used anywhere in your application according to your need by writing a single line of code. 

The need of this library was to create a hub of functions which would do anything in a program, be it validation, getting a factorial of a number, getting a random number or anything else. I did need one and i created it. 

{% twitter 938424716997533696 %}

**How do i get it ?**
The package is open-sourced on github, check it out over <a href="https://github.com/theIYD/okay-string">here</a>. Also it is published on <a href="https://www.npmjs.com/package/okay-string">npm<a/>. 

Do leave issues or feature requests or pull requests on Github.

I hope you like this package....

Enjoy !
Explain idempotency (in REST) like I'm Five
Tags: explainlikeimfive, rest, webservices, discuss
Published: 2017-12-07 01:21:09

---
title: Explain idempotency (in REST) like I'm Five
published: true
description: I know it is difficult idempotency to a 5 old kiddo, but this tag would enable others an easy access to this question
tags: #explainlikeimfive #rest #webservices #discuss
---
What is a Tech Lead?
Tags: discuss, leadership
Published: 2017-12-06 22:39:19

---
title: What is a Tech Lead?
published: true
tags: discuss, leadership
---

This isn't a new topic by any means, but some recent events at work brought this question to my mind. I started writing down my thoughts and doing some research on it and thought this might be a great question to ask here on [dev.to](https://dev.to)!

So, _**what is a Tech Lead?**_ How would you define it? What roles and responsibilities do they have? What skills should they have? Any recommendations on resources to learn more about this role?
Is honesty always the best policy?
Tags: discuss, career
Published: 2017-12-06 21:28:47

---
title: Is honesty always the best policy?
published: true
tags: discuss, career
---

Just curious. I believe being honest with your colleagues, clients and bosses is always a good idea. Have you ever been in a situation where the truth was NOT the best way to deal with a problem? Was there some times where slightly altering the truth was the right move?
#12DaysOfHacks – WIN OODLES OF SWAG AND A CHANCE TO WIN A FORCE1 DRONE
Tags: giveaway, hacks, ai, drone
Published: 2017-12-11 20:22:12

---
title: #12DaysOfHacks – WIN OODLES OF SWAG AND A CHANCE TO WIN A FORCE1 DRONE
published: true
tags: giveaway, hacks, ai, drone
canonical_url: 
---

_’Twas December, the holidays and a time to give back, so this year get ready for #12DaysofHacks! Every day from December 11th to 20th, Clarifai will be giving you the chance to win big._

![](https://blog.clarifai.com/wp-content/uploads/2017/12/Clarifai_12daysofHacks_1200x628_NoCTA-720x405.png)

In the month of December, Clarifai gave to thee! 12 Days of Hacking, chances for swagging aaaand one new Force1 [droooone](https://www.amazon.com/Force1-Camera-Return-Brushless-Quadcopter/dp/B073RRK5LL/ref=sr_1_1_sspa?s=toys-and-games&ie=UTF8&qid=1511977538&sr=1-1-spons&keywords=drone+with+camera&refinements=p_72%3A1248963011&psc=1)!

Every day from December 11th to December 20th we will be showing off an application built on our powerful visual recognition technology. Come check out how people are tangibly using AI in the world today!

We’ll also be giving away a _sack_ load of Clarifai swag each day to the first three people to repost our hacks. Follow @clarifai and retweet, repost or share our featured hack as soon as you see it published on Twitter, Instagram, and Facebook. The first three people to share our hacks will win! Make sure you tag @clarifai and #12daysofHacks.

Finally, take a break from decking the halls and use our API to build your own app. Submit a [bounty](https://blog.clarifai.com/bounties/) through our bounties page, and one lucky hacker will win a [drone](https://www.amazon.com/Force1-Camera-Return-Brushless-Quadcopter/dp/B073RRK5LL/ref=sr_1_1_sspa?s=toys-and-games&ie=UTF8&qid=1511977538&sr=1-1-spons&keywords=drone+with+camera&refinements=p_72%3A1248963011&psc=1)! Contest ends at 11:59 pm ET on 12/20/17, so make like the elves and get to building! The winner will be contacted after 1/2/18.

For full contest info and details from the legal eagles, [click here](https://blog.clarifai.com/clarifai-holiday-giveaway-contest-rules/). Good luck and have a fun and festive holiday season!

Ready for the #12DAYSOFHACKS? Go to Twitter and tweet about it now!

[Tweet us now!](https://twitter.com/clarifai)

The post [#12DaysOfHacks – WIN OODLES OF SWAG AND A CHANCE TO WIN A FORCE1 DRONE](https://blog.clarifai.com/12daysofhacks-win-oodles-of-swag-and-a-chance-to-win-a-force1-drone/) appeared first on [Clarifai Blog | Artificial Intelligence in Action](https://blog.clarifai.com).
What is role of architect in agile development?
Tags: discuss, agile, architect
Published: 2017-12-06 18:51:01

---
title: What is role of architect in agile development?
published: true
description: Architect role in agile environments contained from multiple teams.
tags: #discuss, #agile, #architect
---

Let's discuss only bigger projects where multiple teams work on the product.

Should they be part of the (Scrum) team? 

Should they be outside of the team? What is their relationship to the team? Are they superior? Or should they act as a service/consultants/servant-leaders? 

What's your experience? Can you recommend it? What's your opinion?
見せてもらおうかdev.toの性能とやらを 
Published: 2017-12-06 18:40:36

---
title: 見せてもらおうかdev.toの性能とやらを
published: true
description: Let's see what the dev.to can do.
tags: 
cover_image: https://thepracticaldev.s3.amazonaws.com/i/fn4yx8kp849g3vf8sck7.jpeg
---

<ul>
  {% for post in site.posts %}
    <li>
      <a href="{{ post.url }}">{{ post.title }}</a>
    </li>
  {% endfor %}
</ul>

# はじめに

こんにちは


#### NewBehaviourScript.cs

`Assets` > *Create* > **C# Script**

``` csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class NewBehaviourScript : MonoBehaviour {

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		
	}
}

```

## ツイッター

{% twitter 930676938003374081 %}

## ようつべ

{% youtube TIGAfTK6pXQ %}

## Codepen

{% codepen https://codepen.io/yuujii/pen/BGFue %}

## 画像

![alt text](https://thepracticaldev.s3.amazonaws.com/i/fn4yx8kp849g3vf8sck7.jpeg "Logo Title Text 1")
Job != 'Software Developer' - What else?
Tags: career, job, discuss
Published: 2017-12-06 17:50:25

---
title: Job != 'Software Developer' - What else?
published: true
description: 
tags: career, job, discuss
---

Before I decided to become a Software Developer I thought about different job alternatives if my future plans won't work out as planned. One alternative was to become a police officer, what is actually the completely opposite of an office job.

For now I can say that becoming a Software Developer was definitely the right decision, although I'm just at the beginning of my career.

So did you have any alternatives to becoming a Software Developer? Maybe something completely different? Or was it more like: 

“There's no reason to have a plan B because it distracts from plan A.” ?
Why The F**k Won't You Answer My Email?
Tags: career
Published: 2017-12-06 16:20:22

---
title: Why The F**k Won't You Answer My Email?
published: true
description: I'm on a project that has strict target dates. So when someone I need something from won't answer my emails it's a little bit more than irritating
tags: #career
cover_image: https://thepracticaldev.s3.amazonaws.com/i/lglaud5zptwa7gq73vaa.jpg
---


I'm currently on a project to POC a product from a bunch of different vendors. These products require integration with tools that my team doesn't manage which means (you guessed it!) I have to talk to and work with people from different teams. We are on fairly strict timelines with these products due to licensing and milestones set by the project team, so I need to get things integrated as soon as possible so that I can get the products working and do my analysis on their performance. 

This brings me to an unnamed employee that we'll call "Alex", because that is a gender neutral name. Alex is the contact I was given on a team that manages a software we need these product to monitor for the POC. However, Alex won't answer my emails asking about getting the integration set up. I've sent a follow up email every day for the past 3 days and on the last email I cc'd our project manager and my leader. I'm beyond frustrated at this point, because this isn't this first time Alex has done this. I've had to reach out to this person before for help with their software and they never responded then either. That previous issue was less of a priority and I didn't feel the need to follow up, but now it just seems ridiculous. 

*Update! Alex finally answered me after the email that cc'd my leader and PM*

For those of you who have been in my situation, what did you do? How did you get an unresponsive person (who might be blocking your project) to respond to your emails?
Need suggestions on the tech stack for developing a video broadcast app
Tags: discuss
Published: 2017-12-06 16:07:22

---
title: Need suggestions on the tech stack for developing a video broadcast app
published: true
tags: discuss
---

I am seeking for suggestions regarding the tech-stack to be used for developing an android app to broadcast videos. I have watched some talks on this and read a few articles. For now, I have an understanding of what I have to develop(architecture only)

I would really appreciate if you could go into little details on why should I use what you are suggesting and share some links to external resources.