Skip to content

Instantly share code, notes, and snippets.

View wagura-maurice's full-sized avatar
🏠
Working from home

Maurice Wagura wagura-maurice

🏠
Working from home
View GitHub Profile
@wagura-maurice
wagura-maurice / msphpsql(php 7.1).txt
Last active February 14, 2018 09:21
How to set up drivers for connecting php 7.1 to MsSQL server on Ubuntu 16.04
sudo su
add-apt-repository ppa:ondrej/php
apt-get update
apt-get -y install php7.1 mcrypt php7.1-mcrypt php-mbstring php-pear php7.1-dev php7.1-xml
sudo su
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
exit
@wagura-maurice
wagura-maurice / msphpsql(php 7.0).txt
Created February 14, 2018 09:19
How to set up drivers for connecting php 7.0 to MsSQL server on Ubuntu 16.04
sudo su
apt-get update
apt-get -y install php7.0 mcrypt php7.0-mcrypt php-mbstring php-pear php7.0-dev php7.0-xml
sudo su
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
exit
sudo apt-get update
@wagura-maurice
wagura-maurice / install_lamp_16.sh
Created April 14, 2018 09:10 — forked from ankurk91/install_lamp_ubuntu.sh
Ubuntu 16.04 - PHP development (php 7.1, MySQL 5.7, apache 2.4)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu 16.04 Dev Server
# Run like - bash install_lamp.sh
# Script should auto terminate on errors
echo -e "\e[96m Adding PPA \e[39m"
sudo add-apt-repository -y ppa:ondrej/apache2
@wagura-maurice
wagura-maurice / oh-my-zsh
Created June 11, 2018 09:54
getting and setting up oh-my-zsh
apt-get install zsh
apt-get install git-core
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
@wagura-maurice
wagura-maurice / xdm
Created June 11, 2018 09:57
XDM Download Manager in Ubuntu 16.04
sudo add-apt-repository ppa:noobslab/apps
sudo apt-get update
sudo apt-get install xdman-downloader
sudo dpkg -l xdman-downloader # confirm installed version
xdman # open
sudo dpkg -r xdman-downloader # uninstall
@wagura-maurice
wagura-maurice / firacode.sh
Last active February 9, 2019 11:18
fira code Monospaced font with programming ligatures
mkdir -p ~/.local/share/fonts
for type in Bold Light Medium Regular Retina; do wget -O ~/.local/share/fonts/FiraCode-$type.ttf "https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-$type.ttf?raw=true"; done
fc-cache -f
package myhub.reader;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import android.widget.EditText;
import android.widget.TextView;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Intent;
import android.content.IntentFilter;
@wagura-maurice
wagura-maurice / parser-helper
Last active October 11, 2018 13:56
laravel parser helper
<?php
namespace App\Helpers;
/**
* Parser Class
*
* @package Laravel
* @subpackage Libraries
* @category Parser
Prereq:
```bash
apt-get install zsh
apt-get install git-core
```
Getting zsh to work in ubuntu is weird, since `sh` does not understand the `source` command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
@wagura-maurice
wagura-maurice / ipconfig.txt
Last active December 11, 2018 07:39
How to resolve “cannot connect to network error” on windows via CMD.
First Run CMD as Admin..then.. enter the following commands.
ipconfig /flushdns
ipconfig /registerdns
ipconfig /release
ipconfig /renew
netsh winsock reset
netsh wlan show profiles
netsh wlan delete profile name={ENTER PROFILE NAME}