Skip to content

Instantly share code, notes, and snippets.

View abrahaobittar's full-sized avatar
💭
I may be slow to respond.

Abrahão abrahaobittar

💭
I may be slow to respond.
View GitHub Profile
@abrahaobittar
abrahaobittar / grub_install.sh
Created November 1, 2022 15:00
EFI grub-installation
#!/bin/bash
if [ "$UID" -ne 0 ]; then
echo "Execute esse script como sudo"
exit 1
fi
apt update
apt install grub-efi-amd64-bin -y
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot/efi
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
version: "3"
services:
phpdebug:
build:
context: .
dockerfile: ./Dockerfile
image: phpxdebug
container_name: php8
restart: always
ports:
@abrahaobittar
abrahaobittar / Dockerfile
Last active April 30, 2021 14:18
Dockerfile php8-apache
FROM php:8.0-apache
# Habilitando o modo de reescrita do Apache
RUN a2enmod rewrite
#instalacao composer
RUN apt-get update && apt-get install curl \
&& curl -sS https://getcomposer.org/installer | php \
&& chmod +x composer.phar && mv composer.phar /usr/local/bin/composer
# Install x-related to compile x11vnc from source code.
sudo apt-get update
sudo apt-get install -y libxtst-dev libssl-dev libjpeg-dev
# Grep source code.
wget http://x11vnc.sourceforge.net/dev/x11vnc-0.9.14-dev.tar.gz
gzip -dc x11vnc-0.9.14-dev.tar.gz | tar -xvf -
cd x11vnc-0.9.14/
./configure --prefix=/usr/local CFLAGS='-g -O2 -fno-stack-protector -Wall'