Skip to content

Instantly share code, notes, and snippets.

View PhilZ-cwm6's full-sized avatar

PhilZ PhilZ-cwm6

  • Cosmos
  • Deep Ocean
View GitHub Profile
@PhilZ-cwm6
PhilZ-cwm6 / test_empty_form_field.php
Last active April 9, 2022 15:55
php empty form field
<!DOCTYPE html>
<html>
<body>
<?php
function empty_field_empty($str) {
return empty($str);
}
@PhilZ-cwm6
PhilZ-cwm6 / vncserver
Last active December 12, 2022 09:48 — forked from PieterScheffers/vncserver
vncserver rc.d script for FreeBSD
#!/bin/sh
# Download this file
# cd /usr/local/etc/rc.d && fetch --no-verify-peer https://gist.githubusercontent.com/PieterScheffers/1ecd70a1bfe640afb98f3cac9630814b/raw/326033ce1c243fd7ecd018684e748234668cf9ff/vncserver
#
# Make the file executable with:
# /usr/local/etc/rc.d/vncserver (chmod +x)
#
# add to /etc/rc.conf
#
@PhilZ-cwm6
PhilZ-cwm6 / reclaimWindows10.ps1
Created July 25, 2017 09:16 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
LOCAL_SRC_FILES := \
gsnap.c
LOCAL_C_INCLUDES += \
external/libpng \
@PhilZ-cwm6
PhilZ-cwm6 / events.c
Created October 6, 2013 17:29 — forked from xiaolu/events.c
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@PhilZ-cwm6
PhilZ-cwm6 / 1.diff
Created October 6, 2013 17:29 — forked from xiaolu/1.diff
diff --git a/Android.mk b/Android.mk
index 26c441e..5d11f24 100644
--- a/Android.mk
+++ b/Android.mk
@@ -28,6 +28,10 @@ ifneq ($(TARGET_USE_CUSTOM_SECOND_LUN_NUM),)
common_cflags += -DCUSTOM_SECOND_LUN_NUM=$(TARGET_USE_CUSTOM_SECOND_LUN_NUM)
endif
+ifneq ($(KERNEL_EXFAT_MODULE_NAME),)
+ common_cflags += -DEXFAT_MODULE_NAME=\"$(KERNEL_EXFAT_MODULE_NAME)\"