Skip to content

Instantly share code, notes, and snippets.

View TrevCan's full-sized avatar
🖖

Hector Canizales TrevCan

🖖
View GitHub Profile
#!/usr/bin/env python3
"""
A userscript to display all things running on localhost.
Either that or to open up a localhost given a port as input.
"""
import os
from shlex import join
import psutil
from jinja2 import Template
@tjluoma
tjluoma / youtube-rss.sh
Last active January 3, 2023 09:00
Did you know YouTube has RSS feeds? No? Probably because YouTube makes them nearly impossible to find. But here's an easy way to get the RSS feed for any YouTube user. Inspired by <https://eggfreckles.net/notes/youtube-rss/>
#!/usr/bin/env zsh -f
# Purpose: get the RSS feed for a YouTube page
# Inspired By: https://eggfreckles.net/notes/youtube-rss/
# Gist: https://gist.github.com/tjluoma/fdbc63ceb78a2aecd3d638fd18b6ec6e
#
# From: Timothy J. Luoma
# Mail: luomat at gmail dot com
# Date: 2020-01-17; updated 2021-01-10
# 2021-01-10 YouTube currently has both 'rssUrl' and
@ofyalcin
ofyalcin / $250 DigitalOcean Coupon Code - $250 DigitalOcean Credit - DigitalOcean Promo Code 2023.md
Last active November 28, 2023 12:41
$250 DigitalOcean Coupon Code - $250 DigitalOcean Credit - DigitalOcean Promo Code 2023

DigitalOcean Coupon Code.md

Hi everyone.

Today I will show you how to earn $200+$50 free credit for digitalocean.

Lets start.

Dont forget, you must have a new account on digitalocean for earn $250 coupon code.

@steven2358
steven2358 / ffmpeg.md
Last active March 26, 2024 17:50
FFmpeg cheat sheet
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active March 28, 2024 00:38
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
This work, excluding the Arch Linux logo, is made available under CC0: https://creativecommons.org/publicdomain/zero/1.0/
@ethack
ethack / TypeClipboard.md
Last active March 27, 2024 21:31
Scripts that simulate typing the clipboard contents. Useful when pasting is not allowed.

It "types" the contents of the clipboard.

Why can't you just paste the contents you ask? Sometimes pasting just doesn't work.

  • One example is in system password fields on OSX.
  • Sometimes you're working in a VM and the clipboard isn't shared.
  • Other times you're working via Remote Desktop and again, the clipboard doesn't work in password boxes such as the system login prompts.
  • Connected via RDP and clipboard sharing is disabled and so is mounting of local drives. If the system doesn't have internet access there's no easy way to get things like payloads or Powershell scripts onto it... until now.

Windows

The Windows version is written in AutoHotKey and easily compiles to an executable. It's a single line script that maps Ctrl-Shift-V to type the clipboard.

@alirobe
alirobe / reclaimWindows10.ps1
Last active March 28, 2024 12:31
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@francis2110
francis2110 / irEmitterApp
Created January 23, 2015 10:32
application for send infrared codes to LG tv with arduino
#include <IRremote.h>
IRsend irsend;
#define onOffReceived 10
#define energyRcv 11
#define avMode 12
#define input 13
#define tvRad 14
#define list 15
#define quickView 16
#define volumeUp 17
@jouyouyun
jouyouyun / xgrabkey.c
Created July 29, 2014 04:21
Test XGrabKey
//Compile: gcc xgrabkey.c `pkg-config --cflags --libs x11`
#include <stdio.h>
#include <X11/Xlib.h>
int
main ()
{
Window root;
Display *dpy = NULL;