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
# Verbose output and no boot splash screen. | |
d-i debian-installer/quiet boolean false | |
d-i debian-installer/splash boolean false | |
# Disable that annoying WEP key dialog. | |
# boot param d-i netcfg/do_not_use_netplan=true | |
d-i netcfg/wireless_wep string | |
# Network configuration | |
d-i netcfg/choose_interface select auto |
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
#!/bin/bash | |
# This sctipt can be added in /etc/inittab in any system with traditional init systems | |
# to replace the login prompt whith a selection of VMs | |
# This script uses virsh to get list of all local lxc and qemu VMs managed using libvirt. | |
# The list will be displayed using dialog. When selecting a VM, this script attempts to | |
# get a spice or vnc display. It will connect to those with spice-client or directvnc. | |
# If no display is available, virsh console is used to connect to the vm console. |
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/python | |
# | |
# Low-level QEMU shell on top of QMP. | |
# | |
# Copyright (C) 2009, 2010 Red Hat Inc. | |
# | |
# Authors: | |
# Luiz Capitulino <[email protected]> | |
# | |
# This work is licensed under the terms of the GNU GPL, version 2. See |
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
#!/bin/bash | |
# | |
# For latest version please check https://github.com/doomedraven/Tools/blob/master/Virtualization/kvm-qemu.sh | |
# | |
# https://www.doomedraven.com/2016/05/kvm.html | |
# Use Ubuntu 18.04 LTS |
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
#!/sbin/openrc-run | |
# | |
# OpenRc Script to create a service that can configure a Internal or Host-Only Network | |
# it create tun/tap and bridge interfaces, you'll able to use them how do you like | |
# | |
# INSTRUCTIIONS: | |
# 1- create file /etc/ttapnetqemu/network.conf put follow lines | |
# | |
# mode=hostonly|inet #hostonly -> Host Only Network or inet -> Internal Network | |
# host_numbers=2 #Number of hosts to configure. it create same number of tun/tap and bro interface depending to mode |
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
#!/bin/bash | |
# IMPORTANT: You will need to disable SIP aka Rootless in order to fully execute this script, you can reenable it after. | |
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars. | |
# Get active services: launchctl list | grep -v "\-\t0" | |
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents | |
# Agents to disable | |
TODISABLE=('com.apple.security.keychainsyncingoveridsproxy' 'com.apple.personad' 'com.apple.passd' 'com.apple.screensharing.MessagesAgent' 'com.apple.CommCenter-osx' 'com.apple.Maps.mapspushd' 'com.apple.Maps.pushdaemon' 'com.apple.photoanalysisd' 'com.apple.telephonyutilities.callservicesd' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.CalendarAgent' 'com.apple.DictationIM' 'com.apple.iCloudUserNotifications' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.gamed' 'com.apple.icloud.findmydeviced.findmydevi |
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
sub_var_text() { | |
local variable=$1 | |
read -r -d '' VAR <<-EOT | |
text also with $variable inside\n | |
EOT | |
printf "$VAR" | |
} |
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
#!/bin/bash | |
# | |
# BASH script to install DC/OS on a node | |
# | |
# Usage: | |
# | |
# dcos_install.sh <role>... | |
# | |
# | |
# Metadata: |
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
make[6]: Leaving directory '/hab/cache/src/mesos-1.1.0/build/3rdparty/libprocess' | |
make check-local | |
make[6]: Entering directory '/hab/cache/src/mesos-1.1.0/build/3rdparty/libprocess' | |
make all-recursive | |
make[7]: Entering directory '/hab/cache/src/mesos-1.1.0/build/3rdparty/libprocess' | |
Making all in . | |
make[8]: Entering directory '/hab/cache/src/mesos-1.1.0/build/3rdparty/libprocess' | |
make[8]: Nothing to be done for 'all-am'. | |
make[8]: Leaving directory '/hab/cache/src/mesos-1.1.0/build/3rdparty/libprocess' | |
Making all in include |
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
class Api::RegistrationsController < Api::BaseController | |
respond_to :json | |
def create | |
user = User.new(params[:user]) | |
if user.save | |
render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201 | |
return | |
else |
NewerOlder