Skip to content

Instantly share code, notes, and snippets.

View macx's full-sized avatar
🚲

David Maciejewski macx

🚲
View GitHub Profile
@macx
macx / README.md
Last active August 29, 2015 14:19
Setup Amazon Server

Login and Configuration

ssh -i ~/.ssh/your_key_rsa [email protected]
sudo bash              # Set User Admin privileges 
cd /var/www/           # Change to Doc-Root
chown -R username html # Give privileges to Doc-Roo
chgrp wheel html       # Set Apache-group
 
# Restart Apache, if needed
@macx
macx / README.md
Created June 10, 2015 07:31
Put SSH key on a remote server for authentification
@macx
macx / Flexible element floating.markdown
Created June 22, 2015 05:11
Flexible element floating

Flexible element floating

Don't write CSS for floated images for every size you need any more. Just use this approach to align your media – left or right.

A Pen by David Maciejewski on CodePen.

License.

@macx
macx / README.md
Last active October 17, 2019 12:44
git CheatSheet

git CheatSheet

Remove a file from last commit

# put files back to staging
$ git reset --soft HEAD^

# unstage the file
@macx
macx / SassMeister-input.scss
Created January 26, 2016 17:46
Generated by SassMeister.com.
// ----
// libsass (v3.3.2)
// ----
$layout-breakpoints: (
small: 480px,
medium: 600px,
large: 1024px,
xlarge: 1300px,
xxlarge: 1600px,
@macx
macx / What are you using.md
Last active January 10, 2020 16:04
These are the libraries and tools I am using.

The answer of: What are you using?

Often my students and followers ask me, what tools and libraries I am using and why. Here is a small but growing list of some of them.

Shortlink: bit.ly/what-are-you-using

General Questions My Answer
Are you using a CSS preprocessor? Yes, I'm using Sass
Isn't a CSS postprocessor better? Depends. I'm using Sass and PostCSS together
@macx
macx / IBM Bluemix Setup.md
Last active October 27, 2017 08:27
IBM BLuemix

Prequisits

Install the the following Bluemix CLI and follow the folling steps to setup and control IBM Bluemix Containers:

# Install Kubernets CLI and Shell Autocompletion
$ brew install kubectl bash-completion@2 cloudfoundry/tap/cf-cli

# Login to your bluemix account

Keybase proof

I hereby claim:

  • I am macx on github.
  • I am macx (https://keybase.io/macx) on keybase.
  • I have a public key ASCNJ8FXv09Fx6OXmNFGGsr0WnC4nuQ-Pt_Se9aM04_6vgo

To claim this, I am signing this object:

@macx
macx / README.md
Last active December 3, 2018 11:18
Sauber strukturierter Quellcode

Sauber strukturierter Quellcode

Es gibt gute Gründe, für sauber strukturierten Quellcode. Einheitliche Einrückungen durch Leerzeichen (Spaces) oder Tabs helfen der Übersichtlichkeit, der Fehlersuche und der schnelleren Navigation. Man kann ihn also besser lesen und schneller verstehen. Anbei ein paar gute und schlechte Beispiele.

HTML

Schlechtes Beispiel