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 | |
echo "Deleting files older than 5 days" | |
files=$(find ./ -mtime +5) | |
for file in $files; do | |
echo "- Deleted $file" | |
rm -rf $file | |
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
#!/bin/bash | |
files=$(find ./ -mtime +7) | |
for file in $files; do | |
rm -rf $file | |
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
package main | |
import "fmt" | |
var MAT_SIZE int = 6 | |
func PrintMatrix(mat [][]int, size int, iter int) { | |
fmt.Printf("------ [ %d ] ------\n", iter) | |
for x := 0; x < size; x++ { | |
for y := 0; y < size; y++ { |
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
pipeline { | |
agent any | |
environment { | |
DOCKER_BUILD_NAME = "project" | |
} | |
stages { | |
stage('Starting') { | |
steps { | |
sh 'echo "Starting Build ..."' | |
} |
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
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log notice; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
This file has been truncated, but you can view the full file.
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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang xml:lang> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="generator" content="pandoc" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> | |
<title>-</title> | |
<style> | |
code{white-space: pre-wrap;} | |
span.smallcaps{font-variant: small-caps;} |
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 curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg | |
https://packages.cloud.google.com/apt/doc/apt-key.gpg | |
echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list | |
sudo apt-get update | |
sudo apt-get install -y kubelet kubeadm kubectl | |
sudo apt-mark hold kubelet kubeadm kubectl |
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
{ | |
"AQ-AD95-00":{ | |
"EMOJI":"res://images/cloud.svg", | |
"NODE_NAME":"AQ-AD95-00", | |
"NODE_VERTICAL":"AE-AQ", | |
"POSITION":{ | |
"X":-7.29647, | |
"Y":-1.00922, | |
"Z":22.723301 | |
}, |
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 requests | |
import base64 | |
import json | |
PASSWORD = "" | |
ADD,RM = "add","rm" | |
API_URL = "https://wisun.api.prashantnook.in/update" | |
def send_update(nodeA,nodeB,contype=ADD): | |
headers = { |
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
alias yay paru | |
yay -S flutter | |
java -version | |
sudo pacman -S jre8-openjdk | |
export JAVA_HOME='/usr/lib/jvm/java-8-openjdk' | |
export PATH=$JAVA_HOME/bin:$PATH |
NewerOlder