This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/python | |
# if yes or no doesn't work try using quotes | |
# example 'yes' or 'no' | |
import os | |
import sys | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# desktop background as web page using webkit and proxy settings | |
# https://kmandla.wordpress.com/2010/05/24/the-1-2kb-python-browser-script/ | |
# - proxy support is included in webkit no need of -- http://stackoverflow.com/questions/6915840/python-webkit-with-proxy-support | |
# http://superuser.com/questions/419195/set-an-html-page-as-the-wallpaper-on-linux | |
import sys | |
import gtk | |
import webkit | |
import webbrowser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Python bot for comment a list of urls in YouTube | |
import time | |
import numpy as np | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
"""Python Spintax parser | |
This module provides an efficient spintax parser where every possible spuns have the same probability. | |
Given a masterspin you can get the total number of possible spuns or a randomly chosen spun. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: php-cgi | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Make available a cgi for nginx | |
# Description: primarly is used for the wordpress installation | |
### END INIT INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <net/if.h> | |
#include <net/ethernet.h> | |
#include <netinet/in.h> | |
#include <netinet/ip.h> | |
#include <arpa/inet.h> | |
#include <netpacket/packet.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Remove plugin CSS & JS */ | |
/* Next Gen Gallery */ | |
function dequeue_nextGen_style() { | |
wp_dequeue_style('NextGEN'); | |
} | |
add_action('template_redirect', 'dequeue_nextGen_style'); | |
function dequeue_nextGen_js() { | |
if (!is_singular()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########### | |
paste this inside virtual host file /etc/nginx/sites-available/<YOUR CONFIG FILE> | |
########### | |
server { | |
listen 80; | |
server_name <DOMAIN_OR_HOST_NAME>; | |
root /var/www/html/<FOLDER_NAME>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install 3proxy; | |
curl https://gist.githubusercontent.com/AntonOrlov/a70aeed276d35dc9d77060b0a6c167ed/raw -o /etc/3proxy.cfg; | |
chmod 644 /etc/3proxy.cfg; | |
firewall-cmd --zone=public --add-port=8080/tcp --permanent | |
firewall-cmd --zone=public --add-port=9000/tcp --permanent | |
systemctl enable 3proxy.service; | |
systemctl restart 3proxy.service; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. Open the browser developper console on the network tab | |
// 2. Start the video | |
// 3. In the dev tab, locate the load of the "master.json" file, copy its full URL | |
// 4. Run: node vimeo-downloader.js "<URL>" | |
// (done automatically now) 5. Combine the m4v and m4a files with mkvmerge | |
const fs = require('fs'); | |
const url = require('url'); | |
const https = require('https'); | |
const { exec } = require('child_process'); |
OlderNewer