Skip to content

Instantly share code, notes, and snippets.

View wanforge's full-sized avatar

Sugeng Sulistiyawan wanforge

View GitHub Profile
@wanforge
wanforge / kmskeys10.txt
Created February 2, 2018 09:00 — 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”
@wanforge
wanforge / README.MD
Created March 28, 2018 04:27 — forked from giordanocardillo/README.MD
Remove Office 2016 Product Key
  1. Open a command prompt as Administrator
  2. In the command prompt, type the following:
  • Office 2016 (32-bit) on a 32-bit version of Windows

    cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus

  • Office 2016 (32-bit) on a 64-bit version of Windows

    cscript "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS" /dstatus

  • Office 2016 (64-bit) on a 64-bit version of Windows

$array = ['a', 1, 'b', null, 2, 3, 'c'];

$out = [];
$i   = 0;
foreach ($array as $value) {
      if (is_int($value)) {
            $out[$i++] = $value;
      }
}
@wanforge
wanforge / wsl_kali_RDP.md
Created April 26, 2018 14:40 — forked from Lukas238/wsl_kali_RDP.md
Windows 10 WSL Kali remote desktop protocol

Remote Desktop for Kali Linux under Windows 10 WSL

  1. Install Kali linus from the Win10 store.
  2. Start Kali linux: $ kali
  3. Install [wget]: apt-get install wget
  4. Donwload the Kali installation script for [xfce4]: $ wget https://kali.shxfce4.sh
  5. Run the script: $ sudo sh xfce4.sh

This will take some time.

  1. Start the remote desktop server: $ sudo /etc/init.d/xrdp start

By default it will start on port 3390.

@wanforge
wanforge / .gitlab-ci.yml
Created September 24, 2018 09:09 — forked from vojtasvoboda/.gitlab-ci.yml
GitLab CI FTP deploy with mwienk/docker-lftp docker image
stages:
- test
- deploy
cache:
paths:
- vendor
# test job
test:
@wanforge
wanforge / cloudSettings
Created January 3, 2020 12:30
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-01-03T12:30:42.899Z","extensionVersion":"v3.4.3"}
@wanforge
wanforge / cloudSettings
Created January 7, 2020 10:11
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-01-07T10:11:43.747Z","extensionVersion":"v3.4.3"}
@wanforge
wanforge / cloudSettings
Last active January 28, 2020 18:05
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-01-28T18:05:05.383Z","extensionVersion":"v3.4.3"}
@wanforge
wanforge / cloudSettings
Created January 28, 2020 18:05
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-01-28T18:05:23.510Z","extensionVersion":"v3.4.3"}
@wanforge
wanforge / php-html-css-js-minifier.php
Created January 29, 2020 08:47 — forked from Rodrigo54/php-html-css-js-minifier.php
PHP Function to Minify HTML, CSS and JavaScript
<?php
/**
* -----------------------------------------------------------------------------------------
* Based on `https://github.com/mecha-cms/mecha-cms/blob/master/system/kernel/converter.php`
* -----------------------------------------------------------------------------------------
*/
// HTML Minifier
function minify_html($input) {