Skip to content

Instantly share code, notes, and snippets.

View CarlosMed's full-sized avatar
🐒
🤓💻☕️

Carlos Medina CarlosMed

🐒
🤓💻☕️
View GitHub Profile
Undoing the Last Commit
`git reset --soft HEAD~1`
@CarlosMed
CarlosMed / vim.md
Last active November 18, 2019 20:11

hjkl = left down up right

[number?] dd = delete a line also copys it to clipboard

G = move to the very bottom

gg = move to the very top

{ = go up an empty line

@CarlosMed
CarlosMed / PI-README.MD
Created July 18, 2019 05:06
Configuration for a fresh install of Raspberry Pi

raspberrypi

Configuration for a fresh install of Raspberry Pi

Pre Setup

  1. Download Raspbian Lite from the Raspberry Pi Orginization.
  2. Make sure your SD card is mounted on your computer so that we can use a tool like Etcher by Balena to flash the image onto the SD card.
  3. Once succesfully the image has been flashed using Etcher make sure you re-insert the sd card again to mount it on the computer.

Enabling Wifi and SSH on a Headless Raspberry Pi

  1. Create a wpa_supplicant.conf file to enable wifi and post it on the root boot drive.
@CarlosMed
CarlosMed / index.html
Created February 26, 2018 05:38
KQGaGX
<header>
<div class="box box1"></div>
<div class="box box2">
<h1>Lorem Ipsum</h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Odio, minima repellat alias omnis tempora quae laudantium recusandae sit eos provident!</p>
<div class="play">
<i class="fa fa-play"></i>
</div>
</div>
<div class="box box3">
@CarlosMed
CarlosMed / flightplan-html.md
Created May 11, 2016 05:18 — forked from learncodeacademy/flightplan-html.md
Deploy HTML site with Flightplan

###Prerequesites

Install flightplan globally

npm install -g flightplan

Install flightplan in your project folder

@CarlosMed
CarlosMed / gist:6b50f619f3d563bee426d41e341c301c
Created May 11, 2016 05:18 — forked from learncodeacademy/gist:5850f394342a5bfdbfa4
SSH Basics - Getting started with Linux Server Administration

###SSH into a remote machine###

ssh user@mydomain.com
#or by ip address
ssh user@192.168.1.1

exit: exit ###Install Something###

#If it's a new server, update apt-get first thing
// include gulp
var gulp = require('gulp');
// include plugins
var browserSync = require('browser-sync').create(),
sass = require('gulp-sass'),
plumber = require('gulp-plumber'),
autoprefixer = require('gulp-autoprefixer');
// Static Server + watching scss/html files
@CarlosMed
CarlosMed / Gulpfile.js
Last active September 13, 2015 21:00 — forked from 0x1ad2/Gulpfile.js
My gulpfile example for How to enhance your front-end development workflow using Gulp
/*
* 0x1ad2 base Gulp.js file
* https://twitter.com/0x1ad2
*/
/*
* Define plugins
*/
var gulp = require('gulp');
var plumber = require('gulp-plumber');