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
import sys | |
import urllib | |
from bs4 import BeautifulSoup | |
def get_sitemap_url(sitemap_url): | |
try: | |
opener = urllib.urlopen(url=sitemap_url, data=None) | |
xml = opener.read() | |
# fp = open("../../static/sitemap.xml", "r") |
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
{ | |
"SublimeLinter": | |
{ | |
"linters": | |
{ | |
"phpcs": | |
{ | |
"cmd": "phpcs" | |
} | |
} |
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/python2 | |
#!encoding = utf-8 | |
# filename: ~/.config/Mutate/scripts | |
import re | |
import urllib | |
import urllib2 | |
import json | |
import sys | |
reload(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
#!/bin/bash | |
#filename: /usr/local/bin/touchpad.sh | |
declare -i ID | |
ID=`xinput list | grep -Eio '(touchpad|glidepoint)\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'` | |
declare -i STATE | |
STATE=`xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}'` | |
if [ $STATE -eq 1 ] | |
then | |
xinput disable $ID |
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 | |
sudo apt-get update | |
sudo apt-get install -y libncursesw5-dev | |
sudo apt-get install -y libpulse-dev | |
sudo apt-get install -y libasound2-dev | |
sudo apt-get install -y libroar-dev | |
sudo apt-get install -y libao-dev | |
sudo apt-get install -y libjack-dev | |
sudo apt-get install -y libsamplerate0-dev | |
sudo apt-get install -y libcdio-dev |
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/bash | |
if [ "$#" != 2 ]; then | |
echo "Usage : kickass [full_torrent_url] [torrent_file_to_save.torrent]" | |
exit 1; | |
fi | |
NEWLINE="\n" | |
red='\033[0;31m' | |
green='\033[0;32m' | |
light_red='\033[0;31m' | |
yellow='\033[1;33m' |
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
<?php | |
/** | |
* Parses the content, search for the form and assign respective elements to | |
* array keys as 'formAction', 'formId', 'formMethod' that can be checked against | |
* for easy assertions. When multiple forms are found they will be stored on | |
* arrays with key 'availableForms'. | |
* | |
* @param string $content HTML content for the form | |
* |
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
package com.fivedots.tutorials; | |
import java.util.Scanner; | |
public class Employee { | |
private int id; | |
private String firstname; | |
private String lastname; | |
private String phone; | |
private String address; |
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/perl -T | |
use strict; | |
use warnings; | |
# | |
## Calomel.org ,:, Download Youtube videos and music using wget | |
## Script Name : youtube_wget_video.pl | |
## Version : 0.45 | |
## Valid from : September 2014 |
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
server { | |
listen 80; | |
listen [::]:80; | |
root /var/www/adminer; | |
index index.php index.html index.htm; | |
server_name adminer.dev; | |
location / { | |
autoindex on; |