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
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
type ErrNegativeSqrt float64 | |
func (e ErrNegativeSqrt) Error() string { |
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/sh | |
nocolor='33[0m'; | |
color0='33[0;30m'; | |
color1='33[0;31m'; | |
color2='33[0;32m'; | |
color3='33[0;33m'; | |
color4='33[0;34m'; | |
color5='33[0;35m'; | |
color6='33[0;36m'; | |
color7='33[0;37m'; |
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
https://askubuntu.com/questions/895492/kernel-panic-vfs-cannot-open-root-device-or-unknown-block-error-6 | |
sudo update-initramfs -u -k $(uname -r) | |
https://askubuntu.com/questions/41930/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block0-0 | |
sudo fdisk -l | |
sudo mount /dev/sda2 /mnt | |
sudo mount --bind /dev /mnt/dev | |
sudo mount --bind /dev/pts /mnt/dev/pts |
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 '.list_container.hide{margin-bottom:50px !important}' >> themes/original/css/theme.css | |
sed -i 's/#pma_navigation{background:#fff;/#pma_navigation{background:#d00;/g' themes/original/css/theme.css | |
sed -i 's/#pma_navigation_tree li.selected{color:#000;background-color:#eee}/#pma_navigation_tree li.selected{color:#000;background-color:#b00}/g' themes/original/css/theme.css | |
sed -i 's/body{font-family:sans-serif;/body{font-family:Ubuntu,sans-serif;/' themes/original/css/theme.css | |
sed -i '5,9d' templates/login/header.twig |
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
dc() { | |
project=$1 | |
container=$2 | |
check=echo $project | grep "laravel" | |
if [ -z $check ]; then | |
path="frontend" | |
if [ -z $container ]; then |
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
IPV6=no |
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
network: | |
ethernets: | |
eno1: | |
addresses: | |
- 192.168.10.4/24 | |
dhcp4: no | |
routes: | |
- to: 192.168.10.0/24 | |
via: 192.168.10.1 | |
routing-policy: |
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
AuthUserFile /etc/proftpd.passwd | |
RequireValidShell off | |
ListOptions -la | |
PassivePorts 12000 12100 | |
MasqueradeAddress 111.112.10.11 |
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
nmap -Av -sT 10.10.10.20 |
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
listen_port=2221 | |
local_umask=002 | |
pasv_enable=YES | |
pasv_max_port=50000 | |
pasv_min_port=40000 | |
pasv_address=111.112.11.12 | |
pasv_addr_resolve=NO | |
listen_ipv6=no |
NewerOlder