This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/sh | |
| #based on https://stackoverflow.com/questions/29832037/how-to-get-script-directory-in-posix-sh | |
| rreadlink() ( # Execute the function in a *subshell* to localize variables and the effect of `cd`. | |
| target=$1 fname= targetDir= CDPATH= | |
| # Try to make the execution environment as predictable as possible: | |
| # All commands below are invoked via `command`, so we must make sure that `command` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /etc/udev/rules.d/70-u2f.rules | |
| # | |
| # sudo chmod 644 /etc/udev/rules.d/70-u2f.rules | |
| # sudo udevadm control --reload | |
| # | |
| # Copyright (C) 2013-2015 Yubico AB | |
| # | |
| # This program is free software; you can redistribute it and/or modify it | |
| # under the terms of the GNU Lesser General Public License as published by | |
| # the Free Software Foundation; either version 2.1, or (at your option) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -e | |
| #### on some installations you may need to change /bin/sh above to /bin/bash | |
| # Adding the following lines, makes the pcgen script work from any directory | |
| ############################################################################ | |
| rreadlink() ( | |
| target=$1 fname= targetDir= CDPATH= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Thank you Steve, https://blog.stevegriffith.nyc/posts/titan-key-arch/ | |
| #Go to the udev rules folder | |
| cd /etc/udev/rules.d | |
| # install the Google provided UDEV rule | |
| echo 'KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="5026", TAG+="uaccess"' | sudo tee '71-titan-key.rultes' | |
| #Pull down the file from the yubikey github | |
| sudo wget https://raw.githubusercontent.com/Yubico/libu2f-host/master/70-u2f.rules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env bash | |
| # install dependencies | |
| pacman -S --noconfirm gcc binutils flex bison autoconf automake-wrapper libtool \ | |
| pkg-config gettext texinfo gdb git libunistring-devel libgc-devel \ | |
| gmp-devel libiconv-devel libffi-devel libreadline-devel intltool \ | |
| gettext-devel | |
| # optional | |
| pacman -S --noconfirm libsqlite-devel # libmysqlclient-devel libsqlite3-devel libpq-devel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env bash | |
| # install apt-cyg | |
| lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg | |
| install apt-cyg /bin | |
| rm apt-cyg | |
| # install dependencies | |
| apt-cyg install gcc-g++ binutils flex bison autoconf automake libtool \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env bash | |
| # install prerequisits | |
| sudo apt install build-essential binutils flex bison autoconf automake libtool pkg-config gettext texinfo gdb git libunistring-dev libgc-dev libgmp-dev libiconv-hook-dev libltdl-dev libffi-dev libreadline-dev | |
| # optional | |
| sudo apt install libmysqlclient-dev libsqlite3-dev libpq-dev | |
| # clone the source repo | |
| if [ ! -d ~/src ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget http://mirrors.ibiblio.org/gnu/ftp/gnu/emacs/emacs-25.1.tar.xz | |
| tar xJvfp emacs-25.1.tar.xz | |
| cd emacs-25.1/ | |
| sudo yum -y install libXpm-devel libjpeg-turbo-devel openjpeg-devel openjpeg2-devel turbojpeg-devel giflib-devel libtiff-devel gnutls-devel libxml2-devel GConf2-devel dbus-devel wxGTK-devel gtk3-devel libselinux-devel gpm-devel librsvg2-devel ImageMagick-devel | |
| ./configure | |
| make | |
| sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Base16 - Gnome Terminal color scheme install script | |
| [[ -z "$PROFILE_NAME" ]] && PROFILE_NAME="terminal.sexy" | |
| [[ -z "$PROFILE_SLUG" ]] && PROFILE_SLUG="terminal-dot-sexy" | |
| [[ -z "$DCONF" ]] && DCONF=dconf | |
| [[ -z "$UUIDGEN" ]] && UUIDGEN=uuidgen | |
| dset() { | |
| local key="$1"; shift |
NewerOlder