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
# Use an existing image as a base | |
FROM debian:buster-slim | |
# Set the working directory | |
WORKDIR /app | |
# Copy the application files to the container | |
COPY . . | |
# Install required dependencies |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: techpenguin-demo-app | |
spec: | |
selector: | |
matchLabels: | |
app: techpenguin-demo-app | |
replicas: 1 | |
template: |
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
kind: Namespace | |
apiVersion: v1 | |
metadata: | |
name: example-app | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: kube-rbac-proxy | |
namespace: example-app |
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
// test in: https://runkit.com/eckelon/5f22785767e514001bddd5e3 | |
const { env } = require('sanctuary-def'); | |
const S = require('sanctuary'); | |
const {env : flutureEnv} = require('fluture-sanctuary-types'); | |
const { encase, fork } = require('fluture'); | |
const { pipe, I } = S.create ({checkTypes: true, env: S.env.concat (flutureEnv)}); | |
function Logger() { | |
this._log = (level) => (message) => { | |
const foo = 1; |
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
## Show real-time | |
watch -n1 'mysql -u root -ppassword --execute="SHOW FULL PROCESSLIST"' | |
## Show real-time and pipe all info to file | |
watch -t -n1 '(mysql -u root -ppassword --execute="SHOW FULL PROCESSLIST") | tee -a mysql-process-list.log' |
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/bash | |
CUR_DIR=$(pwd) | |
GIT_USER="JA Samitier" | |
report="# Git report from last week\n" | |
printf "Generating git report...\n\n" | |
repos=$(find . -name ".git" | cut -c 3-) | |
for i in $repos; do |
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/bash | |
for i in $(ls -d */) | |
do | |
path="packages/${i/\//}" | |
name=$(cat "$i"/package.json | grep name | head -1 | sed 's/"//g' | sed 's/name: //g' | sed 's/,//g' | sed 's/ //g') | |
res="$res,{\"packageName\": \"$name\", \"projectFolder\": \"$path\"}" | |
done | |
echo "{\"projects\": [${res/,/}]}" |
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
rg "require\('joi'\)" -l | xargs sed -i '' "s/'joi'/'@hapi\/joi'/g" |
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
hs.window.animationDuration = 0 | |
units = { | |
r30 = { x = 0.700, y = 0.000, w = 0.300, h = 1.000 }, | |
r50 = { x = 0.500, y = 0.000, w = 0.500, h = 1.000 }, | |
r70 = { x = 0.300, y = 0.000, w = 0.700, h = 1.000 }, | |
l30 = { x = 0.000, y = 0.000, w = 0.300, h = 1.000 }, | |
l50 = { x = 0.000, y = 0.000, w = 0.500, h = 1.000 }, | |
l70 = { x = 0.000, y = 0.000, w = 0.700, h = 1.000 }, | |
top50 = { x = 0.000, y = 0.000, w = 1.000, h = 0.500 }, | |
bot50 = { x = 0.000, y = 0.500, w = 1.000, h = 0.500 }, |
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
git branch -vv | grep -E "desaparecido|gone" | awk '{print $1}' | xargs -n1 git branch -d |
NewerOlder