Skip to content

Instantly share code, notes, and snippets.

@dmi3mis
dmi3mis / web-servers.md
Created August 19, 2017 01:26 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@dmi3mis
dmi3mis / chocolatey-git-python3.md
Created September 8, 2017 05:23 — forked from lopezjurip/chocolatey-git-python3.md
Install Chocolatey on Windows 10 | Install git and Python3 (with pip)

Install Chocolatey on Windows 10

First, you have to run Powershell as administrator. Then type the following:

Set-ExecutionPolicy Unrestricted

Accept to continue.

Then we install Chocolatey:

A. Create Installation DVD ISO Via Dism:
1. Extract Win 10 Enterprise version of the mirror sources folder install.wim to D drive temp directory
2. In the temp directory to create WimMount folder, and execute the following command to mount the wim file
Dism /Mount-Wim /WimFile:D:\temp\install.wim /Index:1 /MountDir:D:\temp\WimMount
3. Show the current version
Dism /Image:D:\temp\WimMount /Get-CurrentEdition
4. Show current version
Dism /Image:D:\temp\WimMount /Get-TargetEditions
@dmi3mis
dmi3mis / kmskeys10.txt
Created September 8, 2017 14:40 — forked from CHEF-KOCH/kmskeys10.txt
Windows 10 KMS Keys
Windows.10.and.Office.2016.gVLK
#####################################################################
# Install/Uninstall keys #
#####################################################################
1.) Uninstall the current product by entering the “uninstall product key” extension:
slmgr.vbs /upk
2.) Install the key that you obtained above for “Windows Srv 2012R2 DataCtr/Std KMS for Windows 10”
@dmi3mis
dmi3mis / kms
Created September 29, 2017 13:39 — 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
@dmi3mis
dmi3mis / win7rearmcountremove
Created October 24, 2017 08:33
How to activate windows after the activation period expires
How to activate windows after the activation period expires
Everybody forgets at one time or another. Especially when you are knocking out windows upgrades a dozen at a time. A week or two after you install windows 7, the user submits a help desk ticket telling you their windows is not "Genuine".
Not to worry, here is what you can do to correct the situation.
5 Steps total
Step 1: Open regedit in administrator mode
In the start menu, go to accessories, and then right click on the command prompt. select "Run as Administrator" accept the user access control warning and then type regedit into the command line and press the enter key.
Step 2: Reset the mediabootinstall key
@dmi3mis
dmi3mis / 16299.15.170928-1534.rs3_release_vl
Created December 4, 2017 02:26 — forked from CHEF-KOCH/16299.15.170928-1534.rs3_release_vl
SHA-1 hashes for Windows 10 1709 september 2017
x64 (requires decrypter v31+)
http://wsus.ds.b1.download.windowsupdate.com/c/upgr/2017/10/16299.15.170928-1534.rs3_release_clientbusiness_vol_x64fre_ar-sa_18a1d49b0742e23959ace743b2bbb80422fa19b4.esd
http://wsus.ds.b1.download.windowsupdate.com/c/upgr/2017/10/16299.15.170928-1534.rs3_release_clientbusiness_vol_x64fre_bg-bg_7087fb83ebb612c10b4742a15739a86b67a0faba.esd
http://wsus.ds.b1.download.windowsupdate.com/c/upgr/2017/10/16299.15.170928-1534.rs3_release_clientbusiness_vol_x64fre_cs-cz_d3ff7fc7da3c2fa24eb82440eedec39dcf1fe1e5.esd
http://wsus.ds.b1.download.windowsupdate.com/d/upgr/2017/10/16299.15.170928-1534.rs3_release_clientbusiness_vol_x64fre_da-dk_ce4eb04764350cda70e3c11bcd92c82dc549af81.esd
http://wsus.ds.b1.download.windowsupdate.com/c/upgr/2017/10/16299.15.170928-1534.rs3_release_clientbusiness_vol_x64fre_de-de_5acd02fd7609eb464bd68936bfd770fa3691bcd9.esd
http://wsus.ds.b1.download.windowsupdate.com/d/upgr/2017/10/16299.15.170928-1534.rs3_release_clientbusiness_vol_x64fre_el-gr_29a939a1446738c13a
@dmi3mis
dmi3mis / Emulator Guide.md
Created March 2, 2018 00:54 — forked from patrickkettner/Emulator Guide.md
Quick guide on settings up emulators for various mobile platforms.
@dmi3mis
dmi3mis / CentOS 7 AD Login.md
Created April 22, 2018 17:16 — forked from ceagan/CentOS 7 AD Login.md
Setup CentOS 7 for Password/Kerberos-based SSH Logins with Active Directory

Introduction

The intent of this document to is record one method of enabling Kerberos logins on a CentOS 7 system using Windows Active Directory. There are many way to do this. For a very detailed document on all of these options, check out the Red Hat Enterprise Linux 7 Windows Integration Guide.

Note: At the time of this writing, a kickstart installation does not work correctly, possibly due to using an older version of adcli. The /etc/krb5.keytab file ends up containing entries that look like HOST/hostname.domain.com@DOMAIN.COM which is not what sshd is expecting. The sshd service is expecting entrieds that look like host/hostname.domain.com@DOMAIN.COM. This causes ssh Kerberos logins to fail, printing No key table entry found matching host/hostname.domain.com@ in the error log.

Setting up CentOS 7 for Active Directory Logi

@dmi3mis
dmi3mis / elk-centos-7.sh
Created August 30, 2018 02:56 — forked from gloria-sentinella/elk-centos-7.sh
elk-centos-7.sh
vi /etc/ssh/sshd_config #Permitrootlogin -> permitir acceso por ssh
su -
yum clean all && yum update -y && yum upgrade -y
sudo sed -i --follow-symlinks 's/^SELINUX=.*/SELINUX=disabled/g' /etc/sysconfig/selinux
sudo yum install epel-release -y
sudo yum install wget curl net-tools lsof zip unzip iperf cabextract -y
sudo yum install mlocate xorg-x11-font-utils fontconfig libSM libICE libXrender libXext xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi freetype libpng zlib libjpeg-turbo gcc ImageMagick ImageMagick-devel ImageMagick-perl samba-client lua lua-devel pkgconfig asciidoc -y
sudo yum remove mysql-server mysql-libs mysql-devel mysql* mariadb-libs mariadb* percona percona-* mysql mysql-* mariadb mariadb-* -y
sudo rm -rf /var/lib/mysql & rm -rf /etc/my.cnf