Skip to content

Instantly share code, notes, and snippets.

Avatar

Cerem Cem ASLAN ceremcem

View GitHub Profile
@ceremcem
ceremcem / prepare-new-couchdb-server.md
Last active Dec 21, 2020
Checklist to create a new CouchDB backup server from scratch.
View prepare-new-couchdb-server.md
@ceremcem
ceremcem / __template.ls.js
Created Sep 1, 2020
template.ls bundled with Rollup (has a problem)
View __template.ls.js
This file has been truncated, but you can view the full file.
'use strict';
var util = require('util');
var os = require('os');
var buffer = require('buffer');
var crypto = require('crypto');
var tty = require('tty');
var fs$1 = require('fs');
var net = require('net');
@ceremcem
ceremcem / extract-video
Last active Jun 7, 2020
extract video from command line
View extract-video
#!/bin/bash
set -eu -o pipefail
safe_source () { [[ ! -z ${1:-} ]] && source $1; _dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"; _sdir=$(dirname "$(readlink -f "$0")"); }; safe_source
# end of bash boilerplate
# show help
# -----------------------------------------------
show_help(){
cat <<HELP
View sub-list
ID 257 gen 15 top level 5 path snapshots/backed-up/aktos-cloud/rootfs-20180812T0024.part
ID 259 gen 263 top level 5 path snapshots/backed-up/aktos-cloud/rootfs-20180812T0024
ID 262 gen 330 top level 5 path snapshots/backed-up/aktos-couch/rootfs-20180805T0348
ID 264 gen 50 top level 5 path snapshots/backed-up/aktos1/manual/rootfs-20180810T1250
ID 268 gen 342 top level 5 path snapshots/backed-up/aktos-git/rootfs-20180805T0348
ID 271 gen 306 top level 5 path snapshots/backed-up/aktos-couch2/rootfs-20180805T0829
ID 275 gen 79 top level 5 path snapshots/backed-up/aktos-git/rootfs-20180815T0128
ID 276 gen 83 top level 5 path snapshots/backed-up/aktos-couch2/rootfs-20180806T1116
ID 277 gen 87 top level 5 path snapshots/backed-up/aktos-couch2/rootfs-20180826T0216
ID 278 gen 91 top level 5 path snapshots/backed-up/aktos-couch/rootfs-20180813T2130
View stdin
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-7-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Hitachi Travelstar 5K500.B
Device Model: Hitachi HTS545025B9A300
Serial Number: 100203PB42061SEHSN1L
LU WWN Device Id: 5 000cca 5e8e35957
Firmware Version: PB2OC60F
User Capacity: 250,059,350,016 bytes [250 GB]
View stdin
Bus 001 Device 006: ID 0bda:58c2 Realtek Semiconductor Corp.
Bus 001 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 004: ID 8087:07dc Intel Corp.
Bus 001 Device 003: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
@ceremcem
ceremcem / eduroam.conf
Created Dec 11, 2018
Eduroam configuration for wpa_supplicant
View eduroam.conf
network={
ssid="eduroam"
scan_ssid=1
key_mgmt=WPA-EAP
identity="your-identity-here"
password="your-password-here"
eap=TTLS
phase2="auth=PAP"
}
@ceremcem
ceremcem / dcs.cson
Created Nov 5, 2018
Example CSON file for aeCAD
View dcs.cson
[
[
'Layer'
{
applyMatrix: true
children: [
[
'Path'
{
applyMatrix: true