Skip to content

Instantly share code, notes, and snippets.

View armohamm's full-sized avatar

Abdul Rahiman armohamm

  • Bengaluru, India
View GitHub Profile

Install Microsoft Office 2010 on Ubuntu

Requirements

We'll install MSOffice using the PlayOnLinux wizard. Additionally, MSOffice requires samba and winbind to properly work.

So, if not installed, install them:

sudo apt-get install playonlinux samba winbind
@armohamm
armohamm / Jenkinsfile
Created October 14, 2019 22:49 — forked from qzm/Jenkinsfile
Vue.js / Jenkinsfile /Pipelines
pipeline {
agent {
docker {
image 'node'
}
}
stages {
stage('Clone Sources') {
steps {
describe("Calculator", function() {
var calculator;
beforeEach(function() {
calculator = new Calculator();
});
it("should have an add method", function() {
expect(calculator.add).toBeDefined()
});
});
class Calculator {
// This is an empty class
}
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'EC2 Postgres and EC2 Redis deployments for Yelb backends'
Parameters:
KeyName:
Description: Name of an existing EC2 KeyPair to enable SSH access to the instance
(where applicable)
Type: AWS::EC2::KeyPair::KeyName
ConstraintDescription: Can contain only ASCII characters.
InstanceType:
@armohamm
armohamm / VPC Cloudformation.yml
Created February 11, 2020 20:00 — forked from DavidJFelix/VPC Cloudformation.yml
How I setup my VPC
AWSTemplateFormatVersion: '2010-09-09'
Metadata:
License: Apache-2.0
Parameters:
CidrBlocks:
Description: FIXME Remove. The CIDR blocks to use for the subnets in the services VPC.
Default: '10.0.0.0/24,10.0.1.0/24,10.0.2.0/24,10.0.3.0/24,10.0.4.0/24,10.0.5.0/24'
Type: CommaDelimitedList
@armohamm
armohamm / install_LAMP.sh
Created February 11, 2020 20:03 — forked from GShwartz/install_LAMP.sh
Auto basic LAMP installation for Ubuntu 18.04 (Apache2, MySql, PHP7.3)
#!/bin/bash
######################################################
# AUTO LAMP INSTALLATION #
# Written by Gil Shwartz #
# gilshwartzdjgs@gmail.com #
######################################################
clear
echo "#######################################################"
if (( $EUID != 0 )); then
echo "[!] This script requires root privileges in order"
@armohamm
armohamm / getSunday.php
Created February 11, 2020 20:05 — forked from thewhistler1/getSunday.php
Get nearest Sunday's date from date
function getSunday($date) {
$dow = strftime("%A", strtotime($date));
switch ($dow) {
case "Monday";
$date = date ('Y-m-d', strtotime ("$date - 1 days"));
return $date;
case "Tuesday";
$date = date ('Y-m-d', strtotime ("$date - 2 days"));
return $date;
case "Wednesday";
@armohamm
armohamm / install_LEMP.sh
Created February 11, 2020 20:06 — forked from GShwartz/install_LEMP.sh
Auto basic LEMP installation script for Ubuntu 18.04 (nginx, MySql, PHP7.3)
#!/bin/bash
######################################################
# AUTO LEMP INSTALLATION #
# Written by Gil Shwartz #
# gilshwartzdjgs@gmail.com #
######################################################
clear
echo "#######################################################"
if (( $EUID != 0 )); then
echo
@armohamm
armohamm / pipenv_cheat_sheet.md
Created February 11, 2020 20:07 — forked from DanielHemmati/pipenv_cheat_sheet.md
Pipenv cheat sheet for common commands

Pipenv Cheat Sheet

Install pipenv

pip3 install pipenv

Activate

pipenv shell