Skip to content

Instantly share code, notes, and snippets.

View hosamn's full-sized avatar
🎯
Focusing

Hosam hosamn

🎯
Focusing
View GitHub Profile
@hosamn
hosamn / export-wifi-profiles.cmd
Last active August 20, 2023 08:36 — forked from dolmen/export-wifi-profiles.cmd
Export all Windows Wifi profiles (SSID, password) in XML
View export-wifi-profiles.cmd
:: Run with full administrator rights
netsh wlan export profile folder=. key=clear
@hosamn
hosamn / tweet_dumper.py
Created January 31, 2023 12:14 — forked from onmyeoin/tweet_dumper.py
A script to download all of a user's tweets into a csv
View tweet_dumper.py
#!/usr/bin/env python
# encoding: utf-8
import tweepy
import csv
def get_all_tweets(screen_name):
consumer_key = ""
consumer_secret = ""
@hosamn
hosamn / tweet_dumper.py
Last active February 7, 2023 22:19 — forked from yanofsky/LICENSE
A script to download all of a user's tweets into a csv
View tweet_dumper.py
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
@hosamn
hosamn / tweetthreader.py
Created January 31, 2023 11:56 — forked from pratikone/tweetthreader.py
This script fetches and creates threads from twitter statuses of a twitter profile. A thread is a series of tweets created by replying to your own tweet.
View tweetthreader.py
import os
import re
import time
from collections import namedtuple
import codecs
import tweepy
import json
from datetime import datetime
from requests.exceptions import Timeout, ConnectionError
from requests.packages.urllib3.exceptions import ReadTimeoutError, ProtocolError
@hosamn
hosamn / 0.telegram-script README.md
Last active December 3, 2022 02:04 — forked from YuniorGlez/0.README.md
Telegram chat backup/export
View 0.telegram-script README.md

How to use

  1. Login to https://web.telegram.org
  2. Copy-paste contents of telegram-scripts.js into JS console
  3. Run showContacts() or showDialogs() to get the list of contacts with ids or the 20 last conversations in the same order of the client view
  4. Run saveChat(userId) where userId is the id from step 3 (inside the [] )

Process can take a while, check console for progress. Occasionall FLOOD_WAIT errors are expected. Once done, browser will download the JSON file.

Motivation

@hosamn
hosamn / PS4 PKGs CUSA1-10000.csv
Created November 28, 2022 21:04
PS4 - Single PKG Downloads - CUSA1-10000
View PS4 PKGs CUSA1-10000.csv
We can't make this file beautiful and searchable because it's too large.
Parental Level,Game Title,File Offset,PlayStation PRO Support,Current Version,Instant Download,Package Size,PlayStation VR,Piece,SHA1 Hash,Title ID,Play Together
3,THE PLAYROOM,0,No,1.07,http://gs2.ww.prod.dl.playstation.net/gs2/ppkgo/prod/CUSA00001_00/9/f_ef965b581d35637dabc96366f29f1f0ece58c8fa9158b0eb7de9407ae72272e8/f/IP9100-CUSA00001_00-PLAYROOM00000000-A0107-V0100.pkg,34.9MB,No,0,22774b6c655f47dffce0eb7e15c5e865dce6a849,CUSA00001_00,
9,KILLZONE SHADOW FALL,0,No,1.81,http://gs2.ww.prod.dl.playstation.net/gs2/ppkgo/prod/CUSA00002_00/58/f_0882efa770fbf5b9a03b4decce248e8f07fd9585cbe43c44791799952c62fd14/f/EP9000-CUSA00002_00-KZ4RELEASE000041-A0181-V0100.pkg,2.9GB,No,0,552b7127dac3ee8ab5ce2ae051f6436c3ec605fc,CUSA00002_00,
7,inFAMOUS Second Son,0,Yes,1.07,http://gs2.ww.prod.dl.playstation.net/gs2/ppkgo/prod/CUSA00004_00/28/f_2881c3732328a643917aeb4c1e73b916c1d6baa7ea09e2e81f33d5f139ea9449/f/EP9000-CUSA00004_00-SECONDSONSHIP000-A0107-V0100.pkg,3.7GB,No,0,0538bdff843286013877ab92e5dc936b1407ddcb,CUSA00004_00,
View DlPSgame.org Userscript.user
// ==UserScript==
// @name DlPSgame.org Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Reflow the website header after adblock hides the ads!
// @author Hosamn
// @match *://*.dlpsgame.org/*
// @exclude https://dlpsgame.org/home/
// @icon https://www.google.com/s2/favicons?sz=64&domain=playstation.com
// ==/UserScript==
View BasinOutline.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View api.pkg-zone.com.json
{
"packages": [
{
"id": "BBFF12362",
"name": "Kill'em All.",
"desc": "Title says it all",
"image": "http://api.pkg-zone.com/storedata/killemall_icon0.png",
"package": "https://pkg-zone.com/details/BBFF12362",
"version": "1.00",
"picpath": "/user/app/NPXS39041/storedata/killemall_icon0.png",
View ps4_theme_links_private.csv