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
This is just a description of how to use Slack Message Tool, | |
You can backup and delete all the Slack messages at once with this easy app. Just choose what to do and our amazing magic will do that job for you. | |
https://www.messagebender.com/ |
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
[ | |
{ "uni" : "Abdullah Gül Üniversitesi" }, | |
{ "uni" : "Adana Alparslan Türkeş Bilim ve Teknoloji Üniversitesi" }, | |
{ "uni" : "Adıyaman Üniversitesi" }, | |
{ "uni" : "Afyon Kocatepe Üniversitesi" }, | |
{ "uni" : "Afyonkarahisar Sağlık Bilimleri Üniversitesi" }, | |
{ "uni" : "Akdeniz Üniversitesi" }, | |
{ "uni" : "Aksaray Üniversitesi" }, | |
{ "uni" : "Alanya Alaaddin Keykubat Üniversitesi" }, | |
{ "uni" : "Amasya Üniversitesi" }, |
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/bash | |
ssh user@IP " echo 'server { | |
listen 80; | |
server_name sysmon.tecmint.lan; | |
location / { | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_set_header Host $http_host; | |
proxy_pass http://localhost:5000; | |
} |
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/bash | |
ssh user@IP "cd /var/www; git pull https://GIT_REPO_WITH_TOKEN; cd /var/www; npm install ; npm run build ;pm2 delete APP_NAME ; pm2 start index --name APP_NAME" |
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
String.prototype.cleaner = function(){ | |
return this.replace(/\t|\n|\r|:|\s/g,''); | |
} | |
"ugur kazdal \t\t".cleaner(); | |
outputs : ugurkazdal |
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
Array.prototype.cleaner = function(){ | |
return this.filter(n => n) | |
} | |
var arr = ["asd","","aa"]; | |
console.log(arr.cleaner()); | |
//"asd","aa" |
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
crontab -l | grep -v '^#' | cut -f 6- -d ' ' | while read CMD; do eval $CMD; done | |
#thanks to Django Janny on Stackoverflow |
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
declare global { | |
interface String { | |
fullTrim(); | |
strip(); | |
cleanQuotas(); | |
cleanCommas(); | |
floatReplacer(); | |
cleanHtmlChars(); | |
} | |
interface Object { |
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
version: "3" | |
services: | |
web: | |
build: ./web/ | |
volumes: | |
- ./app/:/var/www/html/ | |
ports: | |
- 8000:80 | |
networks: |
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
let tempTimeStamp = 0; | |
window.addEventListener('scroll', function (event) { | |
if(((event["timeStamp"] - tempTimeStamp) / 1000) < 5){ //how many seconds you rely on. | |
tempTimeStamp = event["timeStamp"]; | |
}else{ | |
console.log(( event["timeStamp"] - tempTimeStamp) / 1000) | |
tempTimeStamp = event["timeStamp"]; | |
//use withinviewport in here. | |
} |