Go to this link to get your desired version of the OC client tool. I have choosen the latest version available in July, 2020.
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 base64 | |
>>> import hashlib | |
>>> base64.b64encode(hashlib.sha1("test").digest()) | |
'qUqP5cyxm6YcTAhz05Hph5gvu9M=' |
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
# A list of possible usernames to reserve to avoid | |
# vanity URL collision with resource paths | |
# It is a merged list of the recommendations from this Quora discussion: | |
# http://www.quora.com/How-do-sites-prevent-vanity-URLs-from-colliding-with-future-features | |
# Country TLDs found here: | |
# http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains | |
# Languages found here: |
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 | |
# Restrictive Iptables Based Firewall for Webserver script | |
# Copyright (C) 2012 Cédric Walter - www.waltercedric.com | |
# Credits to all various authors | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
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
# Assume we are in your home directory | |
cd ~/ | |
# Clone the repo from GitLab using the `--mirror` option | |
$ git clone --mirror git@your-gitlab-site.com:mario/my-repo.git | |
# Change into newly created repo directory | |
$ cd ~/my-repo.git | |
# Push to GitHub using the `--mirror` option. The `--no-verify` option skips any hooks. |
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
## | |
# Base Makefile with ability to list targets | |
# | |
.PHONY: help about list targets | |
ME := $(realpath $(firstword $(MAKEFILE_LIST))) | |
# Contains trailing '/' | |
# | |
PWD := $(dir $(ME)) |
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 | |
# make sure this file has execution permission to run (do NOT use sudo: | |
# $ chmod +x vim_installer.sh | |
# $ ./vim_installer.sh | |
# ===================================================================== | |
# install git | |
echo "======== VIM INSTALLER ========" | |
echo "MAKE SURE YOU HAVE GIT INSTALLED!" | |
echo "Then press any key to continue..." |
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: | |
jaeger: | |
image: jaegertracing/all-in-one:1.8 | |
ports: | |
- 6831:6831/udp | |
- 6832:6832/udp | |
- 5778:5778 | |
- 16686:16686 | |
- 14268:14268 |
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
Function isOdd($int){ | |
if($int == 0) return false; | |
if($int == 1) return true; | |
if($int == 2) return false; | |
if($int == 3) return true; | |
if($int == 4) return false; | |
if($int == 5) return true; | |
if($int == 6) return false; | |
if($int == 7) return true; | |
if($int == 8) return false; |
OlderNewer