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
docker rm -v $(docker ps -aq -f status=exited) //remove exited containers | |
docker volume rm $(docker volume ls -qf dangling=true) //remove dangling volumes |
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
dpkg --get-selections | grep linux-image |
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
FROM {{registry}}/my-tomcat:1.0.0 | |
ADD {{artifact_id}}.war /usr/local/tomcat/webapp/ROOT.war | |
{% for dependency in dependencies %} | |
ADD {{dependency.name}} {{dependency.path}} | |
{% endfor %} | |
CMD ["catalina.sh", "run"] |
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 | |
if [ #$ -lt 1 ]; then | |
printf "Usage: $0 <environment>" | |
exit | |
fi | |
deploy_host=x.x.x.x | |
artifact_id=$(mvn help:evaluate -Dexpression=project.artifactId | grep -v '\[') | |
current_version=$(mvn help:evaluate -Dexpression=project.version | grep -v '\[') |
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
import java.io.UnsupportedEncodingException; | |
import java.math.BigInteger; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
class MD5 { | |
public String encrypt(String token) { | |
int RESULT_LENGTH = 16; |
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 the source code of Telegram for Android v. 3.x.x. | |
* It is licensed under GNU GPL v. 2 or later. | |
* You should have received a copy of the license in this archive (see LICENSE). | |
* | |
* Copyright Nikolai Kudashov, 2013-2016. | |
*/ | |
package org.telegram.messenger; |
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
version: '2' | |
services: | |
db: | |
environment: | |
- MYSQL_ROOT_PASSWORD=pass | |
image: mariadb | |
admin: | |
links: | |
- db | |
ports: |
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
[Unit] | |
Description=Vault dev server | |
[Service] | |
Type=simple | |
ExecStart=/home/ec2-user/vault server -dev -dev-listen-address=0.0.0.0:8200 |
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
#Environment variables: HEROKU_API_KEY, HEROKU_APP | |
image: ubuntu:bionic | |
stages: | |
- deploy | |
before_script: | |
# OS dependencies | |
- apt-get update |
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 | |
cd /Users/{user}/Library/Safari | |
while IFS='#' read -r title url | |
do | |
/usr/libexec/PlistBuddy Bookmarks.plist -c "Add :Children:1:Children:0 dict" | |
/usr/libexec/PlistBuddy Bookmarks.plist -c "Add :Children:1:Children:0:URIDictionary dict" | |
/usr/libexec/PlistBuddy Bookmarks.plist -c "Add :Children:1:Children:0:URIDictionary:title string ${title}" | |
/usr/libexec/PlistBuddy Bookmarks.plist -c "Add :Children:1:Children:0:URLString string ${url}" | |
/usr/libexec/PlistBuddy Bookmarks.plist -c "Add :Children:1:Children:0:WebBookmarkType string WebBookmarkTypeLeaf" |
OlderNewer