$ docker
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
<?php | |
$address = "127.0.0.1"; | |
$port = 1984; | |
# nc -t 127.0.0.1 1984 | |
if (($sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) === false) { | |
echo "socket_create() failed: reason: " . socket_strerror(socket_last_error()) . "\n"; | |
} |
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
<?php | |
#print_r($argv); | |
if ($argc == 2) { | |
$ip = "127.0.0.1"; | |
$port = 1984; | |
$sending = $argv[1]."\n"; | |
$sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); | |
socket_connect($sock, "127.0.0.1", 1984); |
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
#!/usr/bin/env bash | |
echo -e DESKTOP"\t\t" $(xdg-user-dir DESKTOP) | |
echo -e DOWNLOAD"\t" $(xdg-user-dir DOWNLOAD) | |
echo -e TEMPLATES"\t" $(xdg-user-dir TEMPLATES) | |
echo -e PUBLICSHARE"\t" $(xdg-user-dir PUBLICSHARE) | |
echo -e DOCUMENTS"\t" $(xdg-user-dir DOCUMENTS) | |
echo -e MUSIC"\t\t" $(xdg-user-dir MUSIC) | |
echo -e PICTURES"\t" $(xdg-user-dir PICTURES) | |
echo -e VIDEOS"\t\t" $(xdg-user-dir VIDEOS) |
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
xstat() { | |
for target in "${@}"; do | |
inode=$(ls -di "${target}" | cut -d ' ' -f 1) | |
fs=$(df "${target}" | tail -1 | awk '{print $1}') | |
crtime=$(sudo debugfs -R 'stat <'"${inode}"'>' "${fs}" 2>/dev/null | | |
grep -oP 'crtime.*--\s*\K.*') | |
printf "%s\t%s\n" "${crtime}" "${target}" | |
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
# This is just a cheat sheet: | |
# On production | |
sudo -u postgres pg_dump database | gzip -9 > database.sql.gz | |
# On local | |
scp -C production:~/database.sql.gz | |
dropdb database && createdb database | |
gunzip < database.sql.gz | psql database |
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
https://books.goalkicker.com/DotNETFrameworkBook/DotNETFrameworkNotesForProfessionals.pdf | |
https://books.goalkicker.com/AlgorithmsBook/AlgorithmsNotesForProfessionals.pdf | |
https://books.goalkicker.com/AndroidBook/AndroidNotesForProfessionals.pdf | |
https://books.goalkicker.com/Angular2Book/Angular2NotesForProfessionals.pdf | |
https://books.goalkicker.com/AngularJSBook/AngularJSNotesForProfessionals.pdf | |
https://books.goalkicker.com/BashBook/BashNotesForProfessionals.pdf | |
https://books.goalkicker.com/CBook/CNotesForProfessionals.pdf | |
https://books.goalkicker.com/CPlusPlusBook/CPlusPlusNotesForProfessionals.pdf | |
https://books.goalkicker.com/CSharpBook/CSharpNotesForProfessionals.pdf | |
https://books.goalkicker.com/CSSBook/CSSNotesForProfessionals.pdf |
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
https://books.goalkicker.com/DotNETFrameworkBook/DotNETFrameworkNotesForProfessionals.pdf | |
https://books.goalkicker.com/AlgorithmsBook/AlgorithmsNotesForProfessionals.pdf | |
https://books.goalkicker.com/AndroidBook/AndroidNotesForProfessionals.pdf | |
https://books.goalkicker.com/Angular2Book/Angular2NotesForProfessionals.pdf | |
https://books.goalkicker.com/AngularJSBook/AngularJSNotesForProfessionals.pdf | |
https://books.goalkicker.com/BashBook/BashNotesForProfessionals.pdf | |
https://books.goalkicker.com/CBook/CNotesForProfessionals.pdf | |
https://books.goalkicker.com/CPlusPlusBook/CPlusPlusNotesForProfessionals.pdf | |
https://books.goalkicker.com/CSharpBook/CSharpNotesForProfessionals.pdf | |
https://books.goalkicker.com/CSSBook/CSSNotesForProfessionals.pdf |
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
#!/usr/bin/env bash | |
cd data | |
java -cp hsqldb.jar:bulletin.jar com.datasel.tpe.trademark.information.publication.cd.bulletin.appcli.TMBulletinCDApplication |
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
<html lang="tr"> | |
<head> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
document.addEventListener("keypress", function(e){ | |
console.log(e.key + " - " + e.keyCode + " - " + e.code); | |
}); | |
</script> |