Skip to content

Instantly share code, notes, and snippets.

@FruitieX
FruitieX / pc_buld
Last active August 29, 2015 13:56
pc build planning
GPU? Asus GTX770-DC2OC 319,90 - definitely no VGA passthrough screw you NVIDIA :((
GPU? Asus Radeon R9 280X 304,90 (VGA passthrough? almost 100% certain)
Case BitFenix Prodigy M 87,90
CPU Intel Core i5 4670 209,90 (VGA passthrough!)
RAM G.Skill Ares 1600MHz 138,90
PSU Corsair CX600M V2 CX 600W 77,90
SSD Samsung 840 EVO 250 GB 163,90
HDD WD Green 3TB SATA III 121,90
Mobo Asrock Z87M Pro4 92,90 (VGA passthrough confirmed working!)
Total: 1198,20
r s ~ > tracepath 83.145.255.194
1?: [LOCALHOST] pmtu 1500
1: gw-2-v388.kyla.fi 0.660ms
1: gw-2-v388.kyla.fi 0.622ms
2: funet-helsinki6-10ge-gw-2.tky.fi 0.918ms
3: 193.110.224.48 1.135ms reached
Resume: pmtu 1500 hops 3 back 253
[36886.852727] systemd[1]: systemd-journald.service stop-sigterm timed out. Killing.
[36977.102747] systemd[1]: systemd-journald.service still around after SIGKILL. Ignoring.
[37067.352848] systemd[1]: systemd-journald.service stop-final-sigterm timed out. Killing.
[37157.602726] systemd[1]: systemd-journald.service still around after final SIGKILL. Entering failed mode.
[37157.602835] systemd[1]: Unit systemd-journald.service entered failed state.
var xml = require('xml');
var xmlString = xml({
'atom:entry':
[
{
'_attr': {
'xmlns:atom': 'http://www.w3.org/2005/Atom',
'xmlns:gd': 'http://schemas.google.com/g/2005'
}
#!/bin/bash
source admin-openrc.sh
# openstackusers.txt is a plaintext file of format:
# username1 password1
# username2 password2
# ...
IFS=$'\n'
# generate 40 random passwords
for i in {1..40}; do < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-16} >> openstackusers_pw.txt; echo "" >> openstackusers_pw.txt; done
# prefix generated passwords with username
sed '/./=' openstackusers_pw.txt | sed -e 's/^/testuser/; /./N; s/\n/ /' > openstackusers.txt
IFS=$'\n'
for line in $(cat openstackusers.txt); do
user=$(echo $line | cut -d' ' -f1)
pwd=$(echo $line | cut -d' ' -f2)
# add user
sudo useradd -m $user
# set user password
echo -e "$pwd\n$pwd" | sudo passwd $user
while true; do
# select project namespace
xdotool mousemove --sync 652 382
xdotool click 1
sleep 3
# go to settings
xdotool mousemove --sync 777 132
xdotool click 1
sleep 3
# go to projects
port 1234
proto udp
dev tun
keepalive 10 120
tls-auth /etc/openvpn/ta.key 0
ca /etc/openvpn/ca.crt
cert /etc/openvpn/servy.crt
key /etc/openvpn/servy.key
client
proto udp
dev tun
remote fruitiex.org 1234
resolv-retry infinite
nobind
tls-auth /etc/openvpn/ta.key 1