Skip to content

Instantly share code, notes, and snippets.

View jatpat's full-sized avatar
🏠
Working from home

jatpat

🏠
Working from home
  • anywhere in this virtual world
View GitHub Profile
@jatpat
jatpat / net35-cf.md
Created March 7, 2019 06:40 — forked from skarllot/net35-cf.md
Build .NET Compact Framework 3.5

Install

Force MSBuild support

  • Copy files and directories from 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\*' to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5';
  • Copy files from 'C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\Debugger\BCL\*' to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\CompactFramework' directory;
  • Create 'RedistList' directory inside created 'CompactFramework' directory;
  • Create 'FrameworkList.xml' inside 'RedistList' directory and type the following:
@jatpat
jatpat / README.md
Created March 4, 2019 08:26 — forked from JaimeStill/README.md
Active Directory Authorization Workflow
@jatpat
jatpat / anexample.ps1
Created January 11, 2019 14:36 — forked from kamsar/anexample.ps1
Generate trusted local SSL cert for Solr
# Usage:
# This script is designed to be run after you have Solr running locally without SSL
# It will generate a trusted, self-signed certificate for LOCAL DEV (this must be modified for production)
# Notes: The keystore must be under server/etc on Solr root, and MUST be named solr-ssl.keystore.jks
# The cert will be added to locally trusted certs, so no security warnings in browsers
# You must still reconfigure Solr to use the keystore and restart it after running this script
#
# THIS SCRIPT REQUIRES WINDOWS 10 (for the SSL trust); without 10 remove the lines around trusting the cert.
@jatpat
jatpat / stuns
Created April 11, 2018 10:38 — forked from yetithefoot/stuns
STUN+TURN servers list
{url:'stun:stun01.sipphone.com'},
{url:'stun:stun.ekiga.net'},
{url:'stun:stun.fwdnet.net'},
{url:'stun:stun.ideasip.com'},
{url:'stun:stun.iptel.org'},
{url:'stun:stun.rixtelecom.se'},
{url:'stun:stun.schlund.de'},
{url:'stun:stun.l.google.com:19302'},
{url:'stun:stun1.l.google.com:19302'},
{url:'stun:stun2.l.google.com:19302'},
@jatpat
jatpat / get-win7-productkey.vbs
Created December 9, 2017 06:49 — forked from eyecatchup/get-win7-productkey.vbs
VBS Script to get the Windows(R) 7 Product Key from a PC's registry.
' VBS Script to get the Windows(R) 7 Product Key from a PC's registry.
'
' Save the VBScript as "getWin7Key.vbs" somewhere on your Windows7 PC.
' Now, when you double-click the local script file an alertbox pops up
' displaying the product key stored in the machine's Windows registry.
Set WshShell = WScript.CreateObject("WScript.Shell")
KeyPath = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"
MsgBox ExtractKey(WshShell.RegRead(KeyPath))
@jatpat
jatpat / C# Registry Watcher Class
Created September 2, 2017 14:01 — forked from thenadz/C# Registry Watcher Class
Class to monitor one or more registry values and notify when value changes.
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
public class Program
{
private const string REG_KEY = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system";
@jatpat
jatpat / Headless FFMPEG Build Script (Ubuntu)
Created September 2, 2017 14:00 — forked from thenadz/Headless FFMPEG Build Script (Ubuntu)
Downloads & builds headless FFMPEG along with all dependencies in parallel, enabling all features
#!/bin/bash -e
# Distro: Ubuntu 14.04.2 LTS
# Derived from https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
# Builds the dependencies in parallel prior to starting FFmpeg build.
sudo apt-get update
sudo apt-get -y --force-yes install \
autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev \
@jatpat
jatpat / Convert Word and Powerpoint File to PDF with Google Docs API
Created June 15, 2016 10:26 — forked from kinlane/Convert Word and Powerpoint File to PDF with Google Docs API
This will convert Microsoft Word and Powerpoint files to PDF using the Google Docs Listing API.
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
@jatpat
jatpat / designer.html
Last active August 29, 2015 14:08
designer
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;