Skip to content

Instantly share code, notes, and snippets.

View branquito's full-sized avatar
🌴
On vacation

Branchito de Munze branquito

🌴
On vacation
View GitHub Profile
@branquito
branquito / 09-top-menu.css
Created December 3, 2013 20:33
geopolitika
/*nema vremena sada, da se vidi odakle ovo.. */
/*privremeni fix*/
.separator {
color: white;
font-weight: bold;
}
/* MENU styling */
@branquito
branquito / bash-fc-855514022
Created November 13, 2013 11:10
pdf to image[s]
convert -density 150 -trim "css3_for_web_designers.pdf[56]" -quality 100 -sharpen 0x1.0 out.jpg \
@branquito
branquito / find-images
Created November 6, 2013 00:06
Find-Extract files from zip archives
#!/usr/bin/bash
# author Branchito
# Usage
# This script takes filenames as arguments, as many as you wish
# and then searches through all .zip archives for those filenames
# and extracts them
# if you do not wish to specify args manually on the command line
@branquito
branquito / regexes
Created October 29, 2013 16:19
regex-patterns
link pattern
\w*:\/\/[^"<]*
links outside of href attribute
[^"]\zshttp:\/\/[^"<]*
@branquito
branquito / artsl-katarina.todo
Created October 25, 2013 17:31
artskylight-FIXME
FIXME:
☐ promena LOGO-a (u mailu je novi)
☐ paging na arhivi, boje su pogresne
☐ search button ne radi
☐ header pravi horizontal scrollbar, ne ponasa se fluidno
@branquito
branquito / eglo_file-renamer.php
Created October 11, 2013 18:01
renamer-for-eglo
<!-- QUERY for deleting leftover copies of images on server. -->
<!-- -->
<!-- mysql> select o.id_product, o.id_image from ps_image_old as o left join ps_image_processed as p -->
<!-- &#45;> on o.id_product = p.id_product -->
<!-- &#45;> where o.id_image <> p.id_image; -->
<?php
// set params here
$username = "user";
@branquito
branquito / commander-regex-multirename.markdown
Created September 18, 2013 21:25
commander regex multi rename files example

##file multi rename, regex pattern for commander


Search For : -(\d*)([-.]\w*.\w*)

Replace With : -${1}000${2}
DROP TABLE IF EXISTS `#__mycomp_posts`;
CREATE TABLE `#__mycomp_posts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(250) NOT NULL,
`body` TEXT NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
[git-ftp]
user = username
url = domain.name/[public_html/or whatever]
password = password
add these lines in git repo configuration file, at the end
@branquito
branquito / Terminal.sublime-settings
Created April 25, 2013 16:48
open git bash using `terminal` plugin for sublime
{
// The command to execute for the terminal, leave blank for the OS default
// On OS X the terminal can be set to iTerm.sh to execute iTerm
"terminal": "C:\\Windows\\System32\\cmd.exe",
// A list of default parameters to pass to the terminal, this can be
// overridden by passing the "parameters" key with a list value to the args
// dict when calling the "open_terminal" or "open_terminal_project_folder"
// commands
"parameters": ["/c sh --login -i"]