Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Moisei moisei

🎯
Focusing
View GitHub Profile
@moisei
moisei / .env
Created Mar 28, 2020
docker-compose template
View .env
COMPOSE_PROJECT_NAME=template
VAR_FROM_FILE=anyvalue
VAR_FROM_FILE_WITH_THE_SAME_NAME=any_other_value
@moisei
moisei / Sandbox.wsb
Last active Mar 28, 2020
Windows sandbox
View Sandbox.wsb
<Configuration>
<MappedFolders>
<MappedFolder>
<HostFolder>C:\SandBoxShare</HostFolder>
<ReadOnly>true</ReadOnly>
</MappedFolder>
</MappedFolders>
<LogonCommand>
<Command>C:\Users\WDAGUtilityAccount\Desktop\SandBoxShare\init-sandbox.bat</Command>
</LogonCommand>
View sqlite to mysql
https://github.com/techouse/sqlite3-to-mysql
@moisei
moisei / Easy way to share files over Internet from the command line
Created Jan 8, 2020
Easy way to share files over Internet from the command line
View Easy way to share files over Internet from the command line
https://transfer.sh
curl --upload-file ./hello.txt https://transfer.sh/hello.txt
@moisei
moisei / how to use separate private keys for github bitbucket and other users
Last active Jan 6, 2020
how to use separate private keys for github bitbucket and other users
View how to use separate private keys for github bitbucket and other users
https://superuser.com/questions/232373/how-to-tell-git-which-private-key-to-use
~/.ssh/config
host bitbucket.org
HostName bitbucket.org
IdentityFile ~/.ssh/github_rsa
User git
https://medium.com/@xiaolishen/use-multiple-ssh-keys-for-different-github-accounts-on-the-same-computer-7d7103ca8693
View add dns record
powershell.exe "Add-DnsServerResourceRecordA -Name " machinename " -ComputerName " 111.11.11.111 " -ZoneName " testcs.company.com " -AllowUpdateAny -IPv4Address " 111.11.10.110 " -TimeToLive " 00:00:10
View GO dev env
FROM golang:alpine
RUN apk add git
RUN apk add make
RUN mkdir /src
WORKDIR /src
VOLUME /src
@moisei
moisei / SVN over NFS
Created May 27, 2019
slow checkout svn over NFS
View SVN over NFS
svn -q --config-option config:working-copy:exclusive-locking-clients=svn --config-option config:working-copy:exclusive-locking=true checkout
@moisei
moisei / ubuntu permanent hostname
Created May 26, 2019
Change hostname in ubuntu 18.04 permanently
View ubuntu permanent hostname
change in /etc/cloud/cloud.cfg
preserve_hostname: true
hostnamectl set-hostname
You can’t perform that action at this time.