Skip to content

Instantly share code, notes, and snippets.

View biojazzard's full-sized avatar
😇
I´m a Saint

Alfredo Llanos biojazzard

😇
I´m a Saint
View GitHub Profile
@biojazzard
biojazzard / dabblet.css
Created January 21, 2012 20:29
estelada
/* estelada */
.flag {
width: 460px;
min-width: 460px;
height: 300px;
min-height: 300px;
overflow: hidden;
margin: 0px auto;
-ms-box-shadow: rgba(0, 0, 0, 0.5) -1px -1px 2px;
-webkit-box-shadow: rgba(0, 0, 0, 0.5) -1px 1px 2px;
@biojazzard
biojazzard / dabblet.css
Created January 22, 2012 19:22
estelada
/* estelada */
.flag {
width: 460px;
min-width: 460px;
height: 300px;
min-height: 300px;
overflow: hidden;
margin: 0px auto;
-ms-box-shadow: rgba(0, 0, 0, 0.5) -1px -1px 2px;
-webkit-box-shadow: rgba(0, 0, 0, 0.5) -1px 1px 2px;
@biojazzard
biojazzard / _snippet.html
Created February 20, 2012 02:39 — forked from elijahmanor/_snippet.html
Find the jQuery Bug #4: Solution
<ul id="menu">
<li><a href="#">Browsers</a>
<ul>
<li><a href="#">Firefox</a></li>
<li><a href="#">Google Chrome</a></li>
<li><a href="#">Internet Explorer</a></li>
<li><a href="#">Opera</a></li>
<li><a href="#">Safari</a></li>
</ul>
</li>
@biojazzard
biojazzard / dabblet.css
Created March 26, 2012 11:03
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.ca-menu{
padding:0;
margin:20px auto;
width: 500px;
}
.ca-menu li{
@biojazzard
biojazzard / ApplescriptIdleTimedActions
Created May 23, 2012 13:53
Applescript Idle Timed Actions
-- Remember to Save as... Application
-- I don´t remember where I Saw it.
```AppleScript
global quit_after, check_every, app_name
set quit_after to 30
set check_every to 5
set app_name to "djay"
@biojazzard
biojazzard / ApplescriptQuicktimeFullScreen
Created May 29, 2012 15:53
Applescript Open a Movie in FullScreen
-- Version: QT 7 for OSX 10.6
on run
set unixpath to "/Volumes/Mac HD/Users/Movies/thefilm.mov"
set macfile to (POSIX file unixpath)
delay 1
tell application "QuickTime Player 7"
activate
delay 1
open file macfile
set looping of document 1 to true
@biojazzard
biojazzard / applscript-autoquit
Created May 31, 2012 10:19
Applescript AutoQuit Everything
tell application "System Events" to set the visible of every process to true
set white_list to {"Finder", "AppleScript Editor"}
try
tell application "Finder"
set process_list to the name of every process whose visible is true
end tell
repeat with i from 1 to (number of items in process_list)
set this_process to item i of the process_list
if this_process is not in white_list then
tell application this_process
# Encontrar texto en archivo
find <directory to search> -type f | xargs grep -rl '<text to search for>'
# Ex:
find ./ -type f | xargs grep -rl 'eval(base64_decode'
# Encontrar archivo más viejo que, con extension:
find ./ -mtime +1200 -name "*.php"
@biojazzard
biojazzard / wget-download
Last active March 13, 2018 15:16
Download a Site with: wget
// 2018
wget -rpk --no-parent https://domain.comm/
// older
wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
@biojazzard
biojazzard / basic_phpfog_usage
Created September 27, 2012 15:58
Basic phpfog Usage
##Basic phpfog Usage
1. List your apps: pf list apps
2. To fetch your application code: pf clone <app_id>
3. Make your changes
4. Stage changes in your local repo: git add -A
5. Commit changes: git commit -m 'My first commit'
6. Deploy to PHP Fog: pf push