Skip to content

Instantly share code, notes, and snippets.

View debugsito's full-sized avatar

Carlos Sebastian Ramos Flores debugsito

View GitHub Profile
Solution:
Open terminal
sudo gedit /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_rev_override=1 nouveau.modeset=0"
sudo update-grub
$servername = 'localhost';
$username = 'username';
$password = 'password';
$dbname = 'moodle';
$u_moodle = 'theusernameyouwant';
$hp_moodle = password_hash('thepasswordyouwant', PASSWORD_DEFAULT); ///IMPORTANT!
$name = 'first name';
$lname = 'last name';
$email = 'e@m.ail'; ///This have to be verified by you as we're inserting it directly
using System.IO;
using System.Net;
using System.Text;
var request = WebRequest.Create("https://onesignal.com/api/v1/notifications") as HttpWebRequest;
request.KeepAlive = true;
request.Method = "POST";
request.ContentType = "application/json; charset=utf-8";
<?php
function sendMessage(){
$content = array(
"en" => 'Mensaje'
);
$fields = array(
'app_id' => "a637b4c4-7a04-4f54-a168-4cdf5b2d94f7",
'include_player_ids' => array("c59b1015-3e0e-4bbe-ab6e-20187337f668","76ece62b-bcfe-468c-8a78-839aeaa8c5fa","8e0f21fa-9a5a-4ae7-a9a6-ca1f24294b86"), //estos son los token de los celulares a enviar
'data' => array("foo" => "bar"),
Switch PHP version:
From php5.6 to php7.0:
Apache:
sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart
CLI:
sudo update-alternatives --set php /usr/bin/php7.0
From php7.0 to php5.6:
Apache:
sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart
s<VirtualHost *:80>
ServerAdmin admin@optimus.local
ServerName optimus.local
ServerAlias www.optimus.local
DocumentRoot /home/debugsito/Documentos/local/optimus
<Directory "/home/debugsito/Documentos/local/optimus">
Order allow,deny
AllowOverride All
Allow from all
Require all granted
paso 1: editar el archivo /etc/default/grub
?
1
$ sudo nano /etc/default/grub
paso 2: Buscar la linea con el siguiente contenido:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
y anexarle las siguientes opciones del kernel "acpi_backlight=vendor acpi_osi=Linux"
(quedando finalmente de la siguiente forma):
?