Skip to content

Instantly share code, notes, and snippets.

View jeffmcneill's full-sized avatar

Jeff McNeill jeffmcneill

View GitHub Profile
@diogoca
diogoca / update.sh
Created June 13, 2016 15:07
How to install Apache 2.4 and PHP 5.6 on Amazon Linux
# AWS EC2
# Remove Apache and PHP old version
# Install Apache 2.4, Mod_SSL and PHP 5.6
#
sudo service httpd stop
sudo yum erase httpd httpd-tools apr apr-util
sudo yum remove php-*
sudo yum install php56
sudo yum install php56-xml php56-xmlrpc php56-soap php56-gd php56-mbstring
sudo yum install php56-mysqlnd
@lifeisfoo
lifeisfoo / dokuwiki ubuntu 16.04
Last active July 10, 2021 14:32
10 steps - a simple guide to setup dokuwiki on nginx and ubuntu 16.04 (even on AWS EC2)
# 1. update apt
apt-get update
# 2. install nginx and php (source https://forum.dokuwiki.org/post/52724;?unb855sess=af28c8160e97b05e634124aa83451119)
apt-get install nginx php php-fpm php7.0-xml
# 3. download dokuwiki
curl https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz -o dokuwiki.tgz
tar xvf dokuwiki.tgz
dokuwiki-2017-02-19e /var/www/dokuwiki
@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active May 7, 2024 08:28
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@hakerdefo
hakerdefo / sources.list
Last active October 12, 2023 09:08
Debian Testing complete sources.list
deb https://ftp.debian.org/debian/ testing contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ testing contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ testing-updates contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ testing-updates contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ testing-proposed-updates contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ testing-proposed-updates contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ testing-backports contrib main non-free non-free-firmware