teleren/devto huggingface dataset:
List of Github cli commands
Tags: github, githubcli, git
Published: 2020-04-27 16:25:17

Github cli commands
============

_A list of Github cli commands_
--
feel free to star [this](https://gist.github.com/vimalverma558/50d523bc3af426a3b51d59cabb49eeff)

___
___

![Alt Github cli](https://dev-to-uploads.s3.amazonaws.com/i/0rats1vacpb52llro8xy.jpeg)

### Repository

| Description | Command  |
| ------- | ----------- |
| Initialize a Github repository [default private] | `gh repo create <name>` |
| Initialize a Github public repository  | `gh repo create <name> --public` |
| Create a local copy of a remote repository | `gh repo clone <repository-name>` or <br> `gh repo clone https://github.com/<username>/<repository-name>` |
| Create a fork for the current repository | `gh repo fork` |



### Pull requests

| Description | Command |
| ------- | ----------- |
| Check status | `gh pr status` |
| Create a pull request | `gh pr create`|
| Quickly navigate to the pull request creation page | `gh pr create --web`|
| list of open pull requests | `gh pr list`|
| View a pull request | `gh pr view` |

### issue

| Description | Command |
| ------- | ----------- |
| Create a new issue | `gh issue create` |
| Create an issue using flags | `gh issue create --title "Issue title"` |
| list of open issues | `gh issue list` |
| list of closed issues | `gh issue list --state closed` |
| Show status of relevant issues | `gh issue status` |
| View an issue | `gh issue view {<number> / <url>}` |


[follow](https://github.com/vimalverma558)
migrating jenkins home directory in linux
Tags: jenkins, linux, centos7
Published: 2020-04-27 19:22:46


I recently had an issue with my Jenkins server complaining of not enough space in the partition and directory where it was installed on my Centos 7 OS. This obviously is the default ‘va/lib/jenkins directory.

A couple of tries and solutions seemed to work until Jenkins was spinning again and the problem seemed to persist. After some struggles I managed to make Jenkins happy and decided to put together what I believe would be the best solution to migrating the Jenkins default home directory to a new one with enough space.


The following command should quickly tell which partitions have enough space 

[root@pol pol]# df -h

Remember to stop the jenkins service before starting the process.

[root@pol pol]# systemctl stop jenkins

We start by creating a new Jenkins directory within the /home/ directory 

[root@pol pol]# mkdir /home/jenkins/

Copy all the contents of the old jenkins directory to the new one

[root@pol pol]# cp -rvf /var/lib/jenkins/* /home/jenkins/

Once the copy operation is completed, we need to update the environment variable for Jenkins home directory(JENKINS_HOME). This can be done with the following command

[root@pol pol]# export JENKINS_HOME=/home/jenkins

Jenkins home directory has now been changed but we need to make sure those changes hold even after a reboot. We navigate to the ‘bash_profile’ file located in the /home directory 

root@pol home]# vim ~/.bash_profile

We then make the following entry at the bottom of the file

export JENKINS_HOME=/home/jenkins

We also should navigate to the jenkins config file and change the PATH to the new home directory. 

[root@pol pol]# vim /etc/sysconfig/jenkins

Change from JENKINS_HOME="/var/lib/jenkins" to the following 

JENKINS_HOME="/home/jenkins"
 
Before restarting the service we need to recursively take care of directory access rights for the jenkins user and group otherwise Jenkins will not be happy with our actions!

chown -R jenkins:jenkins $JENKINS_HOME 

The last step would be to restart the jenkins service to implement the changes

[root@pol pol]# systemctl start jenkins

Now if you log back into the Jenkins GUI the home direction should not complain and should be changed!
OWASP, DevSecOps, AppSec & Cloud Security Podcasts
Published: 2023-11-25 10:37:32

---
title: OWASP, DevSecOps, AppSec & Cloud Security Podcasts
published: true
date: 2020-04-27 21:36:49 UTC
tags: 
canonical_url: 
---

### OWASP, DevSecOps, AppSec & Cloud Security Podcasts

![](https://cdn-images-1.medium.com/max/1024/1*PGrwAlynp-Cc5T19y7SSlw.jpeg)

I was recently asked which OWASP/DevSecOps/Application Security/Cloud Security-themed podcasts I listen to.

Here’s the list:

_(please note that these podcasts are available on all/most podcasts platforms, in this list I only provide the Google Podcasts links):_

**Application Security Podcast (produced by Chris Romeo/ Security Journey)**: [https://podcast.securityjourney.com/](https://podcast.securityjourney.com/application-security-podcast/episodes/)

**OWASP Podcast** (now known as **DevSecOps Podcast** Supported by OWASP — produced by Mark Miller — interview format): [https://soundcloud.com/owasp-podcast](https://soundcloud.com/owasp-podcast)

**BeerSecOps — ** Podcast About Dev, Sec, Ops, and Everything in Between (run be Steve Giguere/AquaSec - Interview format): [https://podcasts.google.com/?feed=aHR0cHM6Ly9hbmNob3IuZm0vcy9mMzg2Njg0L3BvZGNhc3QvcnNz](https://podcasts.google.com/?feed=aHR0cHM6Ly9hbmNob3IuZm0vcy9mMzg2Njg0L3BvZGNhc3QvcnNz)

**DevSecOps Overflow** (produced by Michael Man, interview format) **:** [https://podcasts.google.com/?feed=aHR0cHM6Ly9mZWVkcy5idXp6c3Byb3V0LmNvbS83MzMwNzAucnNz](https://podcasts.google.com/?feed=aHR0cHM6Ly9mZWVkcy5idXp6c3Byb3V0LmNvbS83MzMwNzAucnNz)

**Absolute AppSec(**produced by Ken Johnson and Seth Law, chat with guests) [https://podcasts.google.com/?feed=aHR0cHM6Ly9hYnNvbHV0ZWFwcHNlYy5jb20vcnNzLnhtbA](https://podcasts.google.com/?feed=aHR0cHM6Ly9hYnNvbHV0ZWFwcHNlYy5jb20vcnNzLnhtbA)

**Cloud Security Podcast** : [https://podcasts.google.com/?feed=aHR0cHM6Ly9hbmNob3IuZm0vcy8xMGZiOTkyOC9wb2RjYXN0L3Jzcw&ved=2ahUKEwiHte\_Uu4npAhUShhoKHcTBCLYQ4aUDegQIARAC](https://podcasts.google.com/?feed=aHR0cHM6Ly9hbmNob3IuZm0vcy8xMGZiOTkyOC9wb2RjYXN0L3Jzcw&ved=2ahUKEwiHte_Uu4npAhUShhoKHcTBCLYQ4aUDegQIARAC)

**The Secure Developer Podcast** (produced by Heavybit, interview format): [https://podcasts.google.com/?feed=aHR0cHM6Ly93d3cuaGVhdnliaXQuY29tL2NhdGVnb3J5L2xpYnJhcnkvcG9kY2FzdHMvdGhlLXNlY3VyZS1kZXZlbG9wZXIvZmVlZA&ved=0CB0Q27cFahcKEwi4kpi8uonpAhUAAAAAHQAAAAAQBw](https://podcasts.google.com/?feed=aHR0cHM6Ly93d3cuaGVhdnliaXQuY29tL2NhdGVnb3J5L2xpYnJhcnkvcG9kY2FzdHMvdGhlLXNlY3VyZS1kZXZlbG9wZXIvZmVlZA&ved=0CB0Q27cFahcKEwi4kpi8uonpAhUAAAAAHQAAAAAQBw)

**DevSecOps Talk Podcast** (Mattias Hemmingsson, Julien Bisconti and Andrey Devyatkin chat about latest stuff, and ideas): [https://podcasts.google.com/?feed=aHR0cHM6Ly9mZWVkLnBvZGJlYW4uY29tL2RldnNlY29wcy9mZWVkLnhtbA](https://podcasts.google.com/?feed=aHR0cHM6Ly9mZWVkLnBvZGJlYW4uY29tL2RldnNlY29wcy9mZWVkLnhtbA)
BeTheHope - What did Data say? [3]
Tags: twiliohackathon, data, presentation, video
Published: 2020-04-28 16:32:57

Hello again! In the past, there have been times when I had an idea, and I felt that this is it. This is my Eureka moment. In eagerness to start working on the project, I ended up forgetting to do some research to see if alternates exist or data supports my thesis. And well, I’ll just say that it ended up in a few disappointing endings.

Learning from these mistakes, over the past year, whenever I start a new project, I try to dig in some data to ensure that the idea brings something unique to the table, can be backed by data and it’s feasibility to reach the intended audience. 

###I ask myself, is it worth pulling all-nighters?
And with BeTheHope, it was a definite ***yes***. First week, my brain was juggling around between a couple of ideas. Eventually, I let the data decide (so maybe I can call myself a data-driven person? 🤓). I had gathered enough data to convince myself to build a solution easing donations for everyone. 

---

###How’s the progress been so far?
Luckily, I’m almost done with the development, ahead of my schedule, so I decided to work on a couple of cool things to show my passion for the project. Firstly, since I had done the heavy load of digging some valuable data in the first week, I decided to prepare a deck with some numbers to show the importance of this solution. For now, here’s a quick peek (I’ll share the complete deck in the submission post):

![Deck](https://i.imgur.com/O6jyNIK.jpg)

Secondly, I never thought I'd be doing this, but since I have some time on my hands, I decided to try getting my hands dirty trying to edit a walkthrough demo video for the entire platform. To be honest, I basically realized how hard it is to edit videos (Salute to YouTubers!). Nonetheless, I’m super excited to complete it. If done right, I’ll be putting it into my hall of fame 😎

![iMovie] (https://i.imgur.com/Ni46ve6.png)

---

Before I leave, a quick update on the donations page (shared in first [post](https://dev.to/abhinavchawla13/bethehope-first-glimpse-1-29ei)) for the donors: As it is a mobile-first page, I re-designed the page to provide desktop viewers a similar experience as they would get on their mobile devices. Here it is:

![Donation page] (https://i.imgur.com/mOFltSW.png)

I’m happy with the progress; hopefully I should be able to wrap things up soon and post my final submission by tomorrow 🤞. Until then, Happy Hackathon!
GitHub, TDC Online e Azure DevOps
Tags: github, tdc, azuredevops
Published: 2020-04-27 23:08:00

E aí, tudo certo?

Os últimos dias foram bem agitados por aqui, e estou aqui para fazer um pequeno resumo de tudo oque aconteceu aqui no canal.

20 de abril 
**Oque mudou no GitHub**
Neste vídeo, eu falo um pouco sobre novidades que ocorreram em questão de precificação, entre outras coisas. Assista o vídeo para entender melhor.

{% youtube 22z-EsiMpPY %}

22 de Abril
**Realizando testes de Integração com PowerShell e Pester**

Esta foi uma live bem bacana, onde contamos com a presença do meu amigo, e também Microsoft MVP, [Guido Oliveira](https://mvp.microsoft.com/pt-br/PublicProfile/5001325?fullName=Guido%20Basilio%20Oliveira).

Guido é um especialista em PowerShell, e contribui muito com a comunidade neste tema. Ele participou dessa live, e trouxe um conteúdo muito bom, e quem esteve conosco, gostou bastante da apresentação. Quer saber mais? Assista o vídeo:

{% youtube LWdRS3TTIf8 %}

25 de Abril
**Tech Saturday #1 | O Inicio**

Esta foi a primeira edição do Tech Saturday, um meetup online realizado pelo .Net Vale em parceria com meu canal do YouTube, e nesta edição, contamos com presenças ilustres como [Claudenir Andrade](https://mvp.microsoft.com/pt-br/PublicProfile/7863?fullName=Claudenir%20Campos%20Andrade),[Douglas Romão](https://mvp.microsoft.com/pt-br/PublicProfile/5002850?fullName=Douglas%20Romão%20) e [Renato Groffe](https://mvp.microsoft.com/pt-br/PublicProfile/5002142?fullName=Renato%20José%20Groffe). Tivemos palestras ótimas sobre inovação, Power Plataform, .Net Core e GitHub.

Assista a gravação da Live

{% youtube Lx_Z1rlL770 %}

**TDC BH Online**
Nesse mesmo dia, aconteceu o TDC BH Online, onde fiz uma apresentação sobre novidades do GitHub desde sua compra pela Microsoft.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/7xx93vnv1x2v393swbvt.jpeg)


![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/5b1i0z7wlrja447j9f52.jpeg)

27 de Abril

**Utilizando Containers no seu CI com Azure DevOps**

Já neste dia, lancei um vídeo falando sobre como você pode utilizar containers para deixar seus agentes de CI mais genéricos e práticos de gerenciar. Assista o vídeo e entenda como isso pode te ajudar.

{% youtube 0MZlzjmo7xM %}
SMS Postcards for Grandparents
Tags: twiliohackathon, serverless, aws
Published: 2020-04-28 03:06:59

[Comment]: # (All of this is placeholder text. Use this format or any other format of your choosing to best describe your project.)

[Reminder]: # (Make sure you've submitted the Twilio CodeExchange agreement: https://ahoy.twilio.com/code-exchange-community)

[Important]: # (By making a submission, you agree to the competition's terms: https://www.twilio.com/legal/twilio-dev-hackathon-terms)


## What I built

With the quarantine/lock-down in place my parents have been really missing seeing their granddaughters. I built this as a way to send them pictures in the mail with the least amount of resistance. No apps to download, no software, use any cellphone... just send a text message to a Twilio number and a postcard will be mailed the next day!

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/9zl1h8im61esq9qestqc.png)

#### Category Submission: 
COVID-19 Communications and Interesting Integrations

## Link to Code

https://github.com/mattdini/sms-postcard

## How I built it (what's the stack? did I run into issues or discover something new along the way?)

Built with: 
  * API Gateway
  * Lambdas
  * S3
  * Secrets Manager
  * Twilio!
  * https://lob.com/

Some fun things learned along the way:
  * Hangouts + Google Fi will resize images to 100x100, not great for postcards!
  * https://github.com/keithrozario/Klayers is a life saver!
List all current environment variables - Linux Tips
Tags: c, linux
Published: 2020-04-28 03:56:01

Here we introduce 2 ways to list out all current environment variables:

## 1, use `printenv` command:

```bash
$ printenv
SHELL=/bin/bash
SESSION_MANAGER=local/pop-os
COLORTERM=truecolor
...
```

## 2, write a C program to list them

Environment variables will be put in a environment table in process, and it has a pre-defined `environ` pointer points to that table. To iterate all environment variables, we just need to walk through this table via the pointer:

```c
#include <stdlib.h>
#include <stdio.h>

extern char** environ;

int main() {
    char** ep = NULL;
    for (ep=environ; *ep!=NULL; ep++) {
        puts(*ep);
    }
    return 0;
}
```
Compile and run it: `gcc main.c -o listenv`
```bash
$ ./listenv
SHELL=/bin/bash
SESSION_MANAGER=local/pop-os
COLORTERM=truecolor
...
```
5 Reasons as to why you Need a Wifi Booster
Published: 2020-04-28 07:03:30


A wifi booster is the same as the wifi range extender, which helps in boosting the wifi range of the signals to those areas or dead zones where the wifi is feeble or altogether absent. The wifi range extender is also known as a ‘repeater’ because it catches the wifi signals of the router and re-transmits it to all the areas of the house or office. It can be easily configured on mywifiext site and placed at a place where it receives good wifi signals from the wifi router.

Here we will discuss in detail below the 5 reasons as to why you need the wifi range extender.

1.	To Increase the Wifi Range
If you have a wifi router which is not giving you maximum wifi signals to all the areas of the house, then you need a wifi range extender, placed between the router and the wifi enabled device/s so that it transmits the wifi signals of the router further to the dead zones of the house or office. You can use the extender in either the extender mode or the access point mode to get great results.

2.	To Increase Speed and Connectivity
The wifi range extender not only extends the wifi signals but also improves the wifi speed and gives you a boosted internet speed with no interference in between. You can stream you HD videos with best quality and no need to wait for buffering while watching videos as well.

3.	To Act as an Access Point
When you want to boost the range of the internet in a large area like a large office, you can get a wifi range extender and configure it as an access point. Once you have successfully configured it as an access point, you can place it in the dead zones and the wifi extender, acting as an access point will give the extender wifi signals directly in the dead zones of a large office or home.

4.	To have Wifi in the Surrounding Area
When you have a big home with a nice lawn, a separate pool area, a garage, a basement or cellar, and a wonderful large play area, you really need the wifi signals to reach all those areas surrounding your house. The wifi range extender or booster, does just that for your large homes. Get a booster which is best suitable for large homes, set it up on mywifiext.net and place it at the right spot to give extender wifi range to all of these areas surrounding your house.

5.	To Have a Good Wifi Signal without Throwing Away the Old Router
If you have an old router, which is not performing at its best, and giving troubles regarding speed and connectivity, do not throw it away yet. You can get the wifi range extender and boost the wifi signals, speed and connectivity of the wifi even with the old router in place. The wifi extender will retransmit the wifi signals from your old router with its own network and give you much better results than what you would have got from a new wifi router. https://mynewextendersetup.net/
Json parse data after line 1 to 28 Column
Tags: go, json
Published: 2020-04-28 09:49:29

Step1 : Json Marshal function receive data and return data after convert into json format --------------------------------- return ok
step 2 : Apply NewDecoder on given data and it throw me error

</
           var member Member
           data ,err := json.Marshal(member)
           if err != nil{println("error", err)} println(data)
           err = json.NewDecoder(request.Body).Decode(member); if err != nil{ 
                   println("Error ", err ) // return eof
            } 
>

hOW TO RESOLVE THIS ERROR
I published two books last week and you can publish a book too!
Tags: sideprojects, books, watercooler, discuss
Published: 2020-05-09 11:01:55

---
title: I published two books last week and you can publish a book too!
published: true
description: How to publish a book using Kindle Direct Publishing
tags: sideprojects,books,watercooler,discuss
cover_image: https://i.imgur.com/798JOrt.jpg
---

Ok, so this was the plan last monday morning:

* I have a one week long holiday (at home, thanks Covid-19) with my wife working in the other room (no kids or pets around)
* I'm a programmer (they pay me to program, so I must be good)
* I want to achieve "something" by the end of the week
* I want to do something "print related"

Spoiler: **I have two books published on Amazon!**

### What?
**Yes, you got it**. I've published two books on Amazon in less than a week. More specifically two sudoku puzzle books:

* [360 sudoku puzzles](https://www.amazon.com/dp/B088B6XW6G/)
* [1200 sudoku puzzles](https://www.amazon.com/1200-Sudoku-Puzzles-intermediate-solutions/dp/B088B8MFNN/)

### Why?
I didn't want to publish just another app. I choose something you can print and touch. A book was the best choice.

### How?
If you follow me you've probably read this post: [https://dev.to/napolux/how-to-generate-pdf-from-web-pages-5781](How to generate PDFs from web pages).

So, I've used a Sudoku generator in a little PHP app to generate HTML books. Then I created the "master" PDF file for my book with [Weasyprint](https://weasyprint.org/) and a cover with [Canva.com](https://www.canva.com).

I've spent a couple of days fine-tuning my PDF and then I was ready.

The final book and cover were uploaded to the [Amazon KDP platform](https://kdp.amazon.com), et voilà, my books were ready to be printed on demand! No ebook as I said, a real book!

### You can publish a book (or an ebook) too!

**So, what's blocking you?** You can easily publish (and sell) a book in a matter of minutes. Your blog posts and tutorials, your ideas, your puzzles, your personal diary or that novel about dinosaurs that work as programmers.

**We all have something to say**. This time were Sudokus, but I'll probably publish something more in the next weeks!

### Will I make money?
I don't know and I don't care. The achievement was really what I was looking for (at least for now).

**If you have any question, just ask in the comments section!**

### My two books

* [360 sudoku puzzles](https://www.amazon.com/dp/B088B6XW6G/)
* [1200 sudoku puzzles](https://www.amazon.com/1200-Sudoku-Puzzles-intermediate-solutions/dp/B088B8MFNN/)
Kubernetes Pods vs Containers | K8s Networking Basics 💡
Tags: kubernetes, devops, tutorial, docker
Published: 2020-05-09 14:11:55

In this video I cover one part of the broader Kubernetes Networking  topic, which is container communication inside pods.

Considering Pods mostly contain only 1 main container, I start by answering the question of **why having a Pod as an abstraction over container is such an important concept in Kubernetes**.

I show **how container port mapping is a problem with hundreds of containers**, specifically how to allocate ports without getting conflicts, and **how Pods solve this port allocation problem**. 💪🏼

Using containers directly, you can only use a specific port ***once on a server***:
![Port mapping without pods](https://static.wixstatic.com/media/e7182f_98e63ddaef5c45a082d60821385fc31f~mv2.png)

The same port can be used multiple times:
![Using pods](https://static.wixstatic.com/media/e7182f_59b4214c49fa4a5498b2873b8c9de6ea~mv2.png)

In addition, I show you in which cases you would need to run **multiple containers in one pod** and how these **containers communicate**  with each other inside this pod:

![Container communication inside a pod](https://static.wixstatic.com/media/e7182f_c8d7e4fd094947989538efc8faad260b~mv2.png)

You can find the full video here:
{% youtube 5cNrTU6o3Fw %}

---------------------

####Complete Kubernetes Networking Course 🎬:####
I'm making a complete course about Kubernetes Networking, covering rest of the topics, like 
► how pods communicate with each other on the same node and across hundreds of servers?
► how does the outside world communicate with K8s cluster?
► how K8s cluster plugs into the underlying infrastructure network?
► Docker Container Networking

![Kubernetes Networking topics](https://static.wixstatic.com/media/e7182f_05ae52cbb5724ea4ab34127f583f0fc0~mv2.png)

-----------------
**Kubernetes 101** ► [Compact and easy-to-read ebook bundle 🚀](https://bit.ly/3l4qXkR) 
It's a handy way to quickly look something up or refresh your knowledge at work and use it as your cheatsheet  😎


I'm happy to connect with you on 🙂
- [Twitter](https://twitter.com/Njuchi_)
- [YouTube](https://www.youtube.com/channel/UCdngmbVKX1Tgre699-XLlUA?sub_confirmation=1)
- [Instagram](https://www.instagram.com/techworld_with_nana/)