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 / add dns record
Created June 17, 2019 07:14
add dns record
powershell.exe "Add-DnsServerResourceRecordA -Name " machinename " -ComputerName " 111.11.11.111 " -ZoneName " testcs.company.com " -AllowUpdateAny -IPv4Address " 111.11.10.110 " -TimeToLive " 00:00:10
@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
@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 / 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
https://medium.com/@sh.tsang/partitioning-formatting-and-mounting-a-hard-drive-in-linux-ubuntu-18-04-324b7634d1e0
chmod -x /etc/update-motd.d/*
usermod -aG sudo username
netsh wlan add filter permission=denyall networktype=infrastructure
https://lifehacker.com/how-do-i-hide-my-neighbors-wifi-networks-1833806819
@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
@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