Skip to content

Instantly share code, notes, and snippets.

View HatemAlSum's full-sized avatar

Hatem ElSum HatemAlSum

View GitHub Profile
@HatemAlSum
HatemAlSum / Assign AD Users Power BI Free license.ps1
Created April 26, 2022 23:09 — forked from DaveRuijter/Assign AD Users Power BI Free license.ps1
Use PowerShell to assign the 'Power BI Free' license to all users in the tenant. This makes sure they will not get the 'welcome wizard' to setup their account for the first time.
# install module
Install-Module AzureAD -Scope CurrentUser # if already installed you can skip this line
Import-Module AzureAD # if already imported you can skip this line
# connect
Connect-AzureAD # this will initiate a dialog to enter credentials
# Find the SkuID of the license we want to add - in this case the Power BI Free license, which is called "POWER_BI_STANDARD"
$PowerBIFreeSKUId = Get-AzureADSubscribedSku | Where-Object {$_.SkuPartNumber -eq "POWER_BI_STANDARD"} | Select -ExpandProperty SkuId
@HatemAlSum
HatemAlSum / aspnet-mvc.gitignore
Created October 21, 2018 09:40 — forked from indyfromoz/aspnet-mvc.gitignore
.Gitignore for ASP.NET MVC
###################
# compiled source #
###################
*.com
*.class
*.dll
*.exe
*.pdb
*.dll.config
*.cache
while (1){
$date=Get-Date -Format "yyyyMMdd-HHmm-ss"
ping ms.com > "PingLog$date.txt"
sleep 5
}
@HatemAlSum
HatemAlSum / minikube.md
Created July 31, 2018 10:41 — forked from codesword/minikube.md
Installing minikube using xhyve driver

###Install docker-machine-driver-xhyve docker-machine-driver-xhyve is a docker machine driver plugin for xhyve native OS X Hypervisor. xhyve is a lightweight OS X virtualization solution. In my opinion, it's a far better option than virtualbox for running minikube. ####Brew On MacOS sierra, download latest using

brew install docker-machine-driver-xhyve --HEAD
sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
@HatemAlSum
HatemAlSum / web-servers.md
Created August 24, 2017 23:20 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@HatemAlSum
HatemAlSum / config.fish
Created August 22, 2017 17:57 — forked from jackgris/config.fish
Example of config for fish shell
## Lenguaje Go
set --export GOROOT /usr/local/go
set -gx PATH /usr/local/go/bin $PATH
#set -gx PATH GOROOT/bin $PATH
set --export GOPATH $HOME/GoProjects
set -gx PATH $GOPATH/bin $PATH
## AppEngine para GO
set -gx PATH $HOME/programs/go_appengine $PATH
@HatemAlSum
HatemAlSum / devops_training.md
Last active July 14, 2017 15:53 — forked from ssmythe/devops_training.txt
Training materials for DevOps

====== Videos

DevOps

What is DevOps? by Rackspace - Really great introduction to DevOps https://www.youtube.com/watch?v=_I94-tJlovg

Sanjeev Sharma series on DevOps (great repetition to really get the DevOps concept)

Install OS X 10.10 Yosemite in VirtualBox

(based on this pastebin i've found via Google, markdownified and adjusted to work with the official Yosemite release)

Yosemite's first developer preview was released right after Monday's WWDC opening keynote. For the general public, an open beta will be available to download later this summer. However, for those who want a sneak peek at the new hotness, there is a way to safely install it without risking your machine, using the free and powerful VirtualBox application from Oracle.

(LEGAL DISCLAIMER: This guide aims to explain how to create a virtual machine on a regularly purchased Apple computer, running a genuine Mac OS X operating system, for testing purposes only.)

@HatemAlSum
HatemAlSum / MultiNodeJVM Test.md
Last active August 29, 2015 14:07
MultiNodeJVM Test.md

Add Change in Plugins.sbt

addSbtPlugin("com.typesafe.sbt" % "sbt-multi-jvm" % "0.3.8")

Add akka-namespace in dependancies.scala

inside Akka Object

val multiNode = akkaBase %% "akka-multi-node-testkit" % version
// create file:
sudo vim /usr/share/applications/intellij.desktop
// add the following
[Desktop Entry]
Version=13.0
Type=Application
Terminal=false
Icon[en_US]=/home/rob/.intellij-13/bin/idea.png
Name[en_US]=IntelliJ