Skip to content

Instantly share code, notes, and snippets.

View cdesch's full-sized avatar
🏠
Working from home

cdesch cdesch

🏠
Working from home
View GitHub Profile
@cdesch
cdesch / pc-rules.erb
Last active July 17, 2024 16:24 — forked from jamietre/pc-rules.erb
Karabiner Elements config to map home/end keys to PC-like behavior on MacOS X
{
"title": "MacOS -> PC Shortcuts",
"rules": [
{
"description": "Top/bottom of document (ctrl+home/ctrl+end)",
"manipulators": [
{
"type": "basic",
"from": <%= from("home", ["command"], ["any"]) %>,
"to": <%= to([["up_arrow", ["left_command"]]]) %>,
asHook: true
auth:
register: true
clickhouse:
clickhouse:
configmap:
builtin_dictionaries_reload_interval: "3600"
compression:
cases:
- method: zstd
@cdesch
cdesch / fix.rs
Created November 27, 2021 16:22
Rust Vector
for account in &accounts {
println!("ID: {} Name: {}", account.id, account.name);
}
// Choose Random Account from Accounts
let account = accounts.choose(&mut rand::thread_rng()).unwrap();
println!("{}", account.id);
@cdesch
cdesch / ex_tool_chest_pid.ex
Last active November 24, 2021 22:00
Elixir Process ID to List, Tuple, String
# Procss ID Util Functions as seen here: https://github.com/cdesch/ex_tool_chest
# Elixir Process ID Parsing to Tuple, List or String
# Related: https://stackoverflow.com/questions/70102293/transform-process-id-pid-in-elixir-to-tuple-or-string-parse-pid-to-other
# ExToolChest.Util.pid_to_string(self())
def pid_to_string(pid) do
pid_inspection = "#{inspect pid}" # gives the string "#PID<0.105.0>"
pid_inspection
|> String.slice(5, 100)
|> String.trim(">")
@cdesch
cdesch / gradle log
Created June 10, 2021 17:51
gradle log
Configuration on demand is an incubating feature.
> Configure project :app
WARNING: The option setting 'android.useNewApkCreator=false' is experimental.
The current default is 'true'.
AWS Device Farm Plugin version 1.3
Installing unimodules:
unimodules-core@7.1.0 from /app/turtle/workingdir/android/sdk41/packages/@unimodules/core
unimodules-react-native-adapter@6.2.2 from /app/turtle/workingdir/android/sdk41/packages/@unimodules/react-native-adapter
expo-ads-admob@10.0.4 from /app/turtle/workingdir/android/sdk41/packages/expo-ads-admob
expo-ads-facebook@10.0.4 from /app/turtle/workingdir/android/sdk41/packages/expo-ads-facebook
@cdesch
cdesch / gist:945672248701ee87bb52bcf598af218f
Created January 20, 2021 14:49
Fabric-CA Operations Guide - configtx.yaml
---
################################################################################
#
# Section: Organizations
#
# - This section defines the different organizational identities which will
# be referenced later in the configuration.
#
################################################################################
Organizations:
upstream phoenix_upstream {
server 127.0.0.1:4000;
}
server {
listen 80;
server_name espresso.kickinespresso.com;
return 301 https://$server_name$request_uri;
}
@cdesch
cdesch / webpacker.yml
Created March 31, 2020 16:46
Webpacker error webpacker.yml
# Note: You must restart bin/webpack-dev-server for changes to take effect
default: &default
source_path: app/javascript
source_entry_path: packs
public_root_path: public
public_output_path: packs
cache_path: tmp/cache/webpacker
check_yarn_integrity: false
webpack_compile_output: false
@cdesch
cdesch / config-webpack-environment.js
Last active March 31, 2020 16:48
Webpacker Deployment error
const { environment } = require('@rails/webpacker')
const webpack = require('webpack')
// const customConfig = require('./custom')
// environment.config.merge(customConfig)
// module.exports = environment
environment.plugins.prepend(
'Provide',
@cdesch
cdesch / gist:c21b6d52dff4a0472fe87a2530ecaf8b
Created March 11, 2020 17:29
FireBird Issue DNET-931 - Console Output
/* http://tracker.firebirdsql.org/browse/DNET-931 */
/* Output of the console */
Hello World!
Listening...
info: Microsoft.EntityFrameworkCore.Infrastructure[10403]
Entity Framework Core 2.1.2-rtm-30932 initialized 'MyContext' using provider 'EntityFrameworkCore.FirebirdSql' with options: None