Skip to content

Instantly share code, notes, and snippets.

View sk0x1234's full-sized avatar
🎯
Focusing

Srinath koilakonda sk0x1234

🎯
Focusing
  • Newyork | SFO
  • 23:46 (UTC -12:00)
View GitHub Profile
@sk0x1234
sk0x1234 / ca.md
Created March 23, 2020 17:46 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@sk0x1234
sk0x1234 / ffmpeg-m3u8.txt
Created November 29, 2018 16:31
ffmpeg m3u8 stream
ffmpeg -protocol_whitelist file,tcp,tls,https,crypto -i index.m3u8 -c copy <FIlE NAME>
# Installation on Dell XPS 9570
# Connect to Internet
wifi-menu
# Sync clock
timedatectl set-ntp true
# Create three partitions:
@sk0x1234
sk0x1234 / visudo
Created September 27, 2018 04:55
sudoers scripts
USER HOST=NOPASSWD:/PATH/TO/FILE # u+x permission
@sk0x1234
sk0x1234 / wlp2s0-NJITsecure
Last active October 24, 2018 05:19
in /etc/netctl/ save it then run wifi-menu
Description='NJITsecure'
Interface=wlp2s0
Connection=wireless
Security=wpa-configsection
IP=dhcp
ESSID=NJITsecure
WPAConfigSection=(
'ssid="NJITsecure"'
'proto=RSN'
'key_mgmt=WPA-EAP'
@sk0x1234
sk0x1234 / wireshark-nonroot
Created January 25, 2018 06:40
Wireshark non user arch linux
install setcap command.
#setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/sbin/dumpcap
>su
#chown root /usr/sbin/dumpcap
#chmod u+s /usr/bin/dumpcap
Limiting capture permission to only one group
After having set dumpcap's network privileges:
@sk0x1234
sk0x1234 / .Xresources
Created December 19, 2017 14:26
Urxvt xresources
! URXVT GENERAL CONFIG
!------------------------------------------------
URxvt.geometry: 101x20
URxvt.imLocale: en_US.UTF-8
! URXVT FONTS
!------------------------------------------------
urxvt.letterSpace:1
urxvt.lineSpace: 1
urxvt*font: xft:lucy Tewi:size=10
@sk0x1234
sk0x1234 / dbus-glib
Created December 3, 2017 08:59
libdbus-glib-1.so.2 error TOR browseer
dbus-glib install
# or condition
grep -E 'pattern1|pattern2' filename
\\ egrep = grep -E
# And condition
grep -E 'pattern1.*pattern2' filename
# NOT
findstr /si password *.txt |*.xml|*.ini