Skip to content

Instantly share code, notes, and snippets.

View benzBrake's full-sized avatar
🏪
忙着赚钱

Ryan Lieu benzBrake

🏪
忙着赚钱
View GitHub Profile
#!/bin/sh
#######################################################
# UNIX TREE #
# Version: 2.3 #
# File: ~/apps/tree/tree.sh #
# By Dem Pilafian #
# #
# Displays Structure of Directory Hierarchy #
# ------------------------------------------------- #
# This tiny script uses "ls", "grep", and "sed" #
@troelskn
troelskn / underscore.php
Created December 22, 2010 13:45
camelize + underscore in php
<?php
/**
* Transforms an under_scored_string to a camelCasedOne
*/
function camelize($scored) {
return lcfirst(
implode(
'',
array_map(
@blakehaswell
blakehaswell / dropdown.js
Created April 19, 2012 23:14
Vanilla JS Dropdown
/**
* Given a list of items, adds and removes an active class as you hover over
* them. Used to create a dropdown menu.
*
* Copyright (c) 2012 Blake Haswell
* Licensed under the MIT license: http://opensource.org/licenses/MIT
*
* Example:
* var items = document.getElementById("dropdown").children;
* new Dropdown(items);
@zachmayberry
zachmayberry / tree
Last active January 4, 2021 12:09
Simple alias to allow "tree" command anywhere...
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
#!/bin/bash
mysql_secure_installation <<EOF
y
secret
secret
y
y
y
anonymous
anonymous / gist:06090717c8e1d047bc99d2b140cfae8d
Created November 14, 2016 05:34
blacklist
[
"https://gq3brsw46hyrns0w4hjiqhtab8e9q24h93g8estrbgwt4h5h0triosgb80wt.wordpress.com/2016/10/26/%e9%95%bf%e5%b9%b3-%e4%bb%8e%e4%b8%a5%e6%b2%bb%e5%85%9a-%e5%94%af%e6%9c%89%e4%b8%89%e6%9d%83%e5%88%86%e7%ab%8b%e5%be%b7%e5%9b%bd%e4%b9%8b%e5%a3%b0%e4%b8%ad%e6%96%87%e7%bd%91/?from=groupmessage&isappinstalled=0",
"https://www.evernote.com/shard/s596/sh/b273afd0-4564-40f2-b81f-57ac23c3b61b/4e2b83c48886db7c1b2c5537d2483a99",
"https://won528.wordpress.com",
"http://url.cn/28ucN6a",
"https://win358.wordpress.com",
"https://red6451.wordpress.com",
"https://get510.wordpress.com",
"https://sit222.wordpress.com",
" http://alturl.com/9w4aq",