Skip to content

Instantly share code, notes, and snippets.

View TheRealJunior's full-sized avatar
💭
I may be slow to respond.

Guy Ishay TheRealJunior

💭
I may be slow to respond.
View GitHub Profile
@TheRealJunior
TheRealJunior / gist:dd5273a05ee7a110157289700ff4c6f1
Created May 12, 2020 18:20
bluetooth audio bluez bluez-tools bluetooth ctl speaker headset shit
pulseaudio -k
pulseaudio --start
bluetoothctl
power on
agent on
scan on
pair <mac-addr>
connect <mac-addr>
@TheRealJunior
TheRealJunior / gist:808b7c913508d326967b896f0eb7ef43
Created May 12, 2020 17:19
gnome control center settings crash abort i3
XDG_CURRENT_DESKTOP=GNOME gnome-control-center
@TheRealJunior
TheRealJunior / zshrc
Last active May 14, 2020 18:32
xclip clipboard copy paste terminal action
alias clip="xclip -i"
alias clip="xsel -ib"
@TheRealJunior
TheRealJunior / network protocol ascii header
Created March 11, 2020 21:24
describe network protocols ascii headers network protocol python
https://github.com/luismartingarcia/protocol
@TheRealJunior
TheRealJunior / wif
Created February 22, 2020 13:49
wifi terminal ubuntu server
Connect to Wi-Fi From Terminal on Ubuntu 18.04/19.10 with WPA Supplicant
Last Updated: February 3, 2020 Xiao Guoan (Admin) 24 Comments Ubuntu
In this tutorial, we are going to learn how to connect to Wi-Fi network from command line on Ubuntu 18.04/19.10 server and desktop using wpa_supplicant. In a modern home wireless network, communications are protected with WPA-PSK (pre-shared key) as opposed to WPA-Enterprise, which is designed for enterprise networks. WPA-PSK is also known as WPA-Personal. wpa_supplicant is an implementation of the WPA supplicant component. A supplicant in wireless LAN is a client software installed on end-user’s computer that needs to be authenticated in order to join a network.
Step 1: Enable Wireless Card on Ubuntu 18.04/19.10
First, make sure your wireless card is enabled. You can use rfkill.
sudo apt install rfkill
To check the status of wireless card, run
@TheRealJunior
TheRealJunior / bootable.sh
Created February 22, 2020 12:41
create bootable disk cli ubuntu live disk boot usb
sudo dd bs=4M if=path/to/input.iso of=/dev/sd<?> conv=fdatasync status=progress
@TheRealJunior
TheRealJunior / python.json
Created February 8, 2020 09:30
vscode frida python snippet
{
// Place your snippets for python here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@TheRealJunior
TheRealJunior / i3.md
Created February 2, 2020 21:17
i3 window manager

dmenu_run wasn't working for me. googling a bit this worked: ➜ ~ LC_ALL=en_US.UTF-8 dmenu_run

when i did dmenu_run without it i had a warning called no locale support, that solved it

@TheRealJunior
TheRealJunior / patch.md
Last active March 29, 2021 18:30
patch apktool apk crack

Create diff of directory

$ diff -ruN OriginalDir UpdatedDir > PatchFile

Apply patch

$ patch -p1 -r  &lt; 
@TheRealJunior
TheRealJunior / torrent.sh
Created January 14, 2020 21:07
transmission cli torrent cli download file torrentz the
transmission-cli magnet:?xt=urn:btih:e249fe4dc957be4b4ce3ecaac280fdf1c71bc5bb&dn=ubuntu-mate-16.10-desktop-amd64.iso -w ~/Downloads