Skip to content

Instantly share code, notes, and snippets.

Adding a partition with free space

fdisk /dev/sda
    p  # To display the partition table
    n  # To create a new partition
    First   Sector: # type in the end of the last partition. Then take the default suggestion (start of the last block + 1 + 2048)
    Last    Sector: # Hit enter, take the default suggestion of the last block.

# after restart:
@Driste
Driste / react.md
Last active March 22, 2017 18:52
React Resources and Explanations

React Stack for a Single Page WebApp

Dependencies

  • React
  • React-Router-DOM
  • Babel
  • Redux
  • Axios
  • Webpack
  • Semantic UI
@Driste
Driste / linux_directory_struct.md
Last active January 31, 2017 21:03
The descriptions of the Linux Directory Structure

The Linux Directory Structure

Common Standard Structure

╔ /
╠════ bin -> usr/bin
╠════ sbin -> usr/sbin
╠════ etc
╠═══╤ dev
@Driste
Driste / 0_rpm.md
Last active September 20, 2017 19:42
RPM

RPM: Red-Hat Package Manager

The basic procedure to build an RPM is as follows:

  • Get the source code you are building the RPM for to build on your system.
  • Make a patch of any changes you had to make to the sources to get them to build properly.
  • Make a spec file for the package.
  • Make sure everything is in its proper place.
  • Build the package using RPM.

The Spec file

@Driste
Driste / vi_vim_tearsheet.md
Created January 26, 2017 16:08
VI and VIM shortcuts

##motions

motion description
h Count characters left
l Count characters right
^ To the first character of the line
$ To the last character of the line
f<char> To the counth character occurrence to the right. F<char> to the counth character occurrence to the left
t<char> To 1 character just before the counth character occurrence to the right
T<char> To 1 character just before the counth character occurrence to the left

Design Patterns

Design patterns can speed up the development process by providing tested, proven development paradigms. Effective software design requires considering issues that may not become visible until later in the implementation. Reusing design patterns helps to prevent subtle issues that can cause major problems and improves code readability for coders and architects familiar with the patterns.

Often, people only understand how to apply certain software design techniques to certain problems. These techniques are difficult to apply to a broader range of problems. Design patterns provide general solutions, documented in a format that doesn't require specifics tied to a particular problem.

In addition, patterns allow developers to communicate using well-known, well understood names for software interactions. Common design patterns can be improved over time, making them more robust than ad-hoc designs.

Creational

These design patterns are all about class instantiation. This pattern can be further

@Driste
Driste / vmware_cli.md
Last active January 23, 2017 13:43
VMware CLI

VMware CLI

Installing

Vix Api

chmod a+x VMware-VIX-1.15.0-2985596.x86_64.bundle
sh ./VMware-VIX-1.15.0-2985596.x86_64.bundle

Setup

@Driste
Driste / vbox_cli.md
Last active April 29, 2023 19:12
VBox CLI

VirtualBox CLI

Download

# For RHEL 7
yum install VirtualBox-5.1-5.1.14_112924_el7-1.x86_64.rpm