Skip to content

Instantly share code, notes, and snippets.

View Tcarters's full-sized avatar

Tcarters Tcarters

  • Lunar Planet
  • 23:50 (UTC +05:30)
View GitHub Profile
@Tcarters
Tcarters / convert_cvs_to_yaml.py
Last active April 4, 2024 02:35
A demo to group data column in a csv file passing through python and using ansible to display it.
import csv
import yaml
# Path to your CSV file
csv_file_path = 'sample_ip.csv'
# Initialize an empty dictionary to store the groups and hostnames
groups = {}
# Open and read the CSV file
@Tcarters
Tcarters / made-with-love.html
Created June 23, 2021 17:18 — forked from oliveratgithub/made-with-love.html
Various snippets to add "Made with love" to your website using HTML, CSS and JavaScript
<!-- Example #1 - no styling -->
Made with ❤ in Switzerland
Made with ♥ in Switzerland
Made with ♡ in Switzerland
Made with ❤️ in Switzerland
Made with ♥️ in Switzerland
<!-- Example #2 - inline-styled ❤ -->
Made with <span style="color: #e25555;">&#9829;</span> in Switzerland
Made with <span style="color: #e25555;">&hearts;</span> in Switzerland

XFCE Desktop


How to install XFCE Desktop Environment in Kali Linux:

Command:

apt-get install kali-defaults kali-root-login desktop-base xfce4 xfce4-places-plugin xfce4-goodies

How to remove XFCE in Kali Linux:

Command:

@Tcarters
Tcarters / ip2dh.py
Created March 28, 2021 10:15 — forked from mzfr/ip2dh.py
Convert IP address to Decimal or hexadecimal format
"""
You can run this in the following format:
For decimal: python3 ip2dh.py D <Ip-address>
For Hexadecimal: python3 ip2dh.py H <Ip-address>
"""
#!/usr/bin/python3
import sys
if len(sys.argv) < 3:
@Tcarters
Tcarters / PowerView-3.0-tricks.ps1
Created February 24, 2021 18:39 — forked from HarmJ0y/PowerView-3.0-tricks.ps1
PowerView-3.0 tips and tricks
# PowerView's last major overhaul is detailed here: http://www.harmj0y.net/blog/powershell/make-powerview-great-again/
# tricks for the 'old' PowerView are at https://gist.github.com/HarmJ0y/3328d954607d71362e3c
# the most up-to-date version of PowerView will always be in the dev branch of PowerSploit:
# https://github.com/PowerShellMafia/PowerSploit/blob/dev/Recon/PowerView.ps1
# New function naming schema:
# Verbs:
# Get : retrieve full raw data sets
# Find : ‘find’ specific data entries in a data set
@Tcarters
Tcarters / update-golang.md
Created September 22, 2020 12:25 — forked from nikhita/update-golang.md
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by: