Skip to content

Instantly share code, notes, and snippets.

View HopperMCS's full-sized avatar

G. F. Hopper HopperMCS

View GitHub Profile
@HopperMCS
HopperMCS / script1.out
Created December 27, 2015 02:55
script.out for Pi
Script started on Tue 15 Dec 2015 04:50:57 PM EST
Welcome to CHRISTOFFEN CORPORATION (TM) Termlink
> sudo add-apt-repository ppa:obsproject/obs-studio
[sudo] password for mgage:
Latest stable release of OBS Studio
More info: https://launchpad.net/~obsproject/+archive/ubuntu/obs-studio
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmp45_hj9bs/secring.gpg' created
gpg: keyring `/tmp/tmp45_hj9bs/pubring.gpg' created
git clone https://github.com/Christoffen-Corporation/logo-generator.git;
cd logo-generator;
make && make install;
@HopperMCS
HopperMCS / bmi.py
Last active September 19, 2016 22:51
Gage's Python2 BMI Calculator
"""
This is a BMI calculator written in Python by me (MGage Morgan). The design is minimal atm, but will improve as I get further.
The BMI formula to use: weight / height^2 x 703
We use a float() wrapped around a raw_input() for 'weight' and 'height'. We do this to prevent Python from thinking we're trying to
use strings instead of numbers when actually we are not.
"""
weight = float(raw_input('Enter your weight:\n '))
height = float(raw_input('Enter your height:\n '))
@HopperMCS
HopperMCS / subpixel-rendering.sh
Created November 4, 2016 21:17
Silk-smooth fonts for Fedora
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install freetype-freeworld
gsettings "set" "org.gnome.settings-daemon.plugins.xsettings" "hinting" "slight"
gsettings "set" "org.gnome.settings-daemon.plugins.xsettings" "antialiasing" "rgba"
echo "Xft.lcdfilter: lcddefault" > ~/.Xresources
RU443088
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.20.0 -->
<interface>
<requires lib="gtk+" version="3.20"/>
<object class="GtkAssistant">
<property name="can_focus">False</property>
<property name="use_header_bar">1</property>
<signal name="apply" handler="next" swapped="no"/>
<child>
<object class="GtkBox">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css" integrity="sha384-AysaV+vQoT3kOAXZkl02PThvDr8HYKPZhNT5h/CXfBThSRXQ6jW5DO2ekP5ViFdi" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/js/bootstrap.min.js" integrity="sha384-BLiI7JTZm+JWlgKa0M0kGRpJbF2J8q+qreVrKBC47e3K6BW78kGLrCkeRX6I9RoK" crossorigin="anonymous"></script>
<link rel="stylesheet" href="styles.css">
<div class="container jumbotron">
<h1 class="display-3">Hello, world!</h1>
<p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
<hr class="my-2">
<p>It uses utility classes for typography and spacing to space content out within the larger container.</p>
<p class="lead">
.jumbotron
.jumbotron
@HopperMCS
HopperMCS / cairo_colors.py
Last active February 24, 2017 19:21
For converting between RGB and Cairo's fucked up version of it
def toCairo():
print " Enter the R value to be converted.\n";
r_one = float(raw_input(" >> "));
print "\n"
print " Enter the G value to be converted.\n";
g_one = float(raw_input(" >> "));
print "\n"
print " Enter the B value to be converted.\n";