Skip to content

Instantly share code, notes, and snippets.

@fachinformatiker
fachinformatiker / index.html
Created June 24, 2018 21:39
Pure CSS Progress
<div class="container">
<header>
<h1>Pure <strong>CSS</strong> Progress</h1>
<p>... a pretty liquid progress-bar.</p>
</header>
<section>
<article>
<input type="radio" name="switch-color" id="red" checked>
<input type="radio" name="switch-color" id="cyan">
<input type="radio" name="switch-color" id="lime">
# Courtesy of ESRI Australia
# https://esriaustraliatechblog.wordpress.com/2020/12/22/basic-enterprise-geodatabase-maintenance/
# For replicas visit https://esriaustraliatechblog.wordpress.com/2021/07/06/faq-what-is-the-correct-workflow-to-achieve-a-full-compress-in-a-versioned-geodatabase-using-replicas/
# Other references
# https://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/recommended-version-administration-workflow.htm
# https://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/using-python-scripting-to-batch-reconcile-and-post-versions.htm
# https://sspinnovations.com/blog/very-simple-automated-sde-database-maintenance/
import logging

VRChat で Unity を使うに当たって、 git で Project 管理するときの耳寄り情報

※ Unity 向けの .gitignore を入れるとか、git config --global core.autocrlf false するとかはされてらっしゃるとして、それ以外の所を…

  1. Packages/.gitignore があるので、VPMまで管理したいときは git リポジトリに入れる前にこの .gitignore を消す(しかし、VCCは Packages/.gitignore を VPM 触る度に再作成するので毎度消すことになる)か、vrc-get の GUI 実装である ALCOM でUnity Projectを作るとこれが最初から無いので便利だし、VCCより爆速でうれしい。

    (古いブランチに切り替えるときなんかで事故ったりするので、 Packages も git で管理した方がいいって思ってます。)
    https://vrc-get.anatawa12.com/alcom/

  2. マージは出来ないので、ベースのルナトくんからブランチ切って服着せる。みたいな使い方してます。\

@jeremychone
jeremychone / rust-xp-01-s3.rs
Last active May 10, 2024 02:12
Rust Quick Example to connect to S3 and Minio bucket server
#![allow(unused)] // silence unused warnings while exploring (to comment out)
use std::{error::Error, str};
use s3::bucket::Bucket;
use s3::creds::Credentials;
use s3::region::Region;
use s3::BucketConfiguration;
// Youtube Walkthrough - https://youtu.be/uQKBW8ZgYB8
@NReilingh
NReilingh / Script DB to Files.ps1
Created February 9, 2018 17:16
Using SQL SMO in PowerShell to script SQL Server objects
Add-Type -Path 'C:\Program Files\Microsoft SQL Server\140\SDK\Assemblies\Microsoft.SqlServer.Smo.dll'
$SmoServer = New-Object ('Microsoft.SqlServer.Management.Smo.Server') -argumentlist 'localhost'
$SmoServer.ConnectionContext.LoginSecure = $false
$SmoServer.ConnectionContext.set_Login("sa")
$SmoServer.ConnectionContext.set_Password("Passw0rd!")
$db = $SmoServer.Databases['msdb']
$Objects = $db.Tables
@atlury
atlury / ffmpeg-desktop-livestreaming-nvenc-and netcat.md
Created September 6, 2016 16:57 — forked from Brainiarc7/ffmpeg-desktop-livestreaming-nvenc-and netcat.md
This gist will show you how to livestream your desktop to a client via FFMpeg using a GPU-accelerated video encoder (NVENC and VAAPI-based)

Low-Latency Live Streaming for your Desktop using ffmpeg and netcat

Preamble:

In this post I will explore how to stream a video and audio capture from one computer to another using ffmpeg and netcat, with a latency below 100ms, which is good enough for presentations and general purpose remote display tasks on a local network.

The problem:

@ww9
ww9 / one-line-text-art-and-emojis_utf8_ascii.txt
Last active May 10, 2024 02:10
Emojis, UTF8, ASCII (one line) #misc
# Collection of one line text art (◕‿◕✿)
Collection of emojis and one line text art like (╯°□°)╯︵ ┻━┻ 🤗
ּבּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
@wojteklu
wojteklu / clean_code.md
Last active May 10, 2024 02:10
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@thenaterhood
thenaterhood / Read-only FS on Raspberry Pi.md
Last active May 10, 2024 02:09 — forked from yeokm1/Read-only FS on Arch Linux ARM.md
Set up a raspberry pi with ArchLinux or Raspbian with a Read-only root filesystem

Read-only FS on Raspberry Pi

Most embedded devices use a read-only root filesystem. This can make them more resilient to unexpected shutdowns that could otherwise cause data corruption. Depending on your application, you might consider your Pi to be an embedded system. This can also help with some issues that can come from SD card unreliability.

Full instructions and explanations are obtained from this link but you can run these commands directly. I modified some of the instructions for personal convenience.

Login with default username and password: (ArchLinux Arm: alarm, alarm, Raspbian: pi, raspberry)

Optionally enable root over SSH. The rest of these instructions assume you are in root.

nano /etc/ssh/sshd_config