open-menu closeme
Home
Links icon
LinkedIn
About
English
github linkedin
  • Perform a git squash

    calendar May 24, 2022 · 1 min read · bash networking  ·
    Share on: twitter facebook linkedin copy

    I needed to copy code from one repo to another removing all prior commits, this did the trick 1git commit -m "Enter commit message for your new initial commit" 2 3# Overwrite the old master branch reference with the new one 4git branch -M new-master master```


    Read More
  • Quickly rebuild and OpenStack VM, tricking it into extra hardware

    calendar Apr 25, 2022 · 1 min read · bash youtube-dl  ·
    Share on: twitter facebook linkedin copy

    https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.217-1/virtio-win-0.1.217.iso Export VM definition to XML sudo virsh dumpxml instance-00000879 > instance-00000879.xml Edit the XML Set current OS disk to IDE 63079162-7de3-4f72-882c-b6942ebc008e Add CDROM Add a fake …


    Read More
  • Run yourube-dl in parallel

    calendar Apr 25, 2022 · 1 min read · bash youtube-dl  ·
    Share on: twitter facebook linkedin copy

    You can use youtube-dl to download individual videos, or you can ask it to download an entire playlist. When it’s downloading a playlist, it downloads the individual videos one-by-one, which isn’t particularly fast. Here’s a shell snippet that downloads playlist videos in parallel, which is faster: 1youtube-dl --get-id …


    Read More
  • Mellanox NIC's on Linux

    calendar Apr 19, 2022 · 1 min read · bash networking mellanox  ·
    Share on: twitter facebook linkedin copy

    A while back I had to configure a bunch of servers with Mellanox Connect-X 4 NIC's to talk to an ethernet Switch(Dell S6000-ON to be exact) and the NIC's that my customer had fitted not only had really old firmware but they were also in Infiniband(I think) mode, not Ethernet. So i had to do some legwork.. First job was …


    Read More
  • A cheap and easy webserver

    calendar Apr 13, 2022 · 1 min read · python bash  ·
    Share on: twitter facebook linkedin copy

    In the wise words of one of my collegues If you need a cheap http server 1python3 -m http.server


    Read More
  • Add suer to docker group

    calendar Apr 6, 2022 · 1 min read · linux bash  ·
    Share on: twitter facebook linkedin copy

    It feel like every time I run docker ps I get blah blah blah, permission denied The simple oneliner fix.. And the bonus, you dont even need to log out :) sudo usermod -G docker -a $USER && newgrp docker


    Read More
  • Linux VLAN interfaces

    calendar May 12, 2021 · 1 min read · bash networking vlan  ·
    Share on: twitter facebook linkedin copy

    Lets create a VLAN sub interface on a physical interface eth0 then add this new vlan subinterface eth0.10 to a new bridge br10 We might want to do this so that VM's running on this host have access to this VLAN 1ip link add link eth0 name eth0.10 type vlan id 10 2ip link set dev eth0.10 up 3brctl addbr br10 4brctl …


    Read More
  • Compress + Base64 encode a (log) file to allow copy via SSH

    calendar Apr 20, 2021 · 1 min read · ssh bash  ·
    Share on: twitter facebook linkedin copy

    Sometimes I need to move files from a server on which I have SSH access but these files are big and or have complex formatting which breaks if you just try and copy\paste the contents So, if we gzip the file then base64 encode this compressed file we now have a string thats much smaller than the original and it's in a …


    Read More
  • Fix horrid blue dir colors in bash

    calendar Sep 8, 2020 · 1 min read · BASH  ·
    Share on: twitter facebook linkedin copy

    1 echo "LS_COLORS=$LS_COLORS:'di=0;35:' ; export LS_COLORS" >> ~/.bashrc To fix the dir colour in the bash prompt, not just the LS output, set this in .bashrc: 1if [ "$color_prompt" = yes ]; then …


    Read More
  • Fix horrid blue dir colors in bash

    calendar Sep 8, 2020 · 1 min read · BASH  ·
    Share on: twitter facebook linkedin copy

    1 echo "LS_COLORS=$LS_COLORS:'di=0;35:' ; export LS_COLORS" >> ~/.bashrc To fix the dir colour in the bash prompt, not just the LS output, set this in .bashrc: 1if [ "$color_prompt" = yes ]; then …


    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • »
    • »»

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