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 aniso8601 | |
from boto.s3.connection import S3Connection | |
from datetime import datetime, timedelta | |
import pytz | |
from hurry.filesize import size | |
con = S3Connection() | |
bucket = con.get_bucket('britecorepro') |
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 urllib | |
import urllib2 | |
import json | |
import time | |
from random import randint | |
#microsecond precision must be in 13 digit format, no period | |
t_old = '{:0<13}'.format(''.join(str(time.time()).split('.'))) | |
while True: |
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
-- | |
-- xmonad example config file | |
--Shout out to @mathom for using this as a base. | |
-- | |
import XMonad | |
import Data.Monoid | |
import System.Exit | |
import qualified XMonad.StackSet as W |
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 java.net.*; | |
import java.io.*; | |
import java.security.*; | |
import javax.net.ssl.*; | |
public class HTTPSClient { | |
public static void main(String[] args) { | |
if (args.length == 0) { |
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
socat /dev/ttyUSB0,raw,echo=0 SYSTEM:'tee input.txt | socat - "PTY,link=/tmp/ttyV0,raw,echo=0,waitslave" | tee output.txt' |
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
set-option -g history-limit 100000 | |
bind r source-file ~/.tmux.conf | |
# turning this off since it will capture the standard mouse interactions such as right click | |
# and paster buffer using mouse3 | |
set -g mouse off | |
set-window-option -g mode-keys vi | |
bind-key -T copy-mode-vi 'v' send -X begin-selection |
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
! Fonts {{{ | |
Xft.antialias: true | |
Xft.hinting: true | |
Xft.rgba: rgb | |
Xft.hintstyle: hintfull | |
Xft.dpi: 210 | |
! }}} | |
Xcursor.size: 16 |
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
from libqtile.config import EzKey, Key, Group, Drag, Click, Screen | |
from libqtile.command import lazy | |
from libqtile import layout, bar, widget | |
mod = 'mod1' | |
keys = [ | |
#EzKey('A-h', lazy.layout.left()), | |
#EzKey('A-l', lazy.layout.right()), | |
EzKey('A-j', lazy.layout.down()), |
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 | |
import datetime | |
import socket | |
import ssl | |
import boto3 | |
r53 = boto3.client('route53') |
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
FROM nginx:1.17.4-alpine | |
# configure nginx | |
RUN rm /etc/nginx/conf.d/default.conf | |
COPY nginx.conf /etc/nginx/conf.d | |
# copy static assets so nginx container serves them | |
WORKDIR /srv/portal/ | |
COPY ./assets /srv/portal/static |
OlderNewer