Skip to content

Instantly share code, notes, and snippets.

View geralexgr's full-sized avatar

Gerasimos Alexiou geralexgr

View GitHub Profile
using System;
using System.Threading.Tasks;
using System.Configuration;
using System.Collections.Generic;
using System.Net;
using Microsoft.Azure.Cosmos;
using cosmos;
using System.Timers;
public class Program
@geralexgr
geralexgr / github-update.ps1
Last active February 28, 2022 08:53
automatically update git repositories
#change your github location
$github_directory = "C:\Users\galexiou\Documents\GitHub"
Get-ChildItem $github_directory | ForEach-Object {
if($_.Attributes -eq "Directory")
{
Write-Host $_.FullName
Set-Location $_.FullName
git fetch
sudo ln -s /usr/bin/python3 /usr/bin/python
sudo ln -s /usr/local/bin/python3 /usr/local/bin/python
cat /etc/shadow | awk -F: '($2 == "" ) { print $1 " does not have a password "}'
pvcreate /dev/mapper/mpathX
vgextend vg /dev/mapper/mpathX
lvextend -l +100%FREE /dev/mapper/vg
@geralexgr
geralexgr / verify_openssl.txt
Last active November 2, 2018 10:29
verify ssl certificate installed correctly on server
openssl s_client -connect HOSTNAME:443
@geralexgr
geralexgr / extend_disk_virtualbox_mac.txt
Last active November 2, 2018 10:30
Extend Virtualbox disc drive mac OS (login as root required)
VBoxManage modifyhd --resize 60000 "/Users/USER/VirtualBox VMs/VM NAME/VM DISC NAME.vdi"
@geralexgr
geralexgr / cmd.txt
Last active October 12, 2017 10:03
SHA1 extraction for Xamarin.Forms Maps - Android
keytool.exe -list -v -keystore "%LocalAppData%\Xamarin\Mono for Android\Keystore\keystore\keystore.keystore" -alias NAME -storepass STOREPASS -keypass KEYPASS