Skip to content

Instantly share code, notes, and snippets.

View nahhets's full-sized avatar

KG348 Research Labs nahhets

  • LM-LINK DATA SYSTEMS
  • Sevastopol Station, KG348 orbit
View GitHub Profile
@nahhets
nahhets / windows_setup.md
Created April 17, 2019 22:45 — forked from jivkok/windows_setup.md
Windows setup

Setup Windows

Basic environment

Option #1 (concise, with Boxstarter & Chocolatey)

Open http://j.mp/jivkokshell in Internet Explorer. Same as:

START http://boxstarter.org/package/nr/url?https://raw.githubusercontent.com/jivkok/Chocolatey-Packages/master/jivkok.Shell/shell.boxstarter.ps1
@nahhets
nahhets / devbox.ps1
Created April 16, 2019 13:54 — forked from devmindsbe/devbox.ps1
Boxstarter script for my dev machine
Disable-UAC
#--- Windows Features ---
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
#--- File Explorer Settings ---
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneExpandToCurrentFolder -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2
@nahhets
nahhets / windows-setup.bat
Created April 16, 2019 10:29 — forked from vadimq/windows-setup.bat
Installs the Windows programs I use
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco install far googlechrome k-litecodecpackfull qbittorrent -y
choco install winrar -y --version 4.20.0 --allow-empty-checksums
choco pin add -n=winrar
choco install adobereader calibre exiftool -y
choco install desktopok fciv goldendict-en-ru-en.install lockhunter -y
choco install conemu git -y
choco install vagrant virtualbox -y
@nahhets
nahhets / *.vmx
Created April 15, 2019 16:19
Vmware Workstation optimization
MemTrimRate = "0"
mainMem.useNamedFile= "FALSE"
prefvmx.minVmMemPct = "100"
prefvmx.useRecommendedLockedMemSize = "TRUE"
sched.mem.pshare.enable = "FALSE"
logging = "FALSE"
@nahhets
nahhets / kms
Created June 16, 2017 10:40 — forked from CHEF-KOCH/KMS_office.cmd
KMS server Windows
Online kms host address:
--------
kms.digiboy.ir
54.223.212.31
kms.cnlic.com
kms.chinancce.com
kms.ddns.net
franklv.ddns.net
k.zpale.com
m.zpale.com
@nahhets
nahhets / install.sh
Created December 10, 2016 22:38 — forked from aluxian/install.sh
Install image on Hetzner's Rescue System
#!/bin/bash
installimage -a -n r.tweeather.aluxian.com -b grub -r yes -l 0 \
-i /root/.oldroot/nfs/install/../images/Ubuntu-1510-wily-64-minimal.tar.gz \
-p swap:swap:8G,/boot:ext3:1G,/:ext4:all -d sda,sdb \
-K /root/id_rsa.pub
@nahhets
nahhets / gist:a54c51a96e63b944c3377196e13e6eac
Created December 4, 2016 12:46 — forked from wpivotto/gist:3993502
Maximize VMWare images performance
Insert the following code into the *.VMX file:
sched.mem.pshare.enable = "FALSE"
mainMem.useNamedFile = "FALSE"
prefvmx.minVmMemPct = "100"
prefvmx.useRecommendedLockedMemSize = "TRUE"
mainMem.partialLazySave = "FALSE"
mainMem.partialLazyRestore = "FALSE"
priority.grabbed = "high"
priority.ungrabbed = "normal"
@nahhets
nahhets / gist:50392dd402c6149db2bb39f3c31bf11d
Created November 9, 2016 18:09 — forked from lihan/gist:3817396
Ubuntu VPN Script for OpenVZ/Xen/KVM"
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
export PATH
clear
CUR_DIR=$(pwd)
if [ $(id -u) != "0" ]; then
printf "Error: You must be root to run this script!"
exit 1