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
<script> | |
$(document).ready(function(){ | |
$("input[type='submit']").click(function (event){ | |
var fout=false; | |
naamControle(); | |
function naamControle(){ | |
if($("#naam").val().trim()===""){ |
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
private StreamWriter swSender; | |
private StreamReader srReceiver; | |
private TcpClient tcpServer; | |
private Thread thrMessaging; | |
private IPAddress ipAddr; | |
private bool Connected; | |
private void InitializeConnection() | |
{ | |
// Parse the IP address |
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
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Enable-RemoteDesktop | |
cinst 7zip.install | |
cinst adobereader | |
cinst atom | |
cinst filebot | |
cinst filezilla | |
cinst firefox | |
cinst geforce-experience |
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
echo -e (echo "Welcome Samy Coenen!\n";and fortune -a)|cowsay -f (ls /usr/share/cowsay/cows/ | shuf -n1) | |
Add to your shell config: | |
- fish: ~/.config/fish/config.fish |
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
![Demo readme video](http://share.gifyoutube.com/....gif)](https://www.youtube.com/watch?v=......) |
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
# open console for vm | |
chmod 0600 ~/.ssh/authorized_keys |
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 su | |
# make interface available to everyone | |
chmod a+rw /dev/vmnet2 | |
# put interface in promiscuous mode | |
ifconfig vmnet2 promisc |
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 | |
# maak een kopie van de huidige instellingen en certificaten | |
mv /home/student/backup/letsencrypt /home/student/backup/letsencrypt.old2 | |
# zet de reverse_proxy_nginx uit, deze luisterd al reeds op poort 80, letsencrypt heeft deze poort nodig voor certificaten aan te vragen. | |
cd /home/student && docker-compose down | |
# Nu vragen we nieuwe certificaten aan. Deze komen op de locatie van /etc/letsencrypt | |
letsencrypt certonly --standalone -d vikingco.me -d www.vikingco.me -d kanban.vikingco.me -d jenkins.vikingco.me -d gitlab.vikingco.me -d api.vikingco.me -d test.vikingco.me -d testapi.vikingco.me -d php.vikingco.me -d testphp.vikingco.me |
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
# show disks | |
lsblk | |
# Read Test | |
sudo hdparm -Tt /dev/sdb | |
# Write Test | |
dd if=/dev/zero of=/tmp/output conv=fdatasync bs=384k count=1k; rm -f /tmp/output | |
# Gui Benchmark | |
gnome-disks | |
# select disk and do benchmark |
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 | |
# Author: Samy Coenen | |
# Company: Gluo NV | |
SOURCE=https://............es.amazonaws.com | |
indice_list="$(curl -XGET $SOURCE/_cat/indices?pretty=true -v | cut -d $' ' -f3)" | |
for item in $indice_list | |
do | |
elasticdump \ | |
--input=$SOURCE/$item \ | |
--output=$ \ |
OlderNewer