openssl aes-256-cbc -in some_pdf.pdf -out encrypted.pdf
openssl aes-256-cbc -d -in encrypted.pdf -out some_pdf_decrypted.pdf
#!/usr/bin/env python2 | |
''' | |
Red Hat satellite 5.x script for unregister system(s) | |
sample usage: | |
./remove_id.py -i 1001440837 1001440835 -u satadmin -p redhat | |
''' | |
import argparse | |
import xmlrpclib | |
import socket |
config.vm.provider "libvirt" do |vb| | |
# Customize the amount of memory on the VM: | |
vb.memory = 4096 | |
vb.cpus = 2 | |
end |
find ./ -mtime +{$1} -exec rm {} \; |
#!/bin/bash | |
# | |
# name: TODO_NAME | |
# | |
# description:TODO_DESC | |
# default log file: /var/log/TODO_LOG | |
# | |
# Copyright 2016 TODO, Inc. | |
# TODO_NAME <TODO_MAIL> | |
# |
find . -name '*\.py' -exec grep '^import ' {} \; | sort | uniq > req |
; Mostly taken from http://jonls.dk/redshift/ | |
; Global settings for redshift | |
[redshift] | |
; Set the day and night screen temperatures | |
temp-day=5700 | |
temp-night=3200 | |
; Enable/Disable a smooth transition between day and night | |
; 0 will cause a direct change from day to night screen temperature. | |
; 1 will gradually increase or decrease the screen temperature. |
with open('some_args') as f1: | |
with open('some_names') as f2: | |
with open('out', 'w') as f3: | |
args = f1.readlines() | |
name = f2.readlines() | |
print('lenghts :', len(args), len(name)) | |
for i in range(len(args)): | |
f3.write('(\'{}\', \'{}\'),\n'.format(args[i].strip(), name[i].strip())) |
#!/bin/bash | |
diff requirements.txt requirements.txt2 | awk '{print $2}' | xargs pip uninstall -y |
#!/bin/bash | |
# The MIT License (MIT) | |
# Copyright (c) 2017 EuroLinux | |
# Author: Alex Baranowski | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |