Skip to content

Instantly share code, notes, and snippets.

View rescenic's full-sized avatar
🌏
DevOps Engineer

Muhammad Ridwan Hakim rescenic

🌏
DevOps Engineer
View GitHub Profile

TLDR: RSVP at https://www.meetup.com/Docker-London/events/234774339/, make sure you have a Docker Hub account, and bring your laptop fully charged with Docker set-up. See below for some further instructions and details.

Create a Docker Hub account here at https://hub.docker.com. You will need a Docker Hub account to access the course materials.

Set-up Docker on your laptop (you will need to bring your computer): Linux users: we need you to install Docker Engine and Docker compose. Make sure you have Docker compose version 1.6 or higher by running docker-compose version from the command prompt. Mac users: install Docker for Mac or if you have an older Mac, Docker Toolbox.

Windows users: if you have Windows 10 pro install Docker for Windows, otherwise install Docker Toolbox. If you want to try the new Windows containers, go through the setup steps in the Windows Container lab. It is essential to run this command in Powershell before coming to the event:

@unsafe9
unsafe9 / wsl-ssh-install.sh
Last active April 21, 2020 04:18
wsl-ssh
sudo apt update
sudo apt upgrade
sudo apt-get purge openssh-server
sudo apt-get install openssh-server
sudo service ssh start
@snallami
snallami / configuire.cmd
Created June 17, 2014 01:13
Reconfigure cygwin
rem This script reconfigures the Cygwin sshd service.
rem It regenerates the computer's host keys. This is necessary
rem when Sysprep is run and a new SID is generated.
@echo off
echo Stopping the Cygwin sshd service...
net stop sshd
echo ERRORLEVEL: %ERRORLEVEL%
@automatelife
automatelife / CygwinSSH.md
Created July 31, 2015 12:13
Cygwin and SSH

Cygwin and SSH setup

Instructions on setting up cywin to work with ssh.

Why?

The git bash terminal is hard to work with. Having the ability to setup and configure cygwin binaries on other terminals is very helpful for development purposes.

Instructions

  • Navigate to C:\cygwin64\home\
@symmetryninja
symmetryninja / mywsl.md
Last active July 27, 2020 12:56
A basic howto for of the WSL setup I have now that I have no Apple products.

Setting up WSL v2 to do some linux on windows

This is a constant work in progress.

Why Windows with WSL

Because I became so accustom to having bash behind my VSCode app to run linux-like commands on my MacBookPro and now that I don't have or want another MacBook variant, I want to be able to have a linux-like command system behind visual studio code.

Why not just use linux? Because I use a lot of apps that don't run on linux.

@keshara
keshara / CentOS Static IP
Last active April 24, 2021 02:08
Static IP Configuration on CentOS 6.5
The reason I wanted to share this post is configuring static IP on CentOS seems to trouble many centos users. Probably, when you configure static IP, network may not work as you expected, sometimes no internet access, sometimes no IP address on eth0 etc..
First, "watch-out whether it is a CentOS Desktop version or Server version".? because they are runs at different run-levels, where;
- Desktop ver runs on run-level 5
- Server ver runs on run-level 3
Second, watch-out the configuration on
$ vi /etc/sysconfig/network-scripts/ifcfg-eth0
@bhaveshdaswani93
bhaveshdaswani93 / .htaccess
Created December 21, 2020 05:42 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@bhaveshdaswani93
bhaveshdaswani93 / oop_classes.js
Created December 22, 2019 06:00
Understanding classes in javascript
class Person
{
constructor(first_name,last_name) {
this.first_name = first_name;
this.last_name = last_name;
}
getFullName() {
return `Full Name is: ${this.first_name} ${this.last_name}`;
}
}
@cdhunt
cdhunt / cdhunt.format.ps1xml
Created April 8, 2021 13:13
Combing FileSystemTypes formats from Powershell-Humanizer and Termincal-Icons
<?xml version="1.0" encoding="utf-8" ?>
<!-- Based on the format.ps1xml file from DirColors
https://github.com/DHowett/DirColors -->
<Configuration>
<SelectionSets>
<SelectionSet>
<Name>FileSystemTypes</Name>
<Types>
<TypeName>System.IO.DirectoryInfo</TypeName>