$ sudo pacman -S qemu
$ qemu-image create -f raw new_qemu_image 20G
OR
$ qemu-image create -f qcow2 new_qemu_image 20G
$ qemu-system-x86_64 -smp 2 -m 2G -enable-kvm -cdrom CentOS-7-x86_64-DVD-1708.iso -boot order=d new_qemu_image
# Installing CentOs...
$ qemu-system-x86_64 -k en-us -vga std -enable-kvm -m 2G -smp 2 -boot c new_qemu_image
# Running CentOs...
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
$ vim ~/.spacemacs | |
... | |
... | |
;; Default font, or prioritized list of fonts. `powerline-scale' allows to | |
;; quickly tweak the mode-line size to make separators look not too crappy. | |
dotspacemacs-default-font '("Source Code Pro" | |
:size 20 ;; In here | |
:weight normal | |
:width normal | |
:powerline-scale 1.1) |
$ sudo pacman -S qemu # For Arch Linux
Download Win10 "manually" - https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewadvanced
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 | |
mkdir suitablepics | |
for file in $(ls *.jpg); do | |
convert $file -resize 512x512 suitablepics/${file/%jpg/png} | |
done |
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 | |
libreoffice --headless --invisible --convert-to pdf *.ppt |
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
Vagrant.configure("2") do |config| | |
# define keyword ile birden fazla sanal makine ayarlari tanimlayabiliriz. | |
config.vm.define "centos-7-cli" do |centos| | |
centos.vm.box = "centos/7" | |
centos.vm.network "private_network", ip: "10.0.0.10" | |
centos.vm.hostname = "centos-7-cli" | |
centos.vm.provider "virtualbox" do |vb| | |
vb.name = "my-centos-7" | |
vb.memory = "1024" |
$ export PHANTOMJS_VERSION=2.1.1
$ export PHANTOMJS_PLATFORM=linux-x86_64
$ wget "https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-${PHANTOMJS_VERSION}-${PHANTOMJS_PLATFORM}.tar.bz2"
$ echo "86dd9a4bf4aee45f1a84c9f61cf1947c1d6dce9b9e8d2a907105da7852460d2f *phantomjs-${PHANTOMJS_VERSION}-${PHANTOMJS_PLATFORM}.tar.bz2" > phantomjs.sha256
$ sha256sum --check phantomjs.sha256
$ rm -f phantomjs.sha256
$ sudo mkdir -p /usr/local/phantomjs-${PHANTOMJS_VERSION}
$ sudo tar -xjf phantomjs-${PHANTOMJS_VERSION}-${PHANTOMJS_PLATFORM}.tar.bz2 -C /usr/local/phantomjs-$PHANTOMJS_VERSION
$ sudo ln -s /usr/local/phantomjs-${PHANTOMJS_VERSION}/phantomjs-${PHANTOMJS_VERSION}-${PHANTOMJS_PLATFORM}/bin/phantomjs /usr/local/bin/phantomjs
vagrant@bionic:~$ cat hello.rb
file '/tmp/hello.txt' do
content 'hello universe'
end
vagrant@bionic:~$ chef-apply hello.rb
Recipe: (chef-apply cookbook)::(chef-apply recipe)
* file[/tmp/hello.txt] action create
- create new file /tmp/hello.txt
- update content in file /tmp/hello.txt from none to 2935ea