open-menu closeme
Home
Links icon
LinkedIn
About
English
github linkedin
  • Run cryptominer while the screen is locked

    calendar May 30, 2020 · 1 min read · CRYPTOMINER  ·
    Share on: twitter facebook linkedin copy

    1dbus-monitor --session "type=signal,interface=org.gnome.ScreenSaver" | 2while read MSG; do 3LOCK_STAT=`echo $MSG | grep boolean | awk '{print $2}'` 4if [[ "$LOCK_STAT" == "true" ]]; then 5echo "was locked" 6killall ethdcrminer64 7screen -d -m …


    Read More
  • Bulk add IP's to Netbox IPAM and attach to Interface

    calendar May 27, 2020 · 1 min read · NETBOX NETBOX-IPAM IP CONFIG  ·
    Share on: twitter facebook linkedin copy

    I need to add a /30 IP to every interface on a switch to enable host based routing in a virtualization cluster. I'm lazy and didn't want to key them all in by hand. So I wrote this script in Pyhton3 It uses a starting interface ID(Assuming that all of the interfaces on your switch are in numerical order) and it uses a …


    Read More
  • Moutning a CephFS share using ceph-fuse

    calendar May 16, 2020 · 1 min read · linux ceph  ·
    Share on: twitter facebook linkedin copy

    I always forget how to mount the subfolder of a CephFS filesystem sudo ceph-fuse -m 192.168.2.9:6789 -r /subfolder /folder/on/my/machine Note: The proceeding / after the -r is important Some great info here on restricting access to specific folders and more notes on mounting …


    Read More
  • Notes on using nmap

    calendar Apr 29, 2020 · 1 min read · linux networking  ·
    Share on: twitter facebook linkedin copy

    Nmap Scan subnet for PTR's When you need to scan an entire subnet for 'research purposes' and check for any associated PTR's we can use Nmap   nmap -R -sL 103.112.200.0/22 > results.txt


    Read More
  • Thoughts and notus for using swap space

    calendar Mar 24, 2020 · 2 min read · linux swap  ·
    Share on: twitter facebook linkedin copy

    Whats using swap space for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | sort -k 2 -n -r | less Who is eating all of my RAM? ps aux --sort=-%mem | head Where are my swap files cat /proc/swaps How to add more swap space 1. Create empty file: This file will contain virtual …


    Read More
  • EasyRSA - Make a certificate and copy to ansible staging dir

    calendar Feb 27, 2020 · 1 min read · linux pki  ·
    Share on: twitter facebook linkedin copy

    I use this script on my CA server to create a certificate for each new server we provision. This allows our internal PKI to function. This script creates a certificate then copies it to the Ansible server where is can be deployed to the destination host Obviously you'll need to take the necessary precautions around key …


    Read More
  • Ubuntu interfaces file examples

    calendar Feb 27, 2020 · 1 min read · linux networking  ·
    Share on: twitter facebook linkedin copy

    Example 1 - Includes some static routes and manually specified IP's auto lo iface lo inet static address 103.90.59.9/32 auto ens3 iface ens3 inet static address 172.2.1.17 network 172.2.1.0 netmask 255.255.254.0 up route add -net 172.2.0.0 netmask 255.255.0.0 gw 172.2.1.1 up route add -net 172.2.0.0 netmask 255.255.0.0 …


    Read More
  • Putty SSH settings to stop garbled output

    calendar Sep 24, 2019 · 1 min read · PUTTY SSH CONFIG UBUNTU-18  ·
    Share on: twitter facebook linkedin copy

    Using Ubuntu 18 and tools like glances and iftop would often mangle the output Changing the default Puttty settings 'Connection > Data > 'Terminal-type string' to 'putty' instead of 'xterm' and setting your PuTTY settings under Translation and ensure that you have UTF-8 set as the character set then save this as …


    Read More
  • Copy files from Android phone using ADB - Quicker than MTP

    calendar Sep 21, 2019 · 1 min read · ANDROID ADB MTP  ·
    Share on: twitter facebook linkedin copy

    When backing up photos form my Android phone i found that the phone didn't present as a mass storage device, it would only appear as a MTP\PTP device and the file copy speed was terrible. So some research led me to using the ADB command, you'll need to enable USB debugging before this will work. Find your files 1adb …


    Read More
  • MYSQL Backup to S3 script

    calendar Sep 18, 2019 · 1 min read · linux mysql  ·
    Share on: twitter facebook linkedin copy

    Script #!/bin/bash # Set the enviroment variable so read function knows to seperate on ",". export IFS="," NOW=$(date +"%Y_%m_%d_%H_%M") DATABASES_CONFIG_FILE="/home/bfnadmin/databases.csv" S3_ENDPOINT="https://my-s3-storage.com" S3_BUCKET="s3://sql-backups" TEMP_BACKUP_DIR="backups" while read HOST USERNAME PASSWORD …


    Read More
    • ««
    • «
    • 5
    • 6
    • 7
    • 8
    • 9
    • »
    • »»

Cory Hawkvelt photo

Cory Hawkvelt

CTO @ Nexgen Cloud | Career Nerd and Open Source Cloud Architect
Read More

Recent Posts

  • Converting Cisco AirAP3802i to Mobility Express Mode
  • Mastering SSH Certificates: A Comprehensive Guide
  • My First Dabbling with LoRa
  • Deploying pam_ussh: A Comprehensive Guide
  • Validating SSH Certificates with a Local CA Using Python
  • Unpacking the NVIDIA H100 Tensor Core GPU: A Deep Dive for CTOs
  • Caddy proxy for OpenStack API's
  • HP Server ACPI errors

Categories

ARDUINO 1 LORA 1

Tags

LINUX 32 CEPH 25 BASH 23 OPENSTACK 13 NETWORKING 11 DOCKER 8 CONFIG 6 SSH 6 HP 5 HPACUCLI 5 OPENSTACK-QUEENS 5 QEMU 5 TROUBLESHOOTING 5 CENTOS7 4
All Tags
ACTIVE-BACKUP1 ADB1 AI1 AIRAP1 ANDROID1 ANSIBLE2 APT1 ARDUINO1 AUTHENTICATION1 AUTODISCOVER1 BACKUP1 BACKUPS1 BASH23 BIND1 BLUETOOTH1 CACHE1 CADDY1 CAS1 CENTOS74 CEPH25 CEPH-NAUTILUS1 CERTIFICATES1 CINDER3 CISCO1 COLLECTD1 COMWARE1 CONFIG6 CRYPTOLOCK1 CRYPTOMINER2 DATABASE1 DELL1 DELL-S600-ON1 DELLMD3060JBOD1 DEVOPS1 DHCP1 DISK-MGMT1 DNS1 DOCKER8 DRIVERS1 ESP826621 ESPTOOL1 FAIL2BAN1 FEDORA261 FIBRECHANNEL1 FIRMWARE1 FREEOTP1 FTOS1 GATEWAY1 GIT1 GNOCCHI3 GO1 GPU1 H1001 HAPROXY2 HARDWARE2 HORIZON1 HP5 HP-ILO1 HPACUCLI5 HPC1 HTTP1 HUGO1 HYPER-V1 INDEX1 IP2 IPTABLES1 IPV61 KEYCLOAK1 KEYGEN3 KEYSTONE1 KOLLA1 KVM2 LE1 LIBRENMS1 LINUX32 LOGO1 LORA1 MAAS1 MATTERMOST1 MEGACLI1 MELLANOX1 MELTDOWN1 MEMCACHED1 MIKROTIK2 MOUSE1 MTP1 MYSQL4 NAMED1 NAT1 NETBOX1 NETBOX-IPAM1 NETWORK-MANAGER1 NETWORKING11 NEUTRON1 NOVA1 NOVNC1 NPS1 NVIDIA2 OPENNEBULA1 OPENSTACK13 OPENSTACK-QUEENS5 OPENSWITCH1 OPENVSWITCH1 OVN1 PAM1 PCI1 PKI1 PORT1 PRINTER1 PROXMOX1 PUTTY1 PYTHON1 QEMU5 RABBITMQ1 RADIUS1 RADOSGW2 RAID3 RANGE-TEST1 RBD3 ROCKY-GLANCE1 ROUTING1 SCRIPT1 SECURITY2 SERVER1 SERVER-20121 SMTP1 SNMP1 SPECTRE1 SPEEDTEST1 SSH6 SSL1 SVG1 SWAP1 SYSCOMMANDS1 TCP1 TCP-DUMP1 TCPDUMP1 TROUBLESHOOTING5 UBUNTU4 UBUNTU-182 UBUNTU-201 UBUNTU-GNOME1 UBUNTU171 UEFI1 VAGRANT2 VIRTUAL-NETWORK1 VIRTUALISATION1 VLAN1 VM2 VPN1 VXLAN2 WINDOWS2 WINDOWS-AD1 WIRELESS1 WIRESHARK1 YOUTUBE-DL2
[A~Z][0~9]

Copyright 2022-  . All Rights Reserved

to-top