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 / 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
@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 / 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 / install_flash_for_midori.sh
Last active February 19, 2017 19:02
This one single method will work in both 64bit and 32bit systems by using the 32bit flash natively, or emulating it. Either way, it uses nspluginwrapper, which will pull in a lot of libraries (packages), but most of them should be quite small. You can download and execute this file or just copy and paste the whole block into your terminal, then …
clear &&
echo 'Installing Flash for Midori' &&
read -p 'Press Enter to continue, or abort by pressing CTRL+C' nothing &&
mkdir -p ~/.mozilla/plugins &&
wget https://fpdownload.adobe.com/get/flashplayer/pdc/11.2.202.626/install_flash_player_11_linux.i386.tar.gz &&
tar -zxvf install_flash_player_11_linux.i386.tar.gz libflashplayer.so &&
rm install_flash_player_11_linux.i386.tar.gz &&
if [ $(getconf LONG_BIT) = '64' ]
then
mv libflashplayer.so ~/.mozilla/plugins/libflashplayer.32.so &&

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 / Install_Spotify_Preview_in_Linux.sh
Last active May 18, 2016 11:12
Install Spotify Preview in Linux
# Commands from https://www.spotify.com/uk/download/linux/
# 1. Add the Spotify repository signing key to be able to verify downloaded packages
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886 &&
# 2. Add the Spotify repository
sudo apt-add-repository "deb http://repository.spotify.com stable non-free" &&
# 3. Update list of available packages
sudo apt-get update &&
# 4. Install Spotify
sudo apt-get install -y spotify-client
@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.