Skip to content

Instantly share code, notes, and snippets.

View StephenRadachy's full-sized avatar
😂

Stephen Radachy StephenRadachy

😂
View GitHub Profile
@StephenRadachy
StephenRadachy / FF31_Newtab_Fix.css
Last active November 27, 2015 15:11
Firefox 31 New Tab Page Fix
@-moz-document url(about:newtab)
{
/* Fix cell sizing. Note: you may need to play around with the values for different numbers of rows and columns */
/* Currently it works for 3 rows x 4 columns */
.newtab-cell { width: 19% !important; height: 25% !important; }
/* Fix grid sizing */
#newtab-grid { max-height: 100vh !important; max-width: none !important; overflow: hidden !important; margin: 50%; }
/* Hide unnecessary elements */
#newtab-search-container, #newtab-search-logo, #newtab-margin-top, #newtab-margin-bottom, #newtab-intro-what, .newtab-side-margin, #newtab-customize-button, .newtab-undo-container { display:none !important; }
}
# Signal - A Beautifully Simple Conky Theme
# Author: Stephen J Radachy (sjradach@GitHub)
# Date: July 26th, 2014
# Intended Resolution: 1366x768
# Fonts Used
# Glober Thin Free: http://www.fontsquirrel.com/fonts/glober
# Quicksand Light: http://www.fontsquirrel.com/fonts/quicksand
@StephenRadachy
StephenRadachy / .bashrc.elementary.append
Created July 26, 2014 22:05
Elementary Bash Shell Config
if [ "$color_prompt" = yes ]; then
PS1="\[\033[0;105m\][elementary]\[\033[0m\] "
PS1='\[\033[1;105m\]\[\033[1;37m\][elementary]\[\033[0m\] '
else
PS1='[elementary] '
fi
# sets terminal window name
getdate=$(date '+%r')
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("reddit.com") {
/* FYI this style is, more or less, a port of the Stilig Style
* for 4chan (https://github.com/RiDeag/Stilig). This userstyle
* is also based on the userstyle for reddit by falac
* (https://github.com/phallus/user-styles/tree/master/styles-clean).
* If you like this userstyle, Go check them out! ;)
*/
@-moz-document url(about:newtab)
{
/* Fix cell sizing. Note: you may need to play around with the values for different numbers of rows and columns */
/* Currently it works for 3 rows x 4 columns */
.newtab-cell { width: 19% !important; height: 25% !important; }
/* Fix grid sizing */
#newtab-grid { max-height: none !important; max-width: none !important; overflow: auto !important; margin: 50%; }
/* Hide unnecessary elements */
#newtab-search-container, #newtab-search-logo, #newtab-margin-top, #newtab-margin-bottom, #newtab-intro-what, .newtab-side-margin, #newtab-customize-button, .newtab-undo-container { display:none !important; }
}
@StephenRadachy
StephenRadachy / facebook2.css
Created January 1, 2015 16:17
Facebook 2.0
@-moz-document domain("facebook.com"){
#pagesNav, #appsNav, #listsNav, #groupsNav, #interestsNav, #developerNav, #eventsNav, #pagelet_sidebar {
display: none;
}
}
@StephenRadachy
StephenRadachy / gist:1cc451d1745792f0dd22
Created January 19, 2015 09:15
Go go gadget Grails
# Install JDK
curl -s get.gvmtool.net | bash
echo y | gvm install grails
# cd to code folder
grails create-app <name>
grails run-app
@StephenRadachy
StephenRadachy / homedir.nginx
Last active August 29, 2015 14:16
Serving from home directories with Nginx + PHP5-fpm
# Serving from home directories
# With Nginx + PHP5-fpm
#
# NOTE: The order of these blocks CANNOT be changed
#
# Stephen J Radachy <sjradach@mtu.edu>
# Enable PHP within home directories
location ~ ^/~(.+?)(/.*\.php)$ {
alias /home/$1/public_html;
@StephenRadachy
StephenRadachy / upgrade.sh
Last active August 29, 2015 14:25
Digital Ocean User Script to update everything apt
#!/bin/bash
apt-get -y update
apt-get -y upgrade
apt-get -y dist-upgrade
shutdown -r 0
#!/bin/bash
apt-get -y update
apt-get -y upgrade
apt-get -y dist-upgrade
apt-get -y install git nginx nodejs npm
npm install -g bower
npm install -g pm2
mkdir -p /etc/nginx/ssl
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 4096
shutdown -r 0