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 | |
nmap --script ssl-enum-ciphers -p 443 www.google.com |
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
@startuml | |
!define dfd_f storage | |
!define dfd_db database | |
!define dfd_io rectangle | |
left to right direction | |
skinparam { | |
defaultTextAlignment center |
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 | |
# OS: Ubuntu 18.04 | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
# Reference: https://mirror.tuna.tsinghua.edu.cn/help/gitlab-runner/ | |
curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add - &>/dev/null | |
sudo echo 'deb https://mirrors.tuna.tsinghua.edu.cn/gitlab-runner/ubuntu bionic main' > /etc/apt/sources.list.d/gitlab-runner.list |
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 | |
# https://doc.livedns.gandi.net/ | |
# https://www.ipify.org/ | |
APIKEY='YourKeyGoesHere' | |
DOMAIN='example.com' | |
NAME='@' | |
IPADDR=`curl -s https://api.ipify.org/` |
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 | |
cp ~/.config/monitors.xml /var/lib/gdm3/.config/ | |
chmod 600 /var/lib/gdm3/.config/monitors.xml | |
chown gdm:gdm /var/lib/gdm3/.config/monitors.xml |
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
takeown /F NNNNNN /A /R /D Y /SKIPSL | |
icacls NNNNNN /reset /T /C /L |
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
Param ($DnsName) | |
$Cert = New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\My -DnsName $DnsName -Verbose | |
$Password = ConvertTo-SecureString -String $DnsName -Force -AsPlainText -Verbose | |
Export-Certificate -Cert $Cert -FilePath .\$DnsName.cer -Verbose | |
Export-PfxCertificate -Cert $Cert -FilePath .\$DnsName.pfx -Password $Password -Verbose | |
$CertThumbprint = $Cert.Thumbprint |
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 | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo apt-get install -y python-gevent python-pip python-m2crypto supervisor | |
sudo pip install shadowsocks | |
sudo mkdir -p touch /etc/shadowsocks |
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
gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier "<Super>" |
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
# If you want to reinstall the packages for a project | |
Update-Package -Reinstall -ProjectName Your.Project.Name | |
# If you want to reinstall the packages for a solution | |
Update-Package -Reinstall |
NewerOlder