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
// Replace 'YOUR_ACCESS_TOKEN' with your GitHub access token | |
var accessToken = '<gitHubAccesToken>'; | |
// Replace 'YOUR_PROJECT_ID' with the desired project ID | |
var projectId = '<ProjectID>'; | |
function fetchGitHubData() { | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); | |
sheet.clear(); |
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
BEGIN | |
FOR x in (select * from user_sequences) | |
LOOP | |
EXECUTE IMMEDIATE 'drop sequence '||x.sequence_name ; | |
EXECUTE IMMEDIATE 'create sequence '||x.sequence_name||' start with 10000'; | |
END LOOP; | |
END; |
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
alter table table_name modify lob (column_name) (shrink space); |
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
machineA$ git bundle create feature.mirama.bundle develop..feature/mirama --all | |
machineA$ git tag -f semana1 feature/mirama | |
'send the file | |
machineB$ git bundle verify feature.mirama.bundle | |
machineB$ git ls-remote feature.mirama.bundle | |
machineB$ git checkout feature/mirama | |
machineB$ git pull feature.mirama.bundle |
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
in git version 1.7.9.5 this seems to work to export a single file from a remote | |
git archive --remote=ssh://host/pathto/repo.git HEAD README.md | |
This will cat the contents of the file READ |
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 openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt |
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
frontend 80 | |
acl lepath path_beg -i /.well-known/acme-challenge | |
acl lepath path_beg -i /rancher | |
redirect scheme https code 302 if !lepath !{ ssl_fc } |
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 service start on boot | |
sudo systemctl enable docker | |
#check Docker status | |
sudo systemctl status docker | |
#remove untagged images | |
docker rmi $(docker images -f "dangling=true" -q) |
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
--EXPORT | |
docker save $(docker images -q) -o /path/to/save/mydockersimages.tar | |
-- | |
docker images | awk '{if ($1 ~ /^(openshift|centos)/) print $1 " " $2 " " $3 }' | tr -c "a-z A-Z0-9_.\n-" "%" | while read REPOSITORY TAG IMAGE_ID | |
do | |
echo "== Saving $REPOSITORY $TAG $IMAGE_ID ==" | |
docker save -o /path/to/save/$REPOSITORY-$TAG-$IMAGE_ID.tar $IMAGE_ID | |
done |
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
Get-Process -Id (Get-NetTCPConnection -LocalPort portNumber).OwningProcess |
NewerOlder