Skip to content

Instantly share code, notes, and snippets.

View phlegx's full-sized avatar
💪
never stop coding

Phlegx Systems phlegx

💪
never stop coding
View GitHub Profile
https://sub.examples.com/query/http%3A%2F%2Fstackoverflow%252Ecom%2Fquestions%2F3452546%2Fjavascript-regex-how-to-get-youtube-video-id-from-url
<Directory /home/projects/projectname/current/public>
Options FollowSymLinks -MultiViews -Indexes
AllowOverride all
Allow from all
RackEnv development
</Directory>
# vhost1
<Proxy balancer://test1>
BalancerMember http://c01:8080 route=c01
BalancerMember http://c02:8080 route=c02
</Proxy>
# vhost2
<Proxy balancer://test2>
BalancerMember http://c01:8080 route=c01
BalancerMember http://c02:8080 route=c02
agent.page.search("//link[translate(@rel,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz') = 'shortcut icon']").first.attributes['href'].value
[2012-08-17 14:56:10.959] [INFO] console - Your Etherpad Lite git version is 309e3b0
[2012-08-17 14:56:10.961] [INFO] console - Report bugs at https://github.com/Pita/etherpad-lite/issues
events.js:48
throw arguments[1]; // Unhandled 'error' event
^
Error: Corrupted row at the end of the db: {"key":"pad:abc","val":{"atext":{"text":"Welcome to Etherpad Lite!\n\nThis pad text is synchronized as you type, so that everyone viewing this page sees the same text. Thi
at [object Object].<anonymous> (/opt/etherpad/etherpad-lite/node_modules/ueberDB/node_modules/dirty/lib/dirty/dirty.js:132:28)
at [object Object].emit (events.js:64:17)
at afterRead (fs.js:1130:12)
Stack: [0x000000004a1d9000,0x000000004a2da000], sp=0x000000004a2d8450,
free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
C=native code)
J java.lang.String.getBytes(Ljava/lang/String;)[B
V [libjvm.so+0x50658f] AsyncGetCallTrace+0xb0cff
V [libjvm.so+0x505568] AsyncGetCallTrace+0xafcd8
V [libjvm.so+0x513d5a] JNI_CreateJavaVM+0x7ca
V [libjvm.so+0x537284] JNI_CreateJavaVM+0x23cf4
C [libjava.so+0x17c90] JNU_GetStringPlatformChars+0xd0
...
module ProjectCore
class Application < Rails::Application
end
APP_DB_CONFIG = YAML.load(ERB.new(File.read("/etc/project-core/db.yml")).result)[Rails.env]
end
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
ServerName vhost.example.com
</VirtualHost>
<VirtualHost *:80>
RedirectMatch .* https://jira.example.com
ServerName jira.example.com
</VirtualHost>
<VirtualHost *:443>
ServerName jira.example.com
ServerAlias jira.example.com
Channels GET /channels should get be ok when logged in
Failure/Error: response.status.should eq(200)
expected: 200
got: 302