Skip to content

Instantly share code, notes, and snippets.

View lifeofcoding's full-sized avatar
💭
4RwPdnGala2QfMua

Jimmy Rousseau lifeofcoding

💭
4RwPdnGala2QfMua
View GitHub Profile
#xrandr -q | grep " connected" to find dispplays
xrandr --output VGA-1 --brightness 1.1
xrandr --output HDMI-1 --brightness 1.1
@lifeofcoding
lifeofcoding / script-to-add-any-ppa.txt
Last active May 20, 2020 19:47
Script to add any third party repo to ANY machine (aka adding ubuntu repo to kali)
sudo apt-get install python3-software-properties
sudo apt-get install apt-file
sudo apt-file update
gksudo gedit /usr/sbin/add-apt-repository
-----------------------------------------------------------------------------------------------------------------
#!/bin/bash
if [ $# -eq 1 ]
NM=`uname -a && date`
@lifeofcoding
lifeofcoding / add-ppa-key.txt
Last active May 5, 2020 18:26
How to add repo key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <key here>
@lifeofcoding
lifeofcoding / volume.sh
Created April 29, 2020 18:49
volume control script
#!/bin/bash
# script name: volume
# Author: glaudistong at gmail.com
# depends on: yad, coreutils, pulseaudio
ps -ef | grep "yad" | grep -E "Volume [^+\-]" | tr -s " " | cut -d " " -f2 | xargs -i kill "{}" 2>/dev/null
DEFAULT_SINK=$(pactl info | grep "Default Sink" | cut -d " " -f3)
DEFAULT_SOURCE=$(pactl info | grep "Default Source" | cut -d " " -f3)
case "$1" in
init)
@lifeofcoding
lifeofcoding / myIP
Created April 23, 2020 02:03
print public IP address
curl -w '\n' ifconfig.me
@lifeofcoding
lifeofcoding / updatenoip.sh
Created April 23, 2020 01:48 — forked from mbierman/updatenoip.sh
Update no IP address
#!/bin/bash
###############################################################
## ChangeIP.com bash update script
###############################################################
## Written 3/18/09 by Tom Rinker, released to the Public Domain
## Re-write 09/15/2017 by Michael Bierman
## I replaced wget with curl so it can work on all macs.
## This works with no-ip.com
###############################################################
@lifeofcoding
lifeofcoding / ip.sh
Created April 23, 2020 01:48 — forked from SunDi3yansyah/ip.sh
IP address
#!/bin/bash
ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'
const pool = require('./proxies.js')
const useProxy = require('puppeteer-page-proxy')
const fs = require('fs')
const sh = require('shelljs')
const regex = /.*@[a-z]*\.[a-z]{2,3}:\S*/gim
const Counts = require('./.count.json')
const random_useragent = require('random-useragent');
const argv = require('yargs')
.option('source', {
alias: 's',
3e6a40dbb2d96e13ca74d18241698ce313ca1c079b04613b2abf0112