This file contains hidden or 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
{ | |
"alt-speed-down": 50, | |
"alt-speed-enabled": false, | |
"alt-speed-time-begin": 540, | |
"alt-speed-time-day": 127, | |
"alt-speed-time-enabled": false, | |
"alt-speed-time-end": 1020, | |
"alt-speed-up": 50, | |
"bind-address-ipv4": "0.0.0.0", | |
"bind-address-ipv6": "::", |
This file contains hidden or 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
source /etc/network/interfaces.d/* | |
# This file intentionally left blank | |
# | |
# All interfaces are handled by network-manager, use nmtui or nmcli on | |
# server/headless images or the "Network Manager" GUI on desktop images | |
auto eth0 | |
iface eth0 inet static | |
address 10.208.20.56 | |
#10.32.32.56 |
This file contains hidden or 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
all_entries = [['06','0d','61','fc','moteid2'], | |
['06','0d','b2','8b','moteid6']] | |
for each_entry in all_entries: | |
print 'aaaa::212:4b00:'+each_entry[0]+each_entry[1]+':'+each_entry[2]+each_entry[3]+' '+each_entry[4] | |
print 'fe80::212:4b00:'+each_entry[0]+each_entry[1]+':'+each_entry[2]+each_entry[3]+' '+each_entry[4] | |
print 'fe:80:00:00:00:00:00:00:02:12:4b:00:'+each_entry[0]+':'+each_entry[1]+':'+':'+each_entry[2]+':'+each_entry[3]+' '+each_entry[4] | |
print '\n' |
This file contains hidden or 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
acl SSL_ports port 443 | |
acl Safe_ports port 80 # http | |
acl Safe_ports port 21 # ftp | |
acl Safe_ports port 443 # https | |
acl Safe_ports port 70 # gopher | |
acl Safe_ports port 210 # wais | |
acl Safe_ports port 1025-65535 # unregistered ports | |
acl Safe_ports port 280 # http-mgmt | |
acl Safe_ports port 488 # gss-http | |
acl Safe_ports port 591 # filemaker |
This file contains hidden or 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
// ==UserScript== | |
// @name wallpaper_finder | |
// @namespace http://your.homepage/ | |
// @version 1.0 | |
// @description Website Navigator With Arrow Key Press | |
// @match http://wallpaperswide.com/* | |
// ==/UserScript== | |
function next_page_number(){ | |
k = window.location.href; | |
var urlarray = k.split('/'); |
This file contains hidden or 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
''' | |
This is a utility to generate all decision types from all.txt, 0 for animal, 1 for human, 2 for clutter. By this an overview can be achieved on which type of algorithm can perform better | |
''' | |
import xlwt | |
from itertools import groupby | |
def print_required_info(tuplearray1, final_indice1): | |
global row_number | |
global sheet | |
ones_power = 0 |
This file contains hidden or 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
''' | |
Use this python file to copy the command of wall output to clipboard. The sender needs to login into remote system and send the output he intends the receiver to receive | |
in the wall command. The receiver needs to run this script, please input the credentials of the same server in which the sender has logged in, whenever the script receives the output it gets copied into clipboard of the PC of the receiver. Would this shit really work?. | |
''' | |
from paramiko import SSHClient, AutoAddPolicy | |
import pyperclip | |
ssh = SSHClient() | |
ssh.set_missing_host_key_policy(AutoAddPolicy()) | |
ssh.connect('IP_Adress', username='username', password='password', key_filename='path_to_key') | |
outdata, errdata = '', '' |
This file contains hidden or 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 pyperclip,re | |
final = re.sub(r'^mnemonic.*\n?', '', pyperclip.paste().encode('ascii','replace'), flags=re.MULTILINE) | |
pyperclip.copy(final) | |
print "No of words: %d" % len(final.split('\n')) |
This file contains hidden or 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
// ==UserScript== | |
// @name Enter "mnemonic" on pressing enter | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://quizlet.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
// ==UserScript== | |
// @name Dictionary.com Copy Sentences | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match http://www.dictionary.com/* | |
// @grant GM_setClipboard | |
// ==/UserScript== |
NewerOlder