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 | |
# Proxmox VM Recreation Script | |
# This script recreates VMs from a new template while preserving hostname and MAC addresses | |
# Fix locale issues | |
export LC_ALL=C | |
export LANG=C | |
# Configuration |
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
#!/usr/bin/env bash | |
# | |
# cleanup_registry.sh | |
# | |
# Purpose: | |
# Script to clean up old tags from a container registry repository, | |
# keeping only the latest and the last 4 non-latest tags. | |
# | |
# Usage: | |
# - Make it executable: chmod +x cleanup_registry.sh |
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
version: "3" | |
services: | |
kutt: | |
image: kutt/kutt | |
depends_on: | |
- postgres | |
- redis | |
command: ["./wait-for-it.sh", "app-db-production-20231014115640778500000001.cslw5nvms5h6.eu-central-1.rds.amazonaws.com:5432", "--", "npm", "start"] | |
ports: |
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
#EXTM3U | |
#EXTINF:0,Dash6 | |
https://ice55.securenetsystems.net/DASH6 |
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
package main | |
import "regexp" | |
import "log" | |
func toLatin(content string) string { | |
var translations = map[string]string{ | |
"а":"a", | |
"б":"b", |
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
package main | |
import ( | |
"github.com/titan-x/gcm/ccs" | |
"log" | |
"time" | |
"encoding/json" | |
) | |
func sendMe(sendM chan string) { |
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 | |
#Usage | |
#wget -O- https://gist.githubusercontent.com/yuksbg/77ad0f4ee0968fd6a3c7/raw/14dcf5ca3488df7bfc6d79df09367b626f4d4ab1/install-latest-mongo.sh | sh | |
echo "------------------------------------------" | |
echo "Install MongoDB on Ubuntu" | |
echo "------------------------------------------" |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"github.com/manucorporat/try" | |
"gopkg.in/mgo.v2" | |
"gopkg.in/mgo.v2/bson" | |
"net" | |
"os" |
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
<?php | |
abstract class Singleton { | |
// protected static $INSTANCE; | |
/** | |
* Protected constructor to prevent creating a new instance of the | |
* @return void | |
*/ |
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
$api_key = $_GET['API']; | |
$registrationIds = array( $_GET['id'] ); | |
$msg = array | |
( | |
'message' => 'msg', | |
'title' => 'opt. title', | |
'vibrate' => 1, | |
'sound' => 1, | |
'is_sys' => '1/0' |
NewerOlder