Skip to content

Instantly share code, notes, and snippets.

View tjunussov's full-sized avatar

Tim TJey Jun tjunussov

View GitHub Profile
// Find and Execute recursive -maxdepth 1
find /xfaces -type f -name "*.xhtml" -execdir node /home/sp/xhtml2html/xhtml2html.js {} \;
// html
<span style="fill:#000;">
<span ui-include="'icon.svg'"></span>
</span>
// svg inherit color
<svg fill="currentColor">
// Current Context
-- current()/@href
<xsl:apply-templates select="//cd[@title=current()/@ref]"/>
// Template Matchings
-- Attribute Value StartWith
<xsl:template match="input[starts-with(@type, '$')]">
-- Tag Proxying
require('net')
.createServer( function(socket)
{
socket.write('SSH-3.0-OpenSSH_1.2_Guard\r\n');
console.log('SSHD Noop Service - '+socket.remoteAddress );
})
.listen(22, function()
{
console.log('SSHD Noop Service - Started at 22 port')
})
@tjunussov
tjunussov / devd.io congif
Last active November 18, 2016 10:35
devd. configurations
::devd.exe -a -p 3000 -l . http://192.168.99.1:8080
::devd.exe -a -p 3000 -l . /rest/=http://192.168.99.1:8080/rest/
devd.exe -x "{**.bat,**.md,**.xml,**.tc,,**.map}" -a -p 80 -l . /rest/=http://192.168.99.1:8080/rest/ /auth/=http://192.168.99.1:8180/auth/
devd.exe -x "**/*.bat" -x "**/*.ts" -x "**/*.map" -x "**/*.xml" -a -p 80 -l . /rest/=http://192.168.99.1:8080/rest/ /auth/=http://192.168.99.1:8180/auth/ static/assets=./assets --debug --crossdomain
@tjunussov
tjunussov / scrolable.html
Last active October 20, 2016 18:50
Scrollable Layout with autowidth
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Scrollable</title>
<script src="https://code.jquery.com/jquery-1.12.4.min.js" type="application/javascript"></script>
<style>
html,body { width: 100%; height:100%; display: block; }
* { box-sizing: border-box; padding: 0; margin: 0;}
@tjunussov
tjunussov / windows.txt
Created October 4, 2016 07:12
Windows Cleanup
Dism.exe /online /Cleanup-Image /StartComponentCleanup
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
Dism.exe /online /Cleanup-Image /SPSuperseded
SUB FOLDERS & SIZES
11.4 GB C:\Windows\winsxs
2.4 GB C:\Windows\System32
2.2 GB C:\Windows\Installer
1.7 GB C:\Windows\assembly
1.2 GB C:\Windows\SysWOW64
Конфигурация NGINX
root /var/nginx/www/my.kazpost.kz;
location / {
try_files /500.html @conf;
}
location @conf {
proxy_redirect off;
<VirtualHost *:80>
DocumentRoot "I:\[ Work ]\_Kazpost\monitor.kazpost.kz\site"
ServerName monitor.kazpost.loc
DirectoryIndex index.html index.xhtml
AddType text/xsl .xsl
<Directory "I:/[ Work ]/_Kazpost/monitor.kazpost.kz/site">
Options Indexes FollowSymLinks
BEGIN
BEGIN EXECUTE IMMEDIATE 'DROP TABLE confluence.bandana_tmp';
EXCEPTION WHEN OTHERS THEN dbms_output.put_line('Not Dropped'); END;
EXECUTE IMMEDIATE 'CREATE TABLE confluence.bandana_tmp AS SELECT * FROM confluence.bandana WHERE ROWNUM < 2';
EXECUTE IMMEDIATE 'DELETE FROM bandana_tmp';
FOR a IN (
SELECT ROWNUM, a.bandanaid, a.bandanacontext, a.bandanakey, a.bandanavalue