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: "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 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 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 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 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 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 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 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' |
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 sys | |
import re | |
import glob | |
import os | |
result = {} | |
p = re.compile(ur'__\("(...+)"\)|__\(\'(...+)\'\)', re.MULTILINE | re.UNICODE) | |
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 | |
set -e | |
username="backup" | |
password="NoFonE" | |
pcloud_username="pCloud username" | |
pcloud_password="pCloudoAuthToken" |
NewerOlder