Skip to content

Instantly share code, notes, and snippets.

View lewisgoddard's full-sized avatar
💼
Seeking work

Lewis Goddard lewisgoddard

💼
Seeking work
View GitHub Profile
@lewisgoddard
lewisgoddard / 20-nvidia.conf
Last active May 22, 2017 17:00 — forked from yantonov/20-nvidia.conf
Fix brightness on ubuntu 14.04 lts for nvidia cards (create this file at /usr/share/X11/xorg.conf.d/20-nvidia.conf)
Section "Device"
Identifier "Default Device"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "NoLogo" "True"
Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection
@lewisgoddard
lewisgoddard / github.py
Created May 12, 2017 21:54 — forked from bilelmoussaoui/github.py
Manage your labels
import requests
from urllib.parse import urlencode
import logging
ORGANIZATION = "elementary"
logging.basicConfig(format='%(asctime)-15s %(message)s')
logger = logging.getLogger('github')
logger.setLevel(logging.INFO)
@lewisgoddard
lewisgoddard / TheTrueSizeOfAKernel.sh
Last active May 22, 2017 17:02
The size of 4.8.0-52-generic is 260 MB, including modules.
$ du -cm /lib/modules/$(uname -r) /boot/vmlinuz-$(uname -r) /boot/System.map-$(uname -r) /boot/config-$(uname -r)
26 /lib/modules/4.8.0-52-generic/extra
1 /lib/modules/4.8.0-52-generic/vdso/.build-id/be
1 /lib/modules/4.8.0-52-generic/vdso/.build-id/ac
1 /lib/modules/4.8.0-52-generic/vdso/.build-id/a1
1 /lib/modules/4.8.0-52-generic/vdso/.build-id
1 /lib/modules/4.8.0-52-generic/vdso
1 /lib/modules/4.8.0-52-generic/kernel/lib/lz4
1 /lib/modules/4.8.0-52-generic/kernel/lib/842
1 /lib/modules/4.8.0-52-generic/kernel/lib/reed_solomon
@lewisgoddard
lewisgoddard / ControlPoints.md
Last active May 22, 2017 20:07
A list of control points and their monitors.
  • Domain Names
    • Registrar: Namesilo
    • Monitoring: "Domain Names"/"Registrar"
    • Second Factor: Yes
  • DNS
    • Nameserver Pointer: "Domain Names"/"Registrar"
    • Record Control: Digital Ocean
    • Monitoring: See "HTTP"/"Monitoring"
    • Second Factor: Yes
  • SSL

Keybase proof

I hereby claim:

  • I am lewisgoddard on github.
  • I am lewisgoddard (https://keybase.io/lewisgoddard) on keybase.
  • I have a public key whose fingerprint is 8530 E1A0 B1AF B674 1A63 177A B9A9 5582 F610 8FB9

To claim this, I am signing this object:

@lewisgoddard
lewisgoddard / PHP7Plan.md
Last active August 29, 2015 14:24
Planning for PHP 7

Breaking Changes

Variables only inputs are stricter.

// Strict Standards: Only variables should be passed by reference
$last = array_pop(getArray());
$last = array_pop((getArray()));
  • Now errors on both calls.
@lewisgoddard
lewisgoddard / SourceForge Sucks.md
Last active August 29, 2015 14:22
SourceForge - Ads in downloads and refusing author access.

This is intentional. The installer does not install any spyware and clearly offers you a choice whether to install the offered software. If you need an unbundled installer, you can still download it from http://download.filezilla-project.org/

Site Admin, FileZilla Project Forum - 4th July 2013

FileZilla still uses SourceForge, but appears to no longer offer the modified downloader which attempted to install.

It appears that +SourceForge took over the control of the 'GIMP for Windows' account and is now distributing an ads-enabled installer of GIMP. They also locked out original owner of the account, Jernej Simončič, who has been building the Windows versions of GIMP for our project for years. So far they haven't replied to provide explanations. Therefore, we remind you again that GIMP only provides builds for WIndows via its official Downloads page.

cd /etc/apt/sources.list.d/
sudo nano getdeb.list
# Change "freya" to "trusty"
# Ctrl+X to exit.
# Press "y" to confirm and press enter to save.
sudo rm versable-elementary-update-trusty.list
# You should be free of errors if everything went well.
@lewisgoddard
lewisgoddard / elementaryStatement.md
Last active August 29, 2015 14:19
elementary Statement

We feel that an entire operating system that has taken years of development and refinement is worth funding. We also still understand that not everyone thinks that, or not everyone can afford to pay right now. Most importantly, we don’t want to lock out people who may not be able to afford pricey software, especially in volume. We believe that if we want to see the world of open source software grow and compete at the same level as closed source software, we should encourage users to pay for its development; otherwise it’ll be underfunded or developers will have to resort to backdoor deals and advertising. And nobody wants that future. We don’t want to lose our liberty in order to maintain a lack of a price tag.

<?php
//// IS exec() enabled
// A simple `is` script to determine if
// exec() is enabled and working.
//
// Inputs: None;
//
// Outputs:
// - $Exec_Enabled