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
> netstat -aon |find /i "listening" |find "8080" | |
> Taskkill /PID 1448 /F |
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
$(document).on('change', '#clientupload', function () { | |
var x = document.getElementById("clientupload"); | |
if ('files' in x) { | |
if (x.files.length > 0) { | |
//only one file accepted | |
for (var i = 0; i < 1; i++) { | |
var myFile = x.files[0]; | |
var reader = new FileReader(); | |
reader.readAsText(myFile); | |
reader.onload = function () { |
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
var filename = ""; | |
var type = xhr.getResponseHeader('Content-Type'); | |
var blob = new Blob([response], {type: type}); | |
var URL = window.URL || window.webkitURL; | |
var downloadUrl = URL.createObjectURL(blob); | |
if (filename) { | |
// use HTML5 a[download] attribute to specify filename | |
var a = document.createElement("a"); |
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
sudo apt-get --purge remove postgresql-* | |
sudo rm -Rf /etc/postgresql /var/lib/postgresql | |
sudo apt-get install postgresql |
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
$ dnf -y install chrony | |
$ systemctl start chronyd | |
$ systemctl enable chronyd | |
$ firewall-cmd --add-service=ntp --permanent | |
$ firewall-cmd --reload | |
$ chronyc sources | |
210 Number of sources = 4 | |
MS Name/IP address Stratum Poll Reach LastRx Last sample | |
=============================================================================== |
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
// | |
// hasPosition trait | |
// | |
const hasPosition = state => ({ | |
setPosition: function(x, y) { | |
this.x = x; | |
this.y = y; | |
}.bind(state) | |
}); |
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
#!/bin/bash | |
branch=$1 | |
echo "--------------------------------" | |
echo "Moving to branch: ${branch}" | |
echo "--------------------------------" | |
git fetch | |
git checkout $branch |
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
sudo dnf update --nogpgcheck |
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
watchOptions: { | |
aggregateTimeout: 10000, | |
ignored: [ | |
/node_modules([\\]+|\/)+(?!@judo)/ | |
] | |
}, |
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
# .... | |
sudo dnf install webkitgtk |