Skip to content

Instantly share code, notes, and snippets.

@misuchiru03
misuchiru03 / plex-install.sh
Last active May 1, 2020 17:04
Plex Media Server installer for Void Linux
#!/bin/sh
if [ $(id -u) -ne 0 ]; then
echo "You must be root to run this."
exit 0
fi
missing=0
for pkg in wget curl rsync ar; do
echo -n "Checking for $pkg..."
@wschenk
wschenk / navbar.js
Created November 29, 2017 19:52
create-react-app material-ui navbar example
import React, {Component} from 'react'
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import AppBar from 'material-ui/AppBar';
import Toolbar from 'material-ui/Toolbar';
import Typography from 'material-ui/Typography';
import IconButton from 'material-ui/IconButton';
import MenuIcon from 'material-ui-icons/Menu';
import AccountCircle from 'material-ui-icons/AccountCircle';
@jacobmllr95
jacobmllr95 / imagick3.4.3-PHP7.1-forge.sh
Last active November 28, 2019 01:43 — forked from pascalbaljet/imagick-3.4.0-PHP7-forge.sh
Install Imagick 3.4.3 on PHP 7.1 server (Laravel Forge)
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
apt-get install pkg-config libmagickwand-dev -y
cd /tmp
wget https://pecl.php.net/get/imagick-3.4.3.tgz
tar xvzf imagick-3.4.3.tgz
@oubiwann
oubiwann / appify.sh
Last active April 29, 2023 10:32 — forked from advorak/appify.sh
appify — create the simplest possible Mac app from a shell script (adds an application icon)
#!/usr/bin/env bash
VERSION=4.0.1
SCRIPT=`basename "$0"`
APPNAME="My App"
APPICONS="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericApplicationIcon.icns"
OSX_VERSION=`sw_vers -productVersion`
PWD=`pwd`
function usage {
@dahjelle
dahjelle / pre-commit.sh
Created July 13, 2016 16:48
Pre-commit hook for eslint, linting *only* staged changes.
#!/bin/bash
for file in $(git diff --cached --name-only | grep -E '\.(js|jsx)$')
do
git show ":$file" | node_modules/.bin/eslint --stdin --stdin-filename "$file" # we only want to lint the staged changes, not any un-staged changes
if [ $? -ne 0 ]; then
echo "ESLint failed on staged file '$file'. Please check your code and try again. You can run ESLint manually via npm run eslint."
exit 1 # exit with failure status
fi
done
@renshuki
renshuki / ubuntu_agnoster_install.md
Last active June 30, 2023 09:45
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH

@GwendolenLynch
GwendolenLynch / Bolt Foundation 5 Breadcrumbs
Created February 28, 2015 16:29
Bolt Foundation 5 Breadcrumbs
{% set route = app.request.get('_route') %}
{% set routeparams = app.request.get('_route_params') %}
<div class="row">
<ul class="breadcrumbs hide-for-small">
{% if route == 'homepage' %}
<li class="current"><a href="{{ paths.root }}">Home</a></li>
{% else %}
cordova plugin add https://github.com/brodysoft/Cordova-SQLitePlugin.git
<?php
/**
* Rewrite Mage_Catalog_Model_Resource_Url class
*
* @category Lyonscg
* @package Lyonscg_Catalog
* @author Vladimir Kosenok vkosenok@lyonscg.com
* @copyright Copyright (c) 2012 Lyons Consulting Group (www.lyonscg.com)
*/