Skip to content

Instantly share code, notes, and snippets.

View nexxos's full-sized avatar

Oliver Schafeld nexxos

View GitHub Profile
@nexxos
nexxos / github-dalek-test
Last active August 29, 2015 14:05
Dalek script for Tutsplus article, adapted for changed Github frontpage. Article: https://code.tutsplus.com/tutorials/google-chrome-hegemony--cms-21478
var url = 'https://github.com/';
module.exports = {
'should perform search in GitHub': function (test) {
test
.open(url)
// .type('#js-command-bar-field', 'dalek')
.type('body > div.wrapper > div.header.header-logged-out > div > div.site-search.js-site-search > form > input[type="text"]', 'dalek')
// .submit('#top_search_form')
.submit('.js-site-search-form')
.assert.text('.repolist h3 a', 'dalekjs/dalek', 'There is a link with label dalekjs')
@nexxos
nexxos / Windows CLI equivalents to Linux or Mac OSX
Created December 18, 2013 10:13
Notes for Windows CLI equivalents to Linux and/or Mac OSX. First line is Linux/OSX, second line Windows. (File extensions used for legibility / analogy's sake.)
# Create new file:
touch newfile.txt
type nul >> newfile.txt
# Open file (from current directory) in default application:
open newfile.txt
@nexxos
nexxos / dabblet.css
Created October 25, 2013 11:21
Login form
/**
* Login form
*/
/* Inspired by : http://dribbble.com/shots/307980-Ticket
* Found here: http://medleyweb.com/resources/css-form-examples-tools-and-solutions/
* On CodePen: http://codepen.io/nexxos/pen/FoDbx
*/
* {
box-sizing:border-box;
@nexxos
nexxos / Tips & Tools for Frontend Web Developers
Last active December 25, 2015 20:49
Collection of links to tools and tricks for frontend web developers.
### Manuals, Specs and Documentation
# DevDocs
http://devdocs.io/
# Best Practices
http://bp.sapient-lab.com/
## Focus on forms (in ascending specificity)
@nexxos
nexxos / RWD Cheat Sheet
Last active December 25, 2015 12:29
Cheat sheet for responsive web design / media queries.
<!DOCTYPE HTML>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
<title>test</title>
<style type="text/css">
h1 {
text-align:center;
}
@nexxos
nexxos / ARIA Accessibility cheatsheet
Created October 2, 2013 09:05
Simple HTML5 boilerplate serving as WAI-ARIA / accessibility cheatsheet.
<!doctype html>
<html>
<head>
<title>Document title</title>
<meta charset='utf-8'>
<meta name='description' content='Description of document content'>
</head>
<body>
@nexxos
nexxos / Linux, SSH, Bash Scratchpad
Last active December 21, 2015 07:09
Notes on and cheat sheet for SSH, Linus, Bash...
# Find files named aida.pdf, aida.png, etc. anywhere
find ~/* -name "aida*"
# More on find
# http://www.codecoffee.com/tipsforlinux/articles/21.html
# Show size of subdirectories, total
# disk usage (estimated) | sorted by numerical value
@nexxos
nexxos / git mit 1&1
Last active May 15, 2017 20:38
Git beim Provider 1&1 nutzen. Erforderlich ist ein entsprechendes Paket, das git und ssh bietet. (Vorläufige Fassung)
# Haupt-FTP Passwort ist gleichzeitig SSH Passwort
# per SSH anmelden:
ssh username@mydomain.com
mkdir repo
cd repo
git init --bare my_repo.git
# Repo auf dem lokalen Rechner klonen:
@nexxos
nexxos / Special Characters
Last active December 20, 2015 20:39
Collection of special characters.
☼ ☀ ☉ ☽ ☾ ☁ ☂ ☔ ☃ ★ ☆ ✩ ✭ ✮ ✯ ☞ ☜ ✌ ☹ ☺ ✆ ☠ ⚠
⚡ ♩ ♪ ♫ ♬ ☕ ⌚ ⌛ ✎ ∀ ∃ ∅ √ ∫ ∩ ∪ ∨ ∧ ∡ ∞ ℃ ™ ⌘ ⌫ ⌥ ⏎ ␛ 𝄞
┌───┬───┐
| | │
├───┼───┤
│ │ │
└───┴───┘
@nexxos
nexxos / Encryption via Terminal
Last active December 20, 2015 20:39
Decrypting/encrypting files via command line (Mac/Linux).
# Command line crypting text files (Mac/Linux).
# Encrypting:
openssl aes-256-cbc -a -salt -in text_original.txt -out text_encrypted.txt
# Decrypting:
openssl aes-256-cbc -d -a -in text_encrypted.txt -out text_decrypted.txt