This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/nixos/configuration.nix | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ | |
./hardware-configuration.nix | |
]; | |
boot.loader.systemd-boot.enable = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use diesel::associations::HasTable; | |
use diesel::backend::Backend; | |
use diesel::deserialize::FromSql; | |
use diesel::dsl::SqlTypeOf; | |
use diesel::expression::{Expression, NonAggregate, SelectableExpression}; | |
use diesel::insertable::CanInsertInSingleQuery; | |
use diesel::mysql::Mysql; | |
use diesel::query_builder::{BoxedSelectStatement, QueryFragment}; | |
use diesel::query_dsl::methods::{BoxedDsl, FilterDsl}; | |
use diesel::r2d2::{ConnectionManager, Pool, PooledConnection}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v5.10; | |
use strict; | |
use warnings; | |
use SOAP::Lite (+trace => "all"); | |
my $proxy = "https://domain/otrs/rpc.pl"; | |
my $soap = SOAP::Lite->new(proxy => $proxy); | |
my ($user, $pw) = (qw/foo bar/); |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] Scanning for projects... | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for org.eclipse.jetty:jetty-distribution:pom:9.4.13-SNAPSHOT | |
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-dependency-plugin @ org.eclipse.jetty:jetty-distribution:[unknown-version], /opt/devel/workspace/java/jetty.project/jetty-distribution/pom.xml, line 140, column 15 | |
[WARNING] | |
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. | |
[WARNING] | |
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. | |
[WARNING] | |
[INFO] ------------------------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://cardanodocs.com/technical/wallet/api/ | |
# create a new wallet | |
$ curl -H "Content-Type: application/json" --cacert cardano-sl/scripts/tls-files/ca.crt https://localhost:8090/api/wallets/new -d '{ | |
"cwInitMeta": { | |
"cwName": "my-cardano-wallet", | |
"cwAssurance": "CWAStrict", | |
"cwUnit": 0 | |
}, | |
"cwBackupPhrase": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# unregister broken GHC packages. Run this a few times to resolve dependency rot in installed packages. | |
# ghc-pkg-clean -f cabal/dev/packages*.conf also works. | |
function ghc-pkg-clean() { | |
for p in `ghc-pkg check $* 2>&1 | grep problems | awk '{print $6}' | sed -e 's/:$//'` | |
do | |
echo unregistering $p; ghc-pkg $* unregister $p | |
done | |
} | |
# remove all installed GHC/cabal packages, leaving ~/.cabal binaries and docs in place. |