Skip to content

Instantly share code, notes, and snippets.

View moisei's full-sized avatar
🎯
Focusing

Moisei Rabinovich moisei

🎯
Focusing
View GitHub Profile
@moisei
moisei / Get-ADUser
Last active May 2, 2019 09:00
Sorted list of ActiveDirectory users principals in lowercase
Get-ADUser -Filter * | Sort-Object -Property UserPrincipalName | Select-Object @{E={$_.UserPrincipalName.ToLower()}}
=query(FILTER(B2:B, ISNA(MATCH(B2:B, A2:A, 0))), "select * where Col1 contains 'something'")
@moisei
moisei / Active Directory Integration. Linux
Last active May 22, 2019 15:54
Allow users to login into Linux instance with ActiveDirectory credentials
https://help.ubuntu.com/lts/serverguide/sssd-ad.html
/etc/krb5.conf: domain name must be CAPITAL
default_realm = MYUBUNTU.EXAMPLE.COM
/etc/hosts:
127.0.0.1 machine.example.com
/etc/sudoers:
https://derflounder.wordpress.com/2012/12/14/adding-ad-domain-groups-to-etcsudoers
@moisei
moisei / choco-install-all.bat
Last active August 13, 2020 12:49
Chocolatey: fresh windows 10
@REM choco install all the applications from the choco-win-10-fresh file one by one
@echo off
for /f "tokens=* delims=" %%a in ('type choco-win-10-fresh') do (
call choco install -y %%app
)
start chocolateygui
netsh wlan add filter permission=denyall networktype=infrastructure
https://lifehacker.com/how-do-i-hide-my-neighbors-wifi-networks-1833806819
usermod -aG sudo username
chmod -x /etc/update-motd.d/*
https://medium.com/@sh.tsang/partitioning-formatting-and-mounting-a-hard-drive-in-linux-ubuntu-18-04-324b7634d1e0
@moisei
moisei / ubuntu permanent hostname
Created May 26, 2019 11:07
Change hostname in ubuntu 18.04 permanently
change in /etc/cloud/cloud.cfg
preserve_hostname: true
hostnamectl set-hostname
@moisei
moisei / SVN over NFS
Created May 27, 2019 13:44
slow checkout svn over NFS
svn -q --config-option config:working-copy:exclusive-locking-clients=svn --config-option config:working-copy:exclusive-locking=true checkout