Skip to content

Instantly share code, notes, and snippets.

View johsjohsjohs's full-sized avatar
💭
git clone git://git.suckless.org/dwm

Johannes Hove-Henriksen johsjohsjohs

💭
git clone git://git.suckless.org/dwm
View GitHub Profile
@johsjohsjohs
johsjohsjohs / head-me-first.sh
Last active June 28, 2022 22:52
This script will sort 1.md 2.md 3.md than head all the files and get the first line
#!/bin/sh
ls -1 *.md | sort -n|xargs head -1|less
@johsjohsjohs
johsjohsjohs / proxychains.sh
Created June 21, 2022 16:26
This script converts https://github.com/TheSpeedX/PROXY-List format to proxychains format and than pipes it to xclip soo that i can copy and past it in proxychains.conf
#!/bin/sh
cat socks4| awk '{print "socks4 " $NF}' |sed 's/:/ /g' | xclip -sel clip
@johsjohsjohs
johsjohsjohs / 01-keyright.diff
Created June 18, 2022 20:31
This is a patch for sfeed_curses that makes the L key also open panel
keyright:
case 'l':
if (selpane == PaneFeeds && panes[selpane].nrows)
feed_open_selected(&panes[selpane]);
else if (selpane == PaneItems && panes[selpane].nrows)
feed_pipe_selected_item(&panes[selpane]);
break;
case '\t':
selpane = selpane == PaneFeeds ? PaneItems : PaneFeeds;
if (layout == LayoutMonocle)
@johsjohsjohs
johsjohsjohs / nrkfzf.sh
Created June 17, 2022 10:23
i tried making a ytfzf.sh for nrk but thery search api sucks
#!/bin/bash
Help()
{
# Display Help
echo "nrkfzf is a script that search on tv.nrk.no and pipes it to fzf"
echo
echo "Syntax: nrkfzf [-c|h|t|v|V]"
echo "options:"
echo "c Search with category"
@johsjohsjohs
johsjohsjohs / fmsb.py
Created June 17, 2022 10:19
python script for spaming facebook chat box
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from time import sleep
class itsb:
def __init__(self):
self.driver = webdriver.Firefox()
def login_it(self):
sleep(4)
@johsjohsjohs
johsjohsjohs / feide.py
Created June 17, 2022 10:15
This is a spam bot for auto spaming in itslernaing chat
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from time import sleep
class itsb:
def __init__(self):
self.driver = webdriver.Chrome()
def login_it(self): #login in with itslearning
self.driver.get('https://www.itslearning.com/welcome.aspx')
#sleep(1)