Skip to content

Instantly share code, notes, and snippets.

View nneul's full-sized avatar

Nathan Neulinger nneul

  • Neulinger Consulting
  • Rolla, MO
View GitHub Profile
@nneul
nneul / gist:1b4f98ecaac5c87603604d54ef3d6ffb
Created February 26, 2022 20:47
Modify linux MS Teams installation to add titlebar / disable client side decorations
This is obviously an ugly little hack, but will return the ability to do windowshade or similar operations
if your window manager (XFce in my case) doesn't allow for forcing display of window frame/titlebar.
# run in teams/resources
cd /usr/share/teams/resources
if [ ! -e orig-app.asar ]; then
cp app.asar orig-app.asar;
fi
cp orig-app.asar app.asar
rm -rf asar-extracted
@nneul
nneul / packt-sync.pl
Created December 19, 2018 00:42
Quick ugly script for bulk download of packt ebooks from your own account
#!/usr/bin/perl
$| = 1;
use URI::Escape;
use LWP;
use JSON;
my $user = 'email@domain.com';
my $pw = 'my-password';
my $download_path = "/home/myuser/packt";
@nneul
nneul / gist:76a38010313f55db0f7a
Created January 28, 2016 21:44
sample hook for letsencrypt.sh
#!/usr/bin/perl
my $i = 0;
my $info = "Arguments:\n";
my ( $action, $name, $challenge, $auth ) = @ARGV;
foreach my $arg (@ARGV) {
$i++;
$info .= "\t$i: $arg\n";
}
$info .= "\n\n";
volume remote1
type protocol/client
option transport-type tcp
option remote-host freesw-gfs-d1.srv.mst.edu
option remote-subvolume freeswitch
end-volume
volume remote2
type protocol/client
option transport-type tcp
[2014-06-13 18:10:26.026969] D [client.c:2155:client_rpc_notify] 0-remote1: got RPC_CLNT_CONNECT
[2014-06-13 18:10:26.027068] D [client-handshake.c:185:client_start_ping] 0-remote1: returning as transport is already disconnected OR there are no frames (1 || 1)
[2014-06-13 18:10:26.027095] D [client.c:2155:client_rpc_notify] 0-remote2: got RPC_CLNT_CONNECT
[2014-06-13 18:10:26.027135] D [client-handshake.c:185:client_start_ping] 0-remote2: returning as transport is already disconnected OR there are no frames (1 || 1)
[2014-06-13 18:10:26.027158] D [client.c:2155:client_rpc_notify] 0-remote3: got RPC_CLNT_CONNECT
[2014-06-13 18:10:26.027260] D [client-handshake.c:185:client_start_ping] 0-remote3: returning as transport is already disconnected OR there are no frames (1 || 1)
[2014-06-13 18:10:26.027374] D [client-handshake.c:1693:server_has_portmap] 0-remote1: detected portmapper on server
[2014-06-13 18:10:26.027409] D [client-handshake.c:185:client_start_ping] 0-remote1: returning as transport is already disco
2014-06-12 21:34:23,985 INFO qtp1776334754-54122 [solr.update.processor.LogUpdateProcessor] - [d-_v22_shard1_replica2] webapp=/solr path=/update params={distrib.from=http://10.220.16.204:8983/solr/d-_v22_shard1_replica1/&update.distrib=TOLEADER&wt=javabin&version=2} {add=[8d44b6e6-ab5f-4ce9-9270-82c74f3ed88d (1470741991390183424)]} 0 768
2014-06-12 21:34:24,178 INFO qtp1776334754-54122 [org.apache.solr.update.UpdateHandler ] - start commit{,optimize=false,openSearcher=true,waitSearcher=true,expungeDeletes=false,softCommit=false,prepareCommit=false}
2014-06-12 21:34:24,179 INFO qtp1776334754-54122 [org.apache.solr.update.LoggingInfoStream] - [IW][qtp1776334754-54122]: commit: start
2014-06-12 21:34:24,179 INFO qtp1776334754-54122 [org.apache.solr.update.LoggingInfoStream] - [IW][qtp1776334754-54122]: commit: enter lock
2014-06-12 21:34:24,179 INFO qtp1776334754-54122 [org.apache.solr.update.LoggingInfoStream] - [IW][qtp1776334754-54122]: commit: now prepare
2014-06-12 21:34:24,179 INFO qtp1776334
2014-06-12 21:34:56,038 ERROR qtp1776334754-54122 [org.apache.solr.core.SolrCore ] - org.apache.solr.common.SolrException: [doc=8d44b6e6-ab5f-4ce9-9270-82c74f3ed88d] missing required field: timestamp
at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:189)
at org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:77)
at org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:234)
at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:160)
at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:69)
at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:704)
at org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcess
POST /solr/d-_v22_shard1_replica2/update?update.distrib=TOLEADER&distrib.from=http%3A%2F%2F10.220.16.204%3A8983%2Fsolr%2Fd-_v22_shard1_replica1%2F&wt=javabin&version=2 HTTP/1.1
User-Agent: Solr[org.apache.solr.client.solrj.impl.HttpSolrServer] 1.0
Content-Type: application/javabin
Transfer-Encoding: chunked
Host: 10.220.16.207:8983
Connection: Keep-Alive
dd
...&params...update.distrib(TOLEADER.,distrib.from?.http://10.220.16.204:8983/solr/d-_v22_shard1_replica1/.&delByQ..'docsMap.....?...."id?.8d44b6e6-ab5f-4ce9-9270-82c74f3ed88d.'channel.
..#add%share
POST /solr/d-_v22/update?commit=true HTTP/1.1
host: d01-solr.srv.hivepoint.com
Accept-Encoding: gzip,deflate
Content-Type: application/json; charset=UTF-8
User-Agent: Factory JSON client:null:24402
X-Forwarded-For: 10.220.16.229
X-Forwarded-Port: 80
X-Forwarded-Proto: http
2014-06-12 21:15:17,807 ERROR qtp1776334754-54122 [org.apache.solr.core.SolrCore ] - org.apache.solr.common.SolrException: [doc=f5d5dca0-7072-414d-
8233-2c01a69ce1b4] missing required field: timestamp
at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:189)
at org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:77)
at org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:234)
at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:160)
at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:69)
at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:704)
at org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProces