#Country ban with UFW#
Grab your different country ip addresses and save as Linux IPTables
http://www.ip2location.com/free/visitor-blocker
##Add country## Run the following command
#!/usr/bin/env bash | |
# | |
# This is sp, the command-line Spotify controller. It talks to a running | |
# instance of the Spotify Linux client over dbus, providing an interface not | |
# unlike mpc. | |
# | |
# Put differently, it allows you to control Spotify without leaving the comfort | |
# of your command line, and without a custom client or Premium subscription. | |
# |
#Country ban with UFW#
Grab your different country ip addresses and save as Linux IPTables
http://www.ip2location.com/free/visitor-blocker
##Add country## Run the following command
valac python.vapi pyembtest.vala -X -I. -X -I/usr/include/python2.6 -X -lpython2.6 -o pyembtest |
# first: mkdir user && cd user && cp /path/to/get_gists.py . | |
# python3 get_gists.py user | |
import requests | |
import sys | |
from subprocess import call | |
user = sys.argv[1] | |
r = requests.get('https://api.github.com/users/{0}/gists'.format(user)) |
from gi.repository import GLib, Gtk, GtkClutter, Clutter, Gdk, GdkPixbuf | |
import sys | |
from random import random | |
BROWSERS = 42 | |
class ClutterBrowser(Gtk.ApplicationWindow): |
#!/usr/bin/env python3 | |
# | |
# photobooth.py | |
# | |
# Based on py-slideshow by Corey Goldberg | |
# Copyright (c) 2013, 2015, Corey Goldberg | |
# Copyright (c) 2019-2020 Adam Kent | |
# | |
# Dev: https://github.com/cgoldberg/py-slideshow | |
# License: GPLv3 |
#include <stdio.h> | |
#include <sys/socket.h> | |
#include <linux/un.h> | |
#include <unistd.h> | |
#include <string.h> | |
int main(void) | |
{ | |
struct sockaddr_un address; | |
int socket_fd, nbytes; |
import sys | |
import gi | |
gi.require_version('Clutter', '1.0') | |
gi.require_version('Gtk', '3.0') | |
gi.require_version('GtkClutter', '1.0') | |
from gi.repository import Clutter # isort:skip | |
from gi.repository import Gtk # isort:skip |
#include <windows.h> | |
#include <string> | |
#include "resource.h" | |
#include <vector> | |
#include <string> | |
#include <tchar.h> | |
#include <io.h> | |
using namespace std; | |
#pragma comment(linker, "\"/manifestdependency:type='win32' \ |
import ssl | |
from tornado.httpserver import HTTPServer | |
from tornado.web import Application, RequestHandler | |
from tornado.ioloop import IOLoop | |
class TestHandler(RequestHandler): | |
def get(self): | |
self.write("Hello, World!\n") |