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
This file has been truncated, but you can view the full file.
2001 silly pacote range manifest for @types/istanbul-reports@^1.1.1 fetched in 50ms
2002 silly resolveWithNewModule @types/[email protected] checking installable status
2003 http fetch GET 304 https://registry.npmjs.org/@types%2fistanbul-lib-coverage 54ms (from cache)
2004 silly pacote version manifest for @types/[email protected] fetched in 55ms
2005 silly resolveWithNewModule @types/[email protected] checking installable status
2006 http fetch GET 304 https://registry.npmjs.org/@types%2fyargs 55ms (from cache)
2007 silly pacote range manifest for @types/yargs@^13.0.0 fetched in 57ms
2008 silly resolveWithNewModule @types/[email protected] checking installable status
2009 http fetch GET 304 https://registry.npmjs.org/@types%2fistanbul-lib-report 35ms (from cache)
2010 silly pacote range manifest for @types/istanbul-lib-report@* fetched in 36ms
@cdesch
cdesch / gist:343ca5581e33253a4a0270a54c6950d7
Created November 16, 2019 16:34
Python Environment Cheatsheet
https://www.geeksforgeeks.org/python-virtual-environment/
$ virtualenv -p /usr/bin/python3 virtualenv_name
$ source virtualenv_name/bin/activate
@cdesch
cdesch / DNET-931.sql
Last active March 11, 2020 17:28
FireBird Issue DNET-931 - SQL Script
/* http://tracker.firebirdsql.org/browse/DNET-931 */
/* Script */
CREATE DATABASE 'C:\data\demo.fdb' page_size 8192
user 'SYSDBA' password 'masterkey';
CONNECT "C:\data\demo.fdb"
user 'SYSDBA' password 'masterkey';
create table demo (id int primary key, foobar varchar(20) character set utf8);
@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
@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 / 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
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 / 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:
@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:
[email protected] from /app/turtle/workingdir/android/sdk41/packages/@unimodules/core
[email protected] from /app/turtle/workingdir/android/sdk41/packages/@unimodules/react-native-adapter
[email protected] from /app/turtle/workingdir/android/sdk41/packages/expo-ads-admob
[email protected] from /app/turtle/workingdir/android/sdk41/packages/expo-ads-facebook
@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(">")