Skip to content

Instantly share code, notes, and snippets.

View HopperMCS's full-sized avatar

G. F. Hopper HopperMCS

View GitHub Profile
RU443088
@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
@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 '))
git clone https://github.com/Christoffen-Corporation/logo-generator.git;
cd logo-generator;
make && make install;
@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
@HopperMCS
HopperMCS / timing1.out
Created December 27, 2015 02:54
timing1.out for the Pi
0.706714 1
0.052183 1
0.052155 1
0.051977 1
0.052146 1
0.052195 1
0.052225 1
0.052250 1
0.052463 1
0.052457 1
@HopperMCS
HopperMCS / script.out
Created December 27, 2015 02:53
script.out for Pi
Script started on Tue 15 Dec 2015 04:39:21 PM EST
Welcome to CHRISTOFFEN CORPORATION (TM) Termlink
> sudo apt-get update
[sudo] password for mgage:
0% [Working]
Hit http://us.archive.ubuntu.com wily InRelease
@HopperMCS
HopperMCS / timing.out
Created December 27, 2015 02:51
timing.out for use on Pi
0.606945 1
0.054686 1
0.052334 1
0.052482 1
0.052559 1
0.052398 1
0.052556 1
0.052465 1
0.052295 1
0.052429 1
@HopperMCS
HopperMCS / testingops.c
Last active December 19, 2015 03:15
export $user="elijah"
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
int
main (int argc, char *argv[])
{
printf("The Christoffen Corporation Logo Generator\n");
@HopperMCS
HopperMCS / main.c
Last active December 18, 2015 22:26
./lgm >> logs.txt
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
int
main (int argc, char *argv[])
{
printf("The Christoffen Corporation Logo Generator\n");