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/[email protected] | |
#Create file: | |
sudo vim /etc/systemd/system/[email protected]/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 [email protected] -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
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 |
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
#/bin/bash | |
# chkconfig: 2345 50 70 | |
SUCCESS=0 | |
FAILURE=1 | |
# | |
if [ $# -ne 1 ] | |
then | |
echo "Usage: createUser {username}" | |
exit $FAILURE | |
fi |
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
DELETE FROM xyz where id in ( SELECT id from (SELECT id | |
FROM xyz | |
GROUP BY | |
name | |
HAVING COUNT(*) > 1) as newXYZ) |
NewerOlder