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
//****************************************************************************** | |
//* A simple M/M/1 queue simulation * | |
//****************************************************************************** | |
//* Notes: 1. This program requires parameters for Inter Arrival time, * | |
//** Service time as well as maximum number of customers * | |
//*----------------------------------------------------------------------------* | |
//* Build: gcc -o mm1 mm1.c * | |
//*----------------------------------------------------------------------------* | |
//* Execute: ./mm1 MAX_CUSTOMERS ARR_TIME SERV_TIME * | |
//*----------------------------------------------------------------------------* |
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
#Create the directory: | |
sudo mkdir /etc/systemd/system/getty@tty1.service.d | |
#Create file: | |
sudo vim /etc/systemd/system/getty@tty1.service.d/autologin.conf | |
#Insert: | |
[Service] | |
ExecStart= | |
ExecStart=-/sbin/agetty --autologin YOURUSERNAMEHERE --noclear %I 38400 linux |
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
################################################### | |
# This is for running devstack on Ubuntu 16.04 | |
# as of September 9, 2016, (near the end of Newton) | |
################################################### | |
# This was tested using VMWare Fusion 8.1.1 on OSX, an alternative is VirtualBox | |
# Download VirtualBox latest 4.xx https://www.virtualbox.org/wiki/Download_Old_Builds_4_3 | |
# Download Ubuntu 16.04 http://releases.ubuntu.com/16.04/ubuntu-16.04-desktop-amd64.iso | |
# Create a Ubuntu VM, 64 bit. Give it 4-6 GB RAM, 25-40 GB HD, 2-3 processors | |
# Boot up the VM, install ubuntu, use the default settings. |
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
public enum test { | |
A(-1, "Text 1"), | |
B(-2, "Text 2"); | |
private final int code; | |
private final String description; | |
private test(int code, String description) { | |
this.code = code; | |
this.description = description; |
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
# Controller configuration | |
[[local|localrc]] | |
DEST=/opt/stack | |
SERVICE_TOKEN=passwordToken | |
ADMIN_PASSWORD=password | |
MYSQL_PASSWORD=password | |
SERVICE_PASSWORD=password | |
DATABASE_PASSWORD=password |
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
./letsencrypt-auto certonly -a manual --rsa-key-size 4096 --email abc@abc.com -d abc.com |
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
sudo apt-get update | |
sudo apt-get install build-essential libx11-dev libssl-dev -y libgssglue-dev libpcsclite-dev | |
tar zxvf rdesktop-1.8.3.tar.gz | |
cd rdesktop-1.8.3 | |
./bootstrap | |
./configure | |
make | |
sudo make install |
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
sudo update-rc.d -f service defaults | |
sudo update-rc.d service enable |
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
var $allVideos = $("iframe[src^='http://player.vimeo.com'],iframe[src^='http://www.youtube.com']"); | |
var $fluidEl = $("figure"); | |
$allVideos.each(function() { | |
$(this) | |
// jQuery .data does not work on object/embed elements | |
.attr('data-aspectRatio', this.height / this.width) | |
.removeAttr('height') | |
.removeAttr('width'); | |
}); |
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
Private Sub Migrate() | |
For i = 3 To 26 | |
For j = 3 To 62 | |
If Sheets("final").Cells(j, 1) = Cells(i, 1).Value Or Sheets("final").Cells(j, 1) = Cells(i, 2).Value Or Sheets("final").Cells(j, 1) = Cells(i, 3).Value Then | |
Sheets("final").Cells(j, 7) = Cells(i, 4).Value | |
Sheets("final").Cells(j, 8) = Cells(i, 5).Value | |
End If | |
Next j | |
Next i | |
End Sub |
NewerOlder