Skip to content

Instantly share code, notes, and snippets.

@igk1972
igk1972 / Wesher.md
Last active December 13, 2023 11:57
Wesher - overlay network using wireguard
<style>
@media screen and (max-width: 980px)
.t228__mobile {
--darkreader-inline-bgcolor: #320c39;
background-color: var(--darkreader-inline-bgcolor) !important;
}
.t228__burger span {
background-color: #fff !important;
}
.t228__mobile_container {
[Unit]
Description=Code Server IDE
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
User=igk1972
Environment=PASSWORD=MySuperPass
Environment=PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
version: '3.7'
services:
code:
image: codercom/code-server:v2
networks:
- ingress
volumes:
- "home:/home/coder"
- "projects:/home/coder/workspace"
@igk1972
igk1972 / github_repo_create.sh
Created June 1, 2019 06:51
Github repo create
#!/bin/sh
# [ -z "$1" ] || ACCESS_TOKEN="$1"
[ -z "$1" ] || ACCESS_AUTH="$1"
[ -z "$2" ] || REPO_NAME="$2"
# [ -z "$ACCESS_TOKEN" ] && { echo "Token not set" ; exit 1; }
[ -z "$ACCESS_AUTH" ] && { echo "Username[:Password] not set" ; exit 1; }
[ -z "$REPO_NAME" ] && { echo "Repo not set" ; exit 1; }
@igk1972
igk1972 / .dockerignore
Last active January 20, 2018 13:54
Netlify CMS - api for file-system backend support JWT
.git
.gitignore
.dockerignore
docker-*.yml
node_modules
Makefile
@igk1972
igk1972 / index.php
Last active November 13, 2015 02:58
Test PHP 5.6 output with always_populate_raw_post_data and DEPRECATED message.
<?php
//
// Test PHP 5.6 output with always_populate_raw_post_data and DEPRECATED message.
// http://php.net/manual/ru/ini.core.php#ini.always-populate-raw-post-data
// Run: php -S 127.0.0.0:9090
// Browse: http://localhost:9090
//
if (headers_sent()) {
die();
}