Skip to content

Instantly share code, notes, and snippets.

View jeremyfuksa's full-sized avatar
🏠
Working from home

Jeremy Fuksa jeremyfuksa

🏠
Working from home
View GitHub Profile
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="spaceship"
SPACESHIP_PROMPT_ADD_NEWLINE="true"
SPACESHIP_CHAR_SYMBOL=" ➜ "
SPACESHIP_CHAR_PREFIX="\ue709"
SPACESHIP_CHAR_SUFFIX=(" ")
SPACESHIP_CHAR_COLOR_SUCCESS="green"
SPACESHIP_PROMPT_DEFAULT_PREFIX="$USER"
SPACESHIP_PROMPT_FIRST_PREFIX_SHOW="true"
@jeremyfuksa
jeremyfuksa / rpi-init.sh
Last active January 11, 2024 18:03
Raspberry Pi init
#!/bin/bash
# Clone the Git repository
git clone https://github.com/jeremyfuksa/standard-pi-setup.git
# Navigate into the cloned directory
cd standard-pi-setup || exit 1
# Run the install.sh script with Bash
bash install.sh
https://v.firebog.net/hosts/lists.php?type=tick
https://raw.githubusercontent.com/chadmayfield/my-pihole-blocklists/master/lists/pi_blocklist_porn_top1m.list
@jeremyfuksa
jeremyfuksa / .zprofile
Last active January 11, 2024 17:09
Raspberry Pi Dynamic MOTD
#!/bin/bash
# Uptime
let upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)"
let secs=$((${upSeconds}%60))
let mins=$((${upSeconds}/60%60))
let hours=$((${upSeconds}/3600%24))
let days=$((${upSeconds}/86400))
UPTIME=`printf "%d days, %02dh%02dm%02ds" "$days" "$hours" "$mins" "$secs"`

Oh my zsh: The Jeremy Fuksa Way

Install and enable plugins

  • sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enable plugins

git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
function thisYear() {
var d = new Date();
var y = d.getFullYear();
return y;
}
@jeremyfuksa
jeremyfuksa / social-meta.html
Created October 8, 2014 19:14
Fully social HTML metadata
<title> </title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content=" ">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="twitter:card" content="summary">
<meta name="twitter:url" content=" ">
<meta name="twitter:title" content=" ">
<meta name="twitter:description" content=" ">
<meta name="twitter:image" content=" ">
@jeremyfuksa
jeremyfuksa / _embed-responsively.scss
Created October 8, 2014 18:04
SASS import for embedding videos the embedresponsively.com way.
.embed-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
max-width: 100%;
height: auto;
iframe,
object,
embed {
@jeremyfuksa
jeremyfuksa / gulpandgo.sh
Last active August 29, 2015 14:07
Gulp plugin setup.
#! /bin/bash
sudo yo gulp-webapp
bower install --save-dev bootstrap-sass-official font-awesome bourbon
sudo npm install --save-dev gulp gulp-load-plugins browser-sync gulp-ruby-sass gulp-autoprefixer del gulp-csso gulp-rename gulp-uncss gulp-uglify gulp-imagemin imagemin-pngcrush gulp-jshint beepbeep gulp-util gulp-plumber
@jeremyfuksa
jeremyfuksa / gulpfile.js
Last active August 29, 2015 14:07
My standard gulpfile.
'use strict';
var gulp = require('gulp'),
$ = require('gulp-load-plugins')(),
beep = require('beepbeep'),
gutil = require('gulp-util'),
browserSync = require('browser-sync'),
reload = browserSync.reload;
var paths = {