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 / AbTrans.md
Last active August 29, 2015 13:58
Abbreviated Transcript of Get Involved with elementary OS Video: youtu.be/w1wea4wpkN4

Note: Things are not quotes unless in quotation marks.

Granite Popovers

Moving away from Granite Popovers to GTK Popovers (should be used for new apps).
Wingpanel is not being changed just yet as the popovers are a major part of it and it is a lot of work for the gain.

// TODO Name

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

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 / 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.

@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 / 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

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_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 &&
@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)