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
{"ignition":{"config":{},"security":{"tls":{}},"timeouts":{},"version":"2.3.0"},"networkd":{"units":[{"contents":"[Match]\nName=eth0\n\n[Network]\nAddress=195.2.76.236/24\nGateway=195.2.76.1\nDNS=8.8.8.8\n","name":"static.network"}]},"passwd":{"users":[{"groups":["sudo","docker"],"name":"core","passwordHash":"$6FMi11BJFsAc","sshAuthorizedKeys":["ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAlwAiep+i/ls7mVN8gSdsgiYZQdg9M4C4WzRljpEfd1EFmcpTrnZ9tDUC+v6od+DHaKn/gT6cCPKlyFoLqoy2vwuPxDLJKD170BJoQ3ihXViHzn7DgvDsB9ESRwJRXybiopy5qdl4oCqLsEjMxFtWEtWwj9fTrEbIi4QFbJL+6Pt+QUw9uXHJ4vdur5kP+kFAgdNrp/dwUoV8tHtC9wv/f33/BqZ1k8U6JQWzU0/H0qOE09gXYLcd0/wDNZ5B5JXzwcaW8Go7dsyCoOlmKMsTkc9sUElM6p7ws3CSkNzTMh9HTANcgeX5nBOVR1kI+9SCPPyV4ExFzLI4Mkyuu323uQ=="]}]},"storage":{},"systemd":{"units":[{"contents":"[Unit]\nDescription=NGINX example\nAfter=docker.service\nRequires=docker.service\n[Service]\nTimeoutStartSec=0\nExecStartPre=-/usr/bin/docker rm --force nginx1\nExecStart=/usr/bin/docker run --name nginx1 --pull always --net host docker.io/ngin |
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
dir -Path . -Filter node_modules -recurse | foreach {echo $_.fullname; rm -r -Force $_.fullname} |
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
# -*- mode: ruby -*- | |
# # vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = $box | |
(1..$num_instances).each do |i| | |
config.vm.define vm_name = "%s-%01d" % [$instance_name_prefix, i] do |node| | |
node.vm.hostname = vm_name |
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
package main | |
import "gorm.io/gorm" | |
type Billing struct { | |
Id *int64 | |
Msisdn uint64 | |
RealDatetime string | |
CreateDatetime *string | |
Status int |
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
amixer -c 1 set 'Master' 57 | |
amixer -c 1 set 'HP/Speaker Auto Detect' on | |
amixer -c 1 set 'Enable OutFX' off | |
sudo alsactl store |
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
apt-get install build-essential texinfo flex bison -y | |
export LFS=/mnt/lfs | |
# DO | |
mkfs.ext4 /dev/disk/by-id/scsi-0DO_Volume_volume-lon1-01 |
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/sh -x | |
export DEBIAN_FRONTEND=noninteractive | |
sudo locale-gen en_GB.UTF-8 |
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
events := NewQuestionnaireB( | |
NewMessage("Привет! Пройди опрос"), | |
NewMessage("Спасибо за уделённое время"), | |
NewQuestion( | |
NewMessage("Где вы живёте?")). | |
Answer(NewAnswerMenu(). | |
AddItem("Россия", nil). | |
AddItem("США", nil). | |
AddItem("СНГ", nil). | |
AddItem("Европа", nil)), |
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 TABLE public.attachments | |
( | |
id SERIAL NOT NULL | |
CONSTRAINT attachments_pk | |
PRIMARY KEY, | |
file UUID NOT NULL, | |
content INTEGER NOT NULL | |
); | |
ALTER TABLE public.attachments |
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
import 'bootstrap'; | |
import 'admin-lte/build/js/AdminLTE'; |
NewerOlder