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 | |
# Script to automate making and installing C++ code to NETCONF server config, based on a YANG module file (module_name.yang). Created by Chris Mavrakis <sec@cmavrakis.com>, 21-Nov-2011. | |
# The code is messy and does not do ANY checks... so be careful. Inspect it yourself before using it, I will have no responsibility if something bad happens. Info about YANG, YUMA etc can be found here: http://www.netconfcentral.org | |
### Please edit the following two options: | |
### 1. What is the name of your Module? This should be your filename's first part (before the ".yang") | |
MODULENAME=MYMODULE |
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 | |
# Little script to examine a PKP OCS user database. Instructions: | |
# 1. Login to OCS and export the users as an xml | |
# 2. Convert the file to CSV using e.g. Stylus studio 2011 XML Enterprise Suite | |
# 3. Change this line: | |
INPUT=users.csv | |
# 4. Run the script | |
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/sh | |
# Power optimization script for the Lenovo Ideapad Z370a. Written by Chris Mavrakis (cmavr8@gmail.com). | |
# Place in /usr/lib/pm-utils/power.d and make executable. | |
case $1 in | |
false) # On AC power! | |
# Intel HD audio power management: |
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 | |
echo "Doing..." | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down "['<Primary><Alt>s']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "['<Primary><Alt>a']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "['<Primary><Alt>d']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up "['<Primary><Alt>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
#!/bin/bash | |
# Super quick & dirty script to convert all video files of specific extension into x265 mp4s. Sure, it can be made fancy, but there's not enough motivation for it. | |
# v1 - 8-Dec-2016 by Chris Mavrakis | |
# How to use: | |
# Cd into the dir of your source video files. | |
# Change the .avi extension and target file dir in the script. | |
# Run the script. |
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 bash | |
# Pulls a Docker image and compares it to running ones. Stops/removes/restarts the ones that are outdated. | |
# Put in /etc/cron.daily and make executable. One per image. | |
# From: http://stackoverflow.com/questions/26423515/how-to-automatically-update-your-docker-containers-if-base-images-are-updated/26548914 | |
set -e | |
IMAGE="<DEVELOPER>/<DOCKERIMAGE>:latest" | |
CID=$(docker ps | grep $IMAGE | awk '{print $1}') | |
docker pull $IMAGE |
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
ansible | |
aom | |
assimp | |
bat | |
bdw-gc | |
berkeley-db | |
c-ares | |
cairo | |
composer | |
dav1d |
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
--- | |
# SSH server settings, in line with https://stribika.github.io/2015/01/04/secure-secure-shell.html | |
# Before using, change myhosts to your hosts' nickname and myuser to your username (two instances! make sure you replace both or you'll be locked out of ssh!) | |
- hosts: myhosts | |
become: true | |
remote_user: myuser | |
tasks: | |
# Key exchange, ciphers and MACs | |
- lineinfile: dest=/etc/ssh/sshd_config regexp='^KexAlgorithms' line='KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256' | |
OlderNewer