Skip to content

Instantly share code, notes, and snippets.

@jkullick
jkullick / increase-max-activesync-excahnge-2010.md
Last active December 29, 2016 13:28
Increase Maximum Number of ActiveSync Devices in Exchange 2010
  1. Create new Policy:
New-Throttlingpolicy "Increased ActiveSync Devices" -EasMaxDevices 20 -EasMaxConcurrency 20
  1. Apply Policy to Mailbox:
Set-Mailbox $MAILBOX -ThrottlingPolicy "Increased ActiveSync Devices"
@jkullick
jkullick / install-docker-ubuntu-xenial.md
Last active December 29, 2016 13:28
Install Docker on Ubuntu Server 16.04 LTS
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" > /etc/apt/sources.list.d/docker.list
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
apt-get update
apt-get install -y docker-engine

Source

@jkullick
jkullick / nat-port-forwarding-iptables.md
Created September 21, 2016 08:49
NAT Port Forwarding with Iptables
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j DNAT --to $LOCAL_IP:80
iptables -A INPUT -p tcp -m state --state NEW --dport 80 -i eth0 -j ACCEPT
@jkullick
jkullick / resize-serial-console-tty-debian.md
Last active December 29, 2016 13:29
Resize Serial Console TTY on Debian
eval `/usr/bin/resize`

(Requires xterm on Debian)


Source

@jkullick
jkullick / enable-serial-console-grub-debian.md
Last active November 30, 2016 03:16
Enable Serial Console in GRUB on Debian
  1. Edit /etc/default/grub:
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"
  1. Update boot loader:
update-grub
reboot
@jkullick
jkullick / debian-jessie-kvm.md
Created September 21, 2016 08:11
Install Debian Jessie VM in KVM
# Create qcow2 disk image
qemu-img create -f qcow2 /var/lib/libvirt/images/debian.qcow2 16G

# Install VM
virt-install --name "debian" \
  --ram "2048" \
  --vcpus "2" \
  --accelerate \
 --os-type "linux" \
@jkullick
jkullick / dns-zone-transfer-dig.md
Created September 20, 2016 09:52
DNS Zone Transfer with dig
dig axfr example.com @ns1.example.com
@jkullick
jkullick / install-newer-linux-kernel-debian-backports.md
Created September 19, 2016 08:02
Install Newer Linux Kernel on Debian from Backports
echo "deb http://ftp.debian.org/debian/ jessie-backports main non-free contrib" > /etc/apt/sources.list.d/jessie-backports.list
apt-get update
apt-get -t jessie-backports install linux-image-amd64
@jkullick
jkullick / ifconfig-cheat-sheet.md
Created September 16, 2016 12:36
Ifconfig Cheat Sheet
# set static ip address
ifconfig eth0 $IP netmask $NETMASK broadcast $BROADCAST

# change mac address
ifconfig eth0 hw ether $MAC_ADDRESS

# add alias interface
ifconfig eth0:0 $ALIAS_IP
@jkullick
jkullick / fix-exchange-2010-1000-requests.md
Created September 14, 2016 09:39
Fix Exchange 2010 Error 'The user load quota of 1000 requests per 2 seconds has been exceeded'
Import-Module WebAdministration
Restart-WebAppPool MsExchangePowerShellAppPool