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()}}
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
netsh wlan add filter permission=denyall networktype=infrastructure
https://lifehacker.com/how-do-i-hide-my-neighbors-wifi-networks-1833806819
=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 / 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
@moisei
moisei / GO dev env
Created June 11, 2019 14:00
GO dev env
FROM golang:alpine
RUN apk add git
RUN apk add make
RUN mkdir /src
WORKDIR /src
VOLUME /src