This file contains hidden or 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
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script> | |
$( document ).ready(function() { | |
(function() { | |
'use strict'; | |
var forms = document.getElementsByClassName('needs-validation'); | |
var validation = Array.prototype.filter.call(forms, function(form) { |
This file contains hidden or 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
<script> | |
$( document ).ready(function() { | |
var field1 = $('#field1').text(); | |
var field2 = $('#field2').text(); | |
var field3 = $('#field3').text(); | |
$( "#submit_btn" ).click(function( event ) { | |
$.post( "proc.php", { field1:field1, field2:field2, field3:field13 | |
}, |
This file contains hidden or 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
#!/bin/sh | |
for m in 01 02 03 04 05 06 07 08 09 10 11 12 | |
do | |
for i in 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |
do | |
./awstats.pl -config=somename.host.com -Logfile=/WWW/logs/somename.host.com/2017/$m/$i/access_log -update | |
done | |
done |
This file contains hidden or 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
<View | |
android:layout_width="match_parent" | |
android:layout_height="1dp" | |
android:background="@android:color/darker_gray"/> | |
<View | |
android:layout_width="1dp" | |
android:layout_height="match_parent" | |
android:background="@android:color/darker_gray"/> |
This file contains hidden or 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
var http = require('http'); | |
http.createServer(function(req, res) { | |
const https = require('https'); | |
//https.get('https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY', (resp) => { | |
https.get('https://graph.facebook.com/517267866/?fields=picture', (resp) => { | |
let data = ''; |
This file contains hidden or 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
if ( $(".children_checkboxes:checked").length == $(".children_checkboxes").length ) | |
{ | |
$("#parent").prop("checked", true); | |
}else { | |
$("#parent").prop("checked", false); | |
} |
This file contains hidden or 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
openssl req -newkey rsa:2048 -new -nodes -keyout privatekey.pem -out csr.pem | |
openssl x509 -req -days 365 -in csr.pem -signkey key.pem -out server.crt |
This file contains hidden or 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
curl localhost:9200/_nodes/stats?pretty|grep -A 10 "jvm" | |
curl localhost:9200/_cluster/health?pretty | |
curl -X GET http://localhost:9200/_cat/indices | |
curl 'http://localhost:9200/_cat/nodes?v' |
This file contains hidden or 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
if (string.indexOf(',') > -1) { | |
array = string.split(',') | |
} |
This file contains hidden or 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
#Vagrant was unable to mount VirtualBox shared folders. This is usually because the filesystem "vboxsf" is not available. This filesystem is made available via the VirtualBox Guest Additions and kernel module. | |
#vagrant plugin install vagrant-vbguest | |
#vagrant reload |
OlderNewer