teleren/devto huggingface dataset:
Automate your Awesome-CV with XeLaTeX and Gitlab CI
Published: 2020-07-12 22:19:50

### Gitlab CI

There are numerous tutorials and documentation to learn Gitlab CI/CD. It's enough you just google it. :p

Everyone who knows LaTeX will probably complain now because I could just use Overleaf to edit my CV in the browser. That's totally correct, but I want to use Gitlab CI to present you with a simple exercise on Gitlab Continuous Integration.

I forked the official Awesome-CV repository into my own Gitlab. Everything that builds your Awesome-CV automatically can be found in the `.gitlab-ci.yml` file.

```yml
pdf:
  image: thomasweise/texlive
  script:
    - cd examples
    - xelatex cv.tex
  artifacts:
    paths:
    - examples/cv.pdf
```

### Explanation

By adding this file into the root directory of the repository a GitLab runner will execute the defined tasks.

* `pdf` defines the name of the runner job. 

  * `image`: The runner starts the docker image that has texlive installed, labeled `thomasweise/texlive`;
  * Everything in `script` will be executed in the docker container. Just like we use XeLaTeX on our local machine;

    * The runner will switch to the `examples` folder and;
    * Execute `xelatex cv.tex`;
  * That will generate a PDF file - if no error occurred. 

    * To obtain the generated PDF file we have to define the file as an artifact. The `artifacts` can be downloaded into a zipfile or browse to `examples/cv.pdf`, if the job has finished successfully.

The jobs for my repository can be found [here](https://gitlab.com/sftom/Awesome-CV/-/jobs).

In the [README.md](https://gitlab.com/sftom/Awesome-CV/-/blob/master/README.md) the status of the pipeline is displayed and direct links to the artifacts can be found. Have a look at the official documentation for the badges.

```markdown
# My Awesome-CV

[![pipeline status](https://gitlab.com/sftom/Awesome-CV/badges/master/pipeline.svg)](https://gitlab.com/sftom/Awesome-CV/-/commits/master)

[Browse](https://gitlab.com/sftom/Awesome-CV/builds/artifacts/master/browse?job=pdf) the Artifacts or [download](https://gitlab.com/sftom/Awesome-CV/-/jobs/artifacts/master/raw/examples/cv.pdf?job=pdf) the PDF directly.

I forked from [Awesome-CV repository](https://github.com/posquit0/Awesome-CV) into my own space on GitLab.
```

[![](./readme.png)](https://gitlab.com/sftom/Awesome-CV/-/blob/master/README.md)
[![](https://dev-to-uploads.s3.amazonaws.com/i/wqxw85vdr2r74jcsmacm.png)](https://gitlab.com/sftom/Awesome-CV/-/blob/master/README.md)

If you want to build your own Awesome-CV with Gitlab CI feel free to fork [my repository](https://gitlab.com/sftom/Awesome-CV/-/tree/customizing) and start editing the files in the *customizing* branch.

Adapted by [LARS LÜHR, Blogging about coding, security and photography](https://ayeks.de/post/2018-01-25-awesome-cv-cicd/).
Awesome GitHub Profile README’s 
Tags: showdev, github, git, webdev
Published: 2020-07-12 22:19:30

Finally, the wait is over, Awesome GitHub Profile README’s is here, If anyone, who wants to showcase their GitHub profile readme, they can share it here :

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

https://github.com/abhisheknaiidu/awesome-github-profile-readme
Transpose rows to columns in Oracle SQL using Oracle PIVOT clause
Tags: transpose, sql, oracle, pivot
Published: 2020-07-12 22:00:13

In Oracle 11g *PIVOT clause* helps to convert the data from row to column. Below are the examples to convert two column table and three column table result sets to cross tab format.

This is very helpful for reporting and also queries where data has to be viewed as cross table. This is similar to excel PIVOT functionality.

**Two column PIVOT:**

**INPUT:**

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/e2w1m00eaxt9ww9r7ggm.PNG)

**SQL QUERY:**

select * from (
  select t.cstore_number, t.attr_Value,
         row_number() over (partition by cstore_number order by attr_Value) rn from STORE_ATTR t)
pivot (
  min(attr_Value) 
  for (rn) in (1 as DEALERCODE1, 2 as DEALERCODE2, 3 as DEALERCODE3, 4 as DEALERCODE4, 5 as DEALERCODE5)
);

**Output:**

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

**Three column pivot:**

**Input:**

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

**SQL query:**

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

**OUTPUT:**

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

**Summary**
Now you should be able to convert or transpose rows to columns into crosstab format by using oracle **PIVOT** clause.
Create a ✨special ✨ GitHub profile
Tags: github
Published: 2020-07-12 21:57:24




Create a repository with your profile name and a `README.md`:

![](https://dev-to-uploads.s3.amazonaws.com/i/fx47mgw9nq353tl769u3.jpg)

Then the `README.md` will be displayed on your profile page:

![](https://dev-to-uploads.s3.amazonaws.com/i/9rjkoc0dv494xpd0iy45.jpg)

Pretty cool, huh?
Laravel Sent Emails Package
Tags: laravel, emails, package
Published: 2020-07-13 09:07:40

---
title: Laravel Sent Emails Package
published: true
date: 2020-07-12 21:49:45 UTC
tags: Laravel, Emails, Package
canonical_url: https://dcblog.dev/laravel-sent-emails-package
---

 ![Laravel Sent Emails Package](https://dcblog.dev/assets/images/blog/laravel-framework/laravel-sent-emails.png) 

I've released a new package for recording and displaying sent emails from Laravel applications.

The package will store all outgoing emails into a database automatically. The package also provides a user interface to display sent emails.

[Watch a video walkthrough:](https://www.youtube.com/watch?v=Oj_OF5n4l4k&feature=youtu.be)

Check out the package [Laravel Sent Emails](https://github.com/dcblogdev/laravel-sent-emails)
Refactoring culture
Tags: refactoring, developer
Published: 2020-07-12 21:38:23

When you're doing a big refactoring into your project, there's sometimes that is better to create new things than modify the existing things. It's a good plan, because you make sure that you don't break anything.

It was a great tip from @sibelius

> I'm on a refactoring for update to latest stable Material-UI, changing forms from Redux Form to Formik and creating new layout to these forms.

Even with a complete copy of a file, just changing its name and a single line, it's easier to make incremental changes to the files that'll use your new refactored component
How to use Chrome in Guest Mode
Tags: googlechrome, guestmode
Published: 2020-07-12 21:33:56

Picture that — some body would like to look at their e mail to your own PC. Handing-over the laptop or computer with Safari could suggest accessibility to a own bookmarks, history, preferences, and much more. Maybe not one worries concerning solitude however, also a small injury could lead to shedding essential info . In order to prevent this, Google-Chrome offers visitor style. Exactly what are visitor style and is it not the same as browsing? Let us talk.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/4vy5po8da2cfgjsd76cp.png)

In the event you see very carefully, the case I gave above is to get an individual guestpost. This is really for somebody who desires your personal computer to get a momentary span. I assume you have got a concept of just what the visitor style is about. But do not assume only nevertheless, there is far more to this than meets the eye.

So, let us dive deep in the visitor manner around Chrome and learn about that.

##What’s CHROME’S GUEST MODE

Google-Chrome lets you create a number of profiles in which crucial details such as bookmarks, passwords, history, etc. are kept separate for each client. The profiles are made indefinitely therefore that you can easily switch between them. For instance, it is possible to get different work and personal tastes.

Guest style can be a distinctive circumstance of Chrome accounts to get guest or temporary clients, since its name suggests. When you begin this manner, a new window will automatically open having another icon at the task bar. On the front end, Chrome seems normal into your visitor. But should they start lugging round, they’d see some thing is off. And Chrome may possibly appear blank or straightforward for them.

##WHAT HAPPENS IN GUEST MODE

Whenever you establish the visitor mode, Chrome thinks it’s really a new user. So you’ll need to begin out of a blank slate each time. Additionally the browsing background or log details out of the preceding sessions or users won’t be available.

That’s perhaps not all. Pages the guest visits aren’t going to come from the surfing record of any Chrome profile. The truth is that in case you check on the guest style preferences, then there’s absolutely no desktop possibility.

Further, if you’ve logged into many sites within such a mode, exiting the mode closing all of tabs will delete your surfing task. Close the manner additionally deletes all temporary data including biscuits and cached documents.

You are able to say anything takes place within the visitor manner remains in this mode. However, the statement is not 100 percent true because this doesn’t stay in any way as you have experienced previously. Which means, once you near the visitor manner windows, then all your browsing history and temporary data such as cookies and cache have been deleted. So neither the guest user nor some additional user has use of this information. For more such content, Head to [TheTechFreak](https://thetechfreak.in)
Blanking out the SSH Banner
Tags: linux, ssh, nmap, port
Published: 2020-07-12 19:54:10

---
title: Blanking out the SSH Banner
published: true
description: Wanna learn how to get rid of your SSH daemon's banner text? Right this way!
tags: linux, ssh, nmap, port
//cover_image: https://i.ytimg.com/vi/nVVNyk_JMjA/hqdefault.jpg?sqp=-oaymwEZCPYBEIoBSFXyq4qpAwsIARUAAIhCGAFwAQ==&rs=AOn4CLBAvqTYC9M4mF7RwlgAW3KfSDJKYQ
---

# Blanking out the SSH Banner

New security upgrade time! 

Why would anyone do this? 

Well, if you know how service/port banners work, you'll become aware that when you fingerprint or scan a port, often the service behind it will fire back a protocol message indicating some useful information about the service itself.

I recently brought this website back online after a LONG hiatus, and in getting back into the swing of things, decided that I wanted to lock stuff down just a bit tighter than before. I asked myself "...can I alter the service banner reported by SSH when I nmap my site?"

So, I found a blog where someone did this on their RaspberryPi: 

[https://kram.nz/2018/01/hide-openssh-version-banner/](https://kram.nz/2018/01/hide-openssh-version-banner/)

This is pretty cool and nifty. A lot of ssh ports on the web still report things like:
	- What version of sshd it is
	- If it is OpenSSH or not
	- What operating system it was built for
	- etc.

So, can it be replicated outside of RaspberryPi? YES! But you must be careful...

The first time I attempted this, I almost locked myself out of SSH by overwriting one of the strings that I SHOULDN'T overwrite.

Everyone's process doing this is going to be slightly different due to varying binary addresses as to where the strings are located in the `sshd` binary itself. 

But, I've confirmed it works. 

```
me@mypc:~$ telnet mywebsite.com myport
Trying aaa.bbb.ccc.ddd...
Connected to mywebsite.com.
Escape character is '^]'.
SSH-2.0-Eat my shorts, hackers! =D XOXO
```

Not bad!!!

I'll be getting a video of both this in action AND how to wipe out the banner text yourself.

{% youtube nVVNyk_JMjA %}

If you've found this information helpful, please consider signing up for a new Vultr VPS instance using my link: [https://www.vultr.com/?ref=8632027-6G](https://www.vultr.com/?ref=8632027-6G). 

I am giving away $100 worth of VPS credits, so you can sign up and try wiping out your box's SSH banner yourself without any risk to your own boxes :) 

I hope you all have a pleasant sunday! Take it easy until next time :D
How to write the Simplest MAKE file
Tags: kernel, cpp, computerscience, c
Published: 2020-07-12 20:46:26


**How to make a MAKE file easiest possible way**

> Make 3 files hellomake.c hellofunc.c hellomake.h

    #include <hellomake.h>
    
    int main() { // call a function in another file myPrintHelloMake();
    
    return(0); }


hellofunc.c

    #include <stdio.h> #include <hellomake.h>
    
    void myPrintHelloMake(void) {
    
    printf("Hello makefiles!\n");
    
    return; }

hellomake.h

    void myPrintHelloMake(void);

**After this make a file 
vi makefile**

    CC=gcc CFLAGS=-I. DEPS = hellomake.h OBJ = hellomake.o hellofunc.o
    
    %.o: %.c $(DEPS) 
    	$(CC) -c -o $@ $< $(CFLAGS)
    
    hellomake: $(OBJ) 
    	$(CC) -o $@ $^ $(CFLAGS)

Or
	makefile as
    
	IDIR =../include
    CC=gcc
    CFLAGS=-I$(IDIR)
    
    ODIR=obj
    LDIR =../lib
    
    LIBS=-lm
    
    _DEPS = hellomake.h
    DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))
    
    _OBJ = hellomake.o hellofunc.o 
    OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
    
    
    $(ODIR)/%.o: %.c $(DEPS)
    	$(CC) -c -o $@ $< $(CFLAGS)
    
    hellomake: $(OBJ)
    	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
    
    .PHONY: clean
    
    clean:
    	rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~
Basics of Kubernetes part 01
Tags: kubernetes, docker
Published: 2020-07-12 19:55:36




Kubernetes is an open-source platform that automates container deployment, expansion, and management. Some of the modifiers are “production-ready”, “de facto”, “helmsman”, “pilot”, “Planet Scale” and so on. Kubernetes are so long that there are many typos, so they are often abbreviated as k8s.

Google, which creates billions of containers a week, started a project in 2014 based on borg, which was used as an internal distribution system.

It is not just a container platform, but a microservice, cloud platform, and serves as a container for easily containing and managing containers. Various functions such as serverless, CI/CD, and machine learning work on the Kubernetes platform.

###### Cloud support

Kubernetes has a function to automatically increase the server according to the load. It has AutoScaling and can be used as a load balancer by being assigned an IP. Kubernetes can easily extend cloud integration using the Cloud Controller. AWS, Google Cloud, Microsoft Azure, as well as dozens of cloud providers provide modules so administrators can use the same configuration file in different clouds.

###### Kubernetes has many objects

** Kubernetes defines objects for managing states as objects. It provides scalability because it provides dozens of objects by default and is very easy to add new objects. The main objects are as follows.**

###### Pod
Pod smallest unit that can be deployed in Kubernetes and has one or more containers, storage, and network properties.
learn more  [Link](https://kubernetes.io/docs/concepts/workloads/pods/pod/)

###### Service
Network-related objects. Used to connect a pod to an external network and create an internal load balancer that looks at multiple pods. It also serves as a service discovery because it registers the service name as a domain in the internal DNS.
learn more  [Link](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/)

###### ReplicaSet

An object that duplicates and manages multiple pods (one or more). To create a pod and keep its count, you must use ReplicaSet.

learn more  [Link](https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/)

###### Volume
An object related to the repository. You can use the host directory as it is, or you can create and use storage such as EBS dynamically. Virtually all popular storage methods are supported!

learn more  [Link](https://kubernetes.io/docs/concepts/storage/volumes/)


Continue .......
Self-Update your GitHub profile with RSS, Project Releases and Reddit
Tags: development, github, readme
Published: 2020-07-20 11:02:58

---
title: Self-Update your GitHub profile with RSS, Project Releases and Reddit
published: true
date: 2020-07-12 19:49:36 UTC
tags: Development, github, readme
canonical_url: https://daniele.tech/2020/07/self-update-your-github-profile-with-rss-project-releases-and-reddit/
---

Auto update your GitHub profile with info from your blog, releases and also from Reddit!

The post [Self-Update your GitHub profile with RSS, Project Releases and Reddit](https://daniele.tech/2020/07/self-update-your-github-profile-with-rss-project-releases-and-reddit/) appeared first on [Daniele Mte90 Scasciafratte](https://daniele.tech/eng).
lookcool : conabuse (RNG based fake logger)
Tags: csharp, dotnet, showdev
Published: 2020-07-12 19:49:08

One of a few programs I'm working on that create fun hacky visuals
Here's an example of the tool put to some cool music: [https://www.youtube.com/watch?v=K5_pqIHrFJM](https://www.youtube.com/watch?v=K5_pqIHrFJM)
Project: https://github.com/donnaken15/lookcool/tree/master/conabuse
Como Aprender jQuery de uma Forma Divertida!
Published: 2020-07-12 19:45:59

---
title: Como Aprender jQuery de uma Forma Divertida!
published: true
description: 
tags: 
//cover_image: https://direct_url_to_image.jpg
---
Neste post contem minha palestra sobre como aprender jQuery de uma forma divertida

https://docs.google.com/presentation/d/1-T_an-KFko5eMkqJhB7oz4GWP7NkBjyMPZY_Tu1MGOE/edit?usp=sharing
Hacker News Compose
Tags: android, kotlin, compose, beginners
Published: 2020-07-12 19:41:14

---
title: Hacker News Compose
published: true
description: Write your first Jetpack Compose app for Android.
tags: android, kotlin, compose, beginner
cover_image: https://images.unsplash.com/photo-1495020689067-958852a7765e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9
---

I recently gave a talk and live code-along session that presented an introduction to [Jetpack Compose](https://developer.android.com/jetpack/compose). The talk was aimed at introducing developers of all levels to Jetpack Compose, so that we could learn how to build a starter Android app using this new UI technology. We started with an empty Android app, and ended with a fully-functioning [Hacker News](https://news.ycombinator.com) client that fetched top stories and let users save their favorite articles.

If you're interested in Jetpack Compose, and want to get started with a high-level intro and a straightforward example app, then check out my repo on GitHub - [`hn-compose`](https://github.com/robotsquidward/hn-compose). It includes the slides from my talk, as well as a multi-part code example that walks through the process of building out our Hacker News client.

<a href="https://github.com/robotsquidward/hn-compose"><img width="1191" alt="Screen Shot 2020-07-12 at 3 28 34 PM" src="https://user-images.githubusercontent.com/10855762/87254925-67715900-c454-11ea-8378-77ec2e5eedb8.png"></a>

Check it out, and feel free to reach out to me on Twitter [@ajkueterman](https://twitter.com/ajkueterman) or leave a comment on my post in [Hacker News](https://news.ycombinator.com/item?id=23814095).

*Originally published at [AJ.dev](https://ajkueterman.dev/posts/hacker-news-jetpack-compose/)*
Where to Start Learning Version Control?
Tags: github, git
Published: 2020-07-12 19:21:42

Hi Everyone,

This is my first post as I joined this community.

As everyone want to learn Programming and don't know where to Start and what resources are going to learn first.

So I am starting first thing first what should you learn  first.

As a Programmer first thing is to learn the Version Control that will help you to develop application and find out what bugs comes in the future by creating the different versions at a time.

## Resources
Follow the Video by FreeCodeCamp

{% youtube RGOj5yH7evk %}

Video by @freecodecamp you will learn the git related commands and how to use them by demo.

Then if you want to go into deeper then follow the below lecture by a Youtube Channel named Missing Semester

{% youtube 2sjqTHE0zok %}
Elegant way to check if a Promise is pending
Tags: javascript, promise, node
Published: 2020-07-12 19:20:42

# Intro
There's no solid way to check if a `Promise` is pending or finished, at least not in Node.js, so I wrote this simple snippet back in few months ago while I was searching for a simple way. I couldn't' find anything with one line max that will check the state of a promise so I came up with this simple solution. I have posted this solution on StackOverflow too. It's nothing special just an elegant & hacky way but works flawlessly on every Node.js version from 8~14. It's not stable though and the rational solution here should be a native method inside V8's core to check if a promise is pending or not. 


# The trick
If we take the whole object of a promise and inspect it  using the `inspect` method from the native libraries of Node.js, we will get either `'Promise { <pending> }'` while pending or `'Promise { undefined }'` when finished.
Now if we check the string for the word `pending` we could define the state and check if a promise is pending or not using the following one line: `util.inspect(myPromise).includes("pending")`.

*Here's an example to get you started:*
```javascript
const util = require("util")

function sleep(ms) {
  return new Promise(resolve => setTimeout(resolve, ms));
}

(async ()=>{
  let letmesleep = sleep(13000)
  setInterval(()=>{
    console.log(util.inspect(letmesleep).includes("pending"))
  },1000)
})()
```

*Result*
```
true
true
false
false
false
```

## Support
If you liked this article please follow me on Twitter :) 
https://twitter.com/devcrafter91
Server-Side Rendering (SSR) and isomorphic-fetch for SEO
Tags: javascript, react, seo, ssr
Published: 2020-07-12 19:11:08


{% youtube 66owdRkc8pI %}

Server-Side Rendering (SSR) and isomorphic-fetch for SEO - Everything you need to know about.



#ssr #serversiderendering #seo #searchengineoptimization #isomorphicfetch #react #next.js #dynamicRendering #webcrawler #csr #firebase #webdevelopment
Django URL Link Issues and authentication
Tags: django
Published: 2020-07-12 19:08:25

I created 2 Django project e.g. Project1 and Project2
1. Under Project1 created one app user profile and created user id and password for authentication .
2. After login displaying one welcome page and there are multiples icon like Project2, project3 and Project4 etc....
3. I want to run all project on same port like local-host:8080 and running successfully.
4. But once I clicked on Project2 so error showing like Using the URLconf defined in project1.urls, Django tried these URL patterns, in this order, ofcourse because same url getting in the project1 and redirecting to project1 instead of others project.

5. How to link project2,project3 and other projects to project1 .

6. How to authenticate means single singon.

Please help me.
Customizing your webpage with cool Google Fonts
Published: 2020-07-12 18:54:25

You probably have written a couple of HTML and CSS files by now. The font applied to your text is not as appealing to your eyes and you want to play around with a couple of options till you find the right one. You're in the right place then.

Google Fonts is a rich library of fonts where you can pick from almost one thousand Font Families and even more font styles. To get started with Google Fonts, simply add this line at the top of your CSS file that you will use to style your text;
 @import url("https://fonts.googleapis.com/css?family="Family+name"&display=swap");
where "Family name" is the name of the font family you have chosen after browsing through [Google Fonts'](https://fonts.google.com/) list.

Note that whenever a font has a Family name made up of more than one word, the words are separated by a + sign.

To apply the font to your content add the "font-family" property to your selector like this:

.text{
  font-family: "Family name";
}
where "Family name" is the family name of the chosen Font.

**An important thing to note is that while writing the family name on the link at the top of the file we do not use quotation around the name but while applying it to the CSS selector, we use quotation marks.**