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/sh | |
##################################################### | |
# CONFIGURATION # | |
##################################################### | |
TOKEN=1233445ASDKLSJDASASDDASBJHBEUBSAÀÒBDFASOFADBSDF | |
CHAT_ID=12312354 | |
##################################################### | |
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/sh | |
set -x | |
NC_PATH="/var/www/nextcloud" | |
DST_PATH="/tmp" | |
DATE=$(date +"%Y%m%d") | |
# start maintenance | |
sudo -u www-data php "$NC_PATH/occ" maintenance:mode --on |
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/sh | |
set -ex | |
## install oh-my-zsh ## | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
## install fish-like plugins ## | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions |
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/sh | |
set -e | |
### Configuration ### | |
[email protected] | |
REMOTE_FOLDER=my_folder | |
REMOTE_RESULTS=results | |
EXCLUDE_FILES="--exclude=.*\ | |
--exclude=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
## | |
# The .inputrc configuration file to enable a zsh-like completion mechanism in bash. | |
# Features: | |
# - Press tab to cycle throw all possible completions in a case-insensitive fashion. | |
# - Use the up and down arrow to search throw the history for all matches of the typed string. | |
# | |
# DISCLAIMER: Use only when you cannot install zsh :) | |
# | |
# Put together by lucarin91. | |
## |
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/sh | |
### | |
# Send message to your telegram chat when something happens to a remote server. | |
# Before use the sript update the TOKEN and CHAT_ID variable with your data. | |
# | |
# Usage: | |
# tsend 'ALL DONE!' | |
# cat myfile.txt | tsend | |
# | |
# license: MIT |
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
-module(hot_change). | |
-export([start/0, send/1, update_code/1]). | |
start() -> | |
F = fun(Str) -> string:lowercase(Str) end, | |
register(hot_change_server, spawn(fun () -> loop(F) end)). | |
loop(F) -> | |
receive | |
{request, Pid, 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
/* jshint esversion:6 */ | |
function * main (){ | |
console.log('Every time you need a sleep, you can yield the number of seconds that you want to wait..'); | |
yield 5; | |
console.log('..this will be executed 5 seconds later'); | |
yield 1.5; | |
console.log('[long wait]'); | |
yield 10; | |
console.log('..and, this after 10 seconds.\n'); |
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
abs_path=$(cd "$(dirname "$0")" && pwd) |
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
tosca_definitions_version: tosca_simple_yaml_1_0 | |
description: "TOSCA simple profile with wordpress, web server and mysql on the same\ | |
\ server.\n" | |
repositories: | |
docker_hub: https://registry.hub.docker.com/ | |
imports: | |
- tosker: ../tosker-types.yaml |
NewerOlder