This configuration is no longer updated
This file contains hidden or 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
| # Install ARCH Linux with encrypted file-system and UEFI | |
| # The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
| # Download the archiso image from https://www.archlinux.org/ | |
| # Copy to a usb-drive | |
| dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
| # Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
| # Set swedish keymap |
This file contains hidden or 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 | |
| if [ $# -eq 0 ]; then | |
| printf 1 "Usage: $(basename $0) [build-args [-- run-args [-- cmd-args] ] ]" | |
| printf 1 " NOTE!!! the -rm-flag is hardcoded for build!" | |
| fi | |
| BUILD_ARG=() | |
| RUN_ARG=() | |
| CMD_ARG=() |
This file contains hidden or 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
| Mac OS X 10.9.2, Vagrant 1.5.1, VMWare Fusion 6.0.2 | |
| I had some intense difficulties getting this all to work. The VMs would boot | |
| fine with gui=true, but then would fail as soon as I turned that off. Yet when | |
| they failed, they were actually running just fine! I could ssh in, but neither | |
| vagrant nor vmrun could find the running VMs! You would think that it would | |
| give better errors, but no. | |
| First off, most boxes you find online will be using the VMWare configuration 9, | |
| which will only boot if you have gui=true the first boot, so you can upgrade it |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the\commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
This file contains hidden or 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
| ; Create this file at /etc/systemd/system/rackspace-monitoring-agent.service | |
| ; Then reload the configs using `systemctl daemon-reload` | |
| ; Enable it with `systemctl enable rackspace-monitoring-agent.service` | |
| ; Restart this service using `systemctl restart rackspace-monitoring-agent` | |
| [Unit] | |
| Description=Rackspace Monitoring Agent | |
| After=network.target | |
| [Service] |
This file contains hidden or 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
| (defun add-project-to-projectile-known-projects (_ directory) | |
| (projectile-add-known-project directory)) | |
| (advice-add 'magit-clone :after 'add-project-to-projectile-known-projects) |
This file contains hidden or 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
| --[[ | |
| The MIT License (MIT) | |
| Copyright (c) 2016 Jörg Krause <joerg.krause@embedded.rocks> | |
| 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: | |
| The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
This file contains hidden or 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
| If we receive an email with a list of accounts related to the ddos in LON, we need to do the following: | |
| The email will likely be from Slade and will relate to a new comment in this gist - https://gist.github.rackspace.com/virg3823/efc9483068ea64bc879cdc2b9f35daa9 | |
| The last one I have run is "992837, als0FRG5zP" from https://gist.github.rackspace.com/virg3823/efc9483068ea64bc879cdc2b9f35daa9#gistcomment-4193 | |
| so look for anything after it. | |
| You need to convert that to a list with just the tenant ids: | |
| e.g. | |
| I copy it into sublime and remove the alarm ids, then: |