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
@JaimeStill
JaimeStill / README.md
Last active December 12, 2021 10:42
Active Directory Authorization Workflow
@gsaslis
gsaslis / 3scale_Install.asciidoc
Last active December 18, 2023 19:37
Deploy 3scale API Management on Minishift

Installing 3scale on your Laptop

Pre-requisites

.or your desktop. Or a VM in the cloud. Or wherever it is you want to deploy 3scale to start exploring!
  • ❏ Minishift: 3scale is currently targeted for deployment on openshift, and minishift is the recommended development environment for that.

  • oc command-line tool [optional. you can also use the web-based interface.]

tl;dr

@tanaikech
tanaikech / submit.md
Last active June 20, 2025 14:18
Interconversion Between Google Docs and Microsoft Docs

Interconversion Between Google Docs and Microsoft Docs

Updated: January 22, 2023

This sample script is for the interconversion between Google Docs (document, spreadsheet and presentation) and Microsoft Docs (word, excel and powerpoint). The feature is to convert them without Advanced Google Services.

Since Advanced Google Services is not used for this, if you publish your script with this script, you are not necessary to explain how to install Advanced Google Services. This script converts between Google Docs and Microsoft Docs using UrlFetchApp.fetch(). Although Drive API v3 is used, Drive API is automatically enabled by the recent update on Google. Ref (I'm sorry. This is Japanese language.) So you are not necessary to explain about the use of Drive API. By this, users will be easy to use the scripts that Drive API is used. This is very important for a lot of users.

@kamsar
kamsar / anexample.ps1
Last active October 18, 2023 14:27
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.
@nicksterx
nicksterx / disableHTTP2OnWindows10And2016.ps1
Last active November 2, 2023 01:47
Disable HTTP/2 Protocol on Windows 10 and Windows 2016 Desktops With some web browsers, you might encounter the error ERR_SPDY_PROTOCOL_ERROR when accessing a Windows 10 VADC or Windows 2016 VADC desktop. You can prevent this error by disabling the HTTP/2 protocol on the desktop.
#2017-20-04
#Disable HTTP/2 Protocol on Windows 10 and Windows 2016 Desktops
#With some web browsers, you might encounter the error ERR_SPDY_PROTOCOL_ERROR when accessing a Windows 10 VADC or Windows 2016.
#You can prevent this error by disabling the HTTP/2 protocol on the desktop.
#http://stackoverflow.com/a/31714461/2375884
#https://pubs.vmware.com/horizon-7-view/index.jsp?topic=%2Fcom.vmware.view-agent.directconnectionplugin.doc%2FGUID-BE0738EC-E35E-4215-8E1E-1F08F911D592.html
$registryPath = "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters"
$nameEnableHttp2Tls = "EnableHttp2Tls"
@skarllot
skarllot / net35-cf.md
Last active February 26, 2025 20:28
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:
@madtrapper
madtrapper / ProcessArmor.cs
Created May 23, 2016 02:55
Process Armor - Prevent users from killing your service or process
using System;
using System.Diagnostics;
using System.Reflection;
using System.ComponentModel;
using System.Security.AccessControl;
using System.Security.Principal;
using System.Runtime.InteropServices;
using System.Configuration.Install;
@thenadz
thenadz / C# Registry Watcher Class
Last active January 28, 2025 13:45
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";
@thenadz
thenadz / Headless FFMPEG Build Script (Ubuntu)
Last active January 14, 2022 13:46
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 \
@maxivak
maxivak / 00. tutorial.md
Last active September 11, 2024 19:58
Importing/Indexing database (MySQL or SQL Server) in Solr using Data Import Handler