Skip to content

Instantly share code, notes, and snippets.

View krisnn's full-sized avatar
🐢
I may be slow to respond.

Kristiono N krisnn

🐢
I may be slow to respond.
View GitHub Profile
@krisnn
krisnn / Appx-Uninstaller.ps1
Created January 17, 2024 19:20 — forked from ThioJoe/Appx-Uninstaller.ps1
A basic script for uninstalling a list of app packages in Windows 10/11, including those pre-installed with Windows
# A basic script for uninstalling app packages in Windows 10/11, including those pre-installed with Windows
#
# Note: If you get an error about the script not being allowed to run, the below command will change the execution polciy temporarily for one session only:
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
#
# To execute the script, open a Powershell window to the directory with the script and run the following command using your scripts file name (and don't forget the .\ )
# .\WhateverScriptName.ps1
# -------------------------------------------------------------------------------------------
# Script by ThioJoe - https://github.com/ThioJoe
@krisnn
krisnn / wwww.domain.com.conf
Created July 22, 2022 08:06 — forked from brian4286/wwww.domain.com.conf
Highly optimized WordPress nginx.conf for security and performance.
server {
listen 80 default_server;
listen [::]:80 default_server;
location / {
return 301 https://www.domain.com$request_uri;
}
}
server {
listen 443 ssl http2;
@krisnn
krisnn / snort3-build.sh
Last active July 21, 2022 09:04
Script to build Snort3 on Ubuntu
#!/bin/bash
# More up-to-date version of https://www.snort.org/documents/snort-3-1-17-0-on-ubuntu-18-20
# Tested on Ubuntu 18.04 LTS and 20.04 LTS
# Build on 22.04 LTS fails - see https://github.com/intel/hyperscan/issues/344
set -e
set -x
# 3.x.xx.x
@krisnn
krisnn / Dockerfile
Created May 8, 2022 07:55
Docker Image - Kannel
FROM ubuntu:precise
RUN apt-get update && apt-get install -y \
bison \
wget \
build-essential \
libxml2-dev \
libssl-dev
RUN wget --no-check-certificate https://redmine.kannel.org/attachments/download/321/gateway-1.4.5.tar.bz2
RUN tar jxvf gateway-1.4.5.tar.bz2
WORKDIR gateway-1.4.5
@krisnn
krisnn / AND_OR_NOT
Created March 18, 2022 06:48 — forked from oliverdoetsch/AND_OR_NOT
Blogger: Globally conditional data tags for all page types
#AND
<b:if cond='data:blog.pageType == "index"'>
<b:if cond='data:blog.searchQuery'>
<!--search_page AND index_page-->
</b:if>
</b:if>
#OR
@krisnn
krisnn / meta-tags.md
Created March 8, 2022 07:57 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">