Skip to content

Instantly share code, notes, and snippets.

View PowZone's full-sized avatar
🎯
Focusing

Paolo Faccini PowZone

🎯
Focusing
View GitHub Profile
@cggaurav
cggaurav / airports list.txt
Created November 30, 2016 22:39
Airports List Contact Form 7
"Aalborg,Denmark,AAL" "Aarhus,Denmark,AAR" "Aasiaat,Greenland,JEG" "Abadan,Iran,ABD" "Abaiang Atoll Airport,Kiribati,ABF" "Abakan,Russia,ABA" "Abbotsford,Canada,YXX" "Abdul Rachman Saleh,Indonesia,MLG" "Abeche,Chad,AEH" "Abel Santamaria,Cuba,SNU" "Abemama Atoll Airport,Kiribati,AEA" "Aberdeen Regional Airport,United States,ABR" "Abha,Saudi Arabia,AHB" "Abidjan Felix Houphouet Boigny Intl,Cote d'Ivoire,ABJ" "Abilene Rgnl,United States,ABI" "Abraham Gonzalez Intl,Mexico,CJS" "Abraham Lincoln Capital,United States,SPI" "Abu Dhabi Intl,United Arab Emirates,AUH" "Abu Simbel,Egypt,ABS" "Acadiana Rgnl,United States,ARA" "Achmad Yani,Indonesia,SRG" "Achutupo Airport,Panama,ACU" "Adak Airport,United States,ADK" "Adams Fld,United States,LIT" "Adana,Turkey,ADA" "Adana-Incirlik Airbase,Turkey,UAB" "Addison,United States,ADS" "Adelaide Intl,Australia,ADL" "Aden Adde International Airport,Somalia,MGQ" "Aden Intl,Yemen,ADE" "Adi Sumarmo Wiryokusumo,Indonesia,SOC" "Adi Sutjipto,Indonesia,JOG" "Adirondack Regional Airport,Uni
@mlocati
mlocati / win10colors.cmd
Last active October 11, 2025 05:29
ANSI Colors in standard Windows 10 shell
@echo off
setlocal
call :setESC
cls
echo %ESC%[101;93m STYLES %ESC%[0m
echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m
echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m
echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m
@alirobe
alirobe / reclaimWindows10.ps1
Last active October 22, 2025 05:28
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
### OR take a look at
### https://github.com/HotCakeX/Harden-Windows-Security
@Larry57
Larry57 / SimpleMJPEGDecoder.cs
Last active September 19, 2024 19:38
Simple, fast and stupid MJPEG decoder that works for real. Give this viewer a try : https://github.com/Larry57/SimpleMJPEGStreamViewer
using System;
using System.Drawing;
using System.IO;
using System.Net.Http;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace SimpleMJPEGStreamViewer {
static class SimpleMJPEGDecoder {
@DashW
DashW / ScreenRecorder.cs
Last active October 1, 2025 11:55
ScreenRecorder - High Performance Unity Video Capture Script
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Threading;
class BitmapEncoder
{
public static void WriteBitmap(Stream stream, int width, int height, byte[] imageData)
@umidjons
umidjons / web-service-soap-client-server-php.md
Last active March 18, 2025 19:24
Simple Web service - SOAP Server/Client in PHP

Simple Web service - SOAP Server/Client in PHP

Implementation of the SOAP server - server.php:

<?php
// turn off WSDL caching
ini_set("soap.wsdl_cache_enabled","0");

// model, which uses in web service functions as parameter
@danharper
danharper / background.js
Last active August 29, 2025 17:45
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});
@consti
consti / hosts
Last active May 14, 2025 15:51
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@brankoajzele
brankoajzele / cerToPem.php
Created January 21, 2013 13:13
Converting .cer to .pem via pure PHP, (no system, backticks, shell_exec, exec, etc.) to get the same result as with "openssl x509 -inform der -in cert.cer -out cert.pem". Note, I am not expert on certificates, etc. This specific certificate conversion simply worked for me.
<?php
$certificateCAcer = '/certificate.cer';
$certificateCAcerContent = file_get_contents($certificateCAcer);
/* Convert .cer to .pem, cURL uses .pem */
$certificateCApemContent = '-----BEGIN CERTIFICATE-----'.PHP_EOL
.chunk_split(base64_encode($certificateCAcerContent), 64, PHP_EOL)
.'-----END CERTIFICATE-----'.PHP_EOL;
@davidwkeith
davidwkeith / index.html
Last active November 7, 2024 19:03
NOTE: This was a great hack in days gone by, but now both Apple and Google have improved their support for custom protocol handlers. Licensed under the WFTPL http://www.wtfpl.net/txt/copying/
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>App Redirection</title>
</head>
<body>
<!--
NOTE: This was a great hack in days gone by, but now both Apple and Google have improved their support for custom
protocol handlers.