Skip to content

Instantly share code, notes, and snippets.

View p8R's full-sized avatar
🏠
Working from home

p8R

🏠
Working from home
View GitHub Profile
@sveggiani
sveggiani / instructions.md
Last active July 15, 2023 21:52
[Configure XDebug, Visual Studio Code for a Vagrant VM] #debug #vm #vscode #masscode

Configure XDebug, Visual Studio Code for a Vagrant VM

1. Assumptions

  • Project (Drupal) is served on /var/www/html in the Vagrant box
  • Local project files location: c:\Users\username\Work\projects\my-project\repo\html
  • Guest machine IP is 10.0.2.2 (if this doesn't work, run route -nee in the VM and look for the gateway address)

2. Configuration

@cprakashagr
cprakashagr / LICENCE SUBLIME TEXT
Last active June 24, 2024 20:13
Sublime Text 3 Serial key build is 3143
## Sublime Text 3 Serial key build is 3103
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
@michaelneu
michaelneu / Dockerfile
Last active October 17, 2022 05:37
docker-compose configuration for PHP with NGINX and MySQL, including sendmail, MailDev and phpmyadmin
# see https://github.com/cmaessen/docker-php-sendmail for more information
FROM php:5-fpm
RUN apt-get update && apt-get install -q -y ssmtp mailutils && rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install mysql mysqli sysvsem
RUN pecl install xdebug-2.5.5 \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
@odan
odan / xampp_php7_xdebug.md
Last active June 28, 2024 12:58
Installing Xdebug for XAMPP
@hollodotme
hollodotme / Install-php7.md
Last active August 11, 2022 06:23
Installing php7-fpm with phpredis and xdebug extension on Ubuntu 14.04

Install php7.0-fpm

# remove php5 modules
apt-get autoremove --purge php5-*
# add php-7.0 source list by [Ondřej Surý](https://github.com/oerdnj)
add-apt-repository ppa:ondrej/php
# Update index
apt-get update
# Install php7.0-fpm with needed extensions
@macbre
macbre / book.md
Last active February 22, 2024 22:40
lubimyczytac.pl "API"
$ curl 'http://lubimyczytac.pl/ksiazka/264290' -s | grep -E '<meta|<link|sBookDescriptionLong'
		<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Language" content="pl" />
		<meta name="Description" content="Poznań, początek 1924 roku. Mieszkańcami miasta wstrząsa fala brutalnych morderstw. Z rąk nieznanego sprawcy giną prostytutki. Śledztwo prowadzą komisarz Antoni Fischer oraz jego zastępca Albin Siewierski. Ten pierwszy to dystyngowany i elokwentny oficer n" />
		<meta name="Keywords" content="" />
				<meta name="google-site-verification" content="mJetwv1NM4QIfTB8l0pw3d1JeakCq5rIuiF-7rdQb3w" />
        <meta name="LC_app_ver" content="83e373cf5c21cd1216a520fdc6bf7838" />
		<meta name="all-apver" content="426076ebc703102e66f5722e4abf70b380eec15e" />
		<link rel="stylesheet" type="text/css" media="screen, print" href="http://s.lubimyczytac.pl/skins/lc/css/lc_all_skin_lc.min.css?2015100802" />
@glaucocustodio
glaucocustodio / Default.sublime-theme
Created January 5, 2015 16:30
Increase font size and row padding from Sublime Text 3's sidebar
// for the ST3 users who don't have the Default.sublime-theme file (which is actually the default configuration),
// the simplest procedure is:
// 1- Navigate to Sublime Text -> Preferences -> Browse Packages
// 2- Open the User directory
// 3- Create a file named Default.sublime-theme with the following content (modify font.size as required):
[
{
"class": "sidebar_label",
"color": [0, 0, 0],
"font.size": 16
@faisalarbain
faisalarbain / gist:9340940
Created March 4, 2014 05:48
Snippet to setup apache and VHOST for Vagrant Provisioner
# Apache
# ------
# Install
apt-get install -y apache2
# Remove /var/www default
rm -rf /var/www
# Symlink /vagrant to /var/www