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 | |
cd /etc/sysconfig/network-scripts | |
for if in ifcfg-eth0* | |
do | |
if [[ ! $if =~ "backup" ]]; then | |
ifup ${if/ifcfg-} | |
echo $if | |
fi |
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
<Location /> | |
# Insert filter | |
SetOutputFilter DEFLATE | |
# Don't compress images | |
SetEnvIfNoCase Request_URI \ | |
\.(?:gif|jpe?g|png)$ no-gzip dont-vary | |
# Make sure proxies don't deliver the wrong content | |
Header append Vary User-Agent env=!dont-vary |
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 | |
# smtpsend.py - mailx style tool with SMTP support | |
import smtplib | |
from optparse import OptionParser | |
import sys | |
from email.mime.text import MIMEText | |
def send_mail(): |
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 | |
# synclient-to-x.py - export synclient -l output to | |
# x.org config file [c] jamespo [at] gmail [dot] com | |
# USAGE: synclient -l | ./synclient-to-x.py > 50-synaptics.conf | |
from __future__ import print_function | |
import fileinput | |
print(""" |
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
diff -r1.2 ./main.c | |
145a146,156 | |
> /* support "-m" argument to start minimized */ | |
> int c; | |
> while ((c = getopt (argc, argv, "m")) != -1) | |
> switch (c) | |
> { | |
> case 'm': | |
> /* minimize the main window */ | |
> gtk_window_iconify(GTK_WINDOW(main_window)); |
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
# Created by pyp2rpm-3.2.2 | |
%global pypi_name pipenv | |
Name: python-%{pypi_name} | |
Version: 11.1.3 | |
Release: 1%{?dist} | |
Summary: Sacred Marriage of Pipfile, Pip, & Virtualenv | |
License: MIT | |
URL: https://github.com/kennethreitz/pipenv |
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 | |
# test websockets - requires python 3.6+ & sanic | |
# start server & hit http://localhost:8000/static/WebSockets.html | |
# Put ws://localhost:8000/feed as Target | |
from sanic import Sanic | |
app = Sanic() |
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 python3 | |
# -*- coding: utf-8 -*- | |
# You'll need a TLS terminating proxy (apache,nginx) in front of this | |
# This is a simple Hello World Alexa Skill, built using | |
# the decorators approach in skill builder. | |
import logging | |
from flask import Flask |
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
version: '2' | |
services: | |
changedetection: | |
image: ghcr.io/dgtlmoon/changedetection.io | |
container_name: changedetection | |
hostname: changedetection | |
volumes: | |
- changedetection-data:/datastore | |
environment: |
OlderNewer