$ git clone https://git.samba.org/samba.git
$ brew install jansson
$ brew install readline && brew link --force readline
$ cpan # then w/in cpan install Parse::Yapp module (might be 'install Term::Parse::Yapp')
$ brew intsall libarchive
$ export LDFLAGS="-L/usr/local/opt/libarchive/lib"
$ export CPPFLAGS="-I/usr/local/opt/libarchive/include"
$ ./configure --prefix=/opt/samba --without-ad-dc --without-acl-support
Sources
- base for cube.c: https://www.opengl.org/archives/resources/code/samples/glut_examples/examples/cube.c
- more complex example: https://gist.github.com/hkulekci/2300262
Prereqs (install opengl & glut)
$ sudo apt-get install freeglut3-dev
This file contains hidden or 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
inoremap kj <Esc> | |
syntax enable | |
let g:solarized_termcolors=16 | |
set t_Co=16 | |
set background=light | |
colorscheme solarized | |
set lines=40 | |
set columns=80 |
This file contains hidden or 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
# unpack the package | |
ar x nice-dcv-viewer_2020.1.1545-1_amd64.ubuntu1804.deb | |
# untar the control info | |
xz -d control.tar.xz | |
tar xf control.tar | |
# edit control (replace libssl dependency with "libssl1.1 (>= 1.0.2~beta3)" | |
vim control # make those edits ^ | |
# tar up the control info | |
tar c postinst postrm shlibs triggers md5sums control | xz -c > control.tar.xz | |
# repackage the package (this time replacing 1804 w/2004) |
This file contains hidden or 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
```txt | |
- download old libssl1.0 from https://packages.ubuntu.com/bionic/libssl1.0.0 | |
- follow the steps on this gist [https://gist.github.com/thomaswilley/1f109a3936990ac48326faf0fd917c24] to retrieve the needed files from "data.tar.xz" | |
- figure out where libssl1.1* got installed | |
$ dpkg -L libssl1.1 | |
# on my system I see: | |
# /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 | |
# /usr/lib/x86_64-linux-gnu/libssl.so.1.1 | |
- figure out where dcvviewer is keeping its sort of 'local' libraries (so we don't have to make this old ssl globally available) | |
$ dpkg -L nice-dcv-viewer |
This file contains hidden or 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
# WSL2_PORT_FORWARDING.ps1 | |
# This script created by Brian Ketelsen (https://www.brianketelsen.com/blog/ssh-to-wsl2/ | |
# and trivially patched by Thomas Willey 12/2020 | |
# PURPOSE: Enable local development in WSL2 and expose webservers/services over IP from w/in WSL2 to local network of windows machine | |
# Use example scenario: | |
# 1. open WSL2, start server (e.g., python3 http.server 0.0.0.0:8000), and try to visit from win machine (e.g., http://localhost:8000) - notice it fails to resolve. | |
# 2. open powershell as administrator and run this script | |
# 3. refresh the page on your win machine's browser (http://localhost:8000) and see that it loads up. | |
# 4. bonus: mDNS should work. So you can access from e.g., your phone on local wifi to http://<windows hostname>.local:8000 |
This file contains hidden or 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
# generate 5000 chars | |
tr -dc A-Za-z0-9 </dev/urandom | head -c 5000 ; echo '' |
This file contains hidden or 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
#!/bin/bash | |
# Get current swap usage for all running processes | |
# Erik Ljungstrom 27/05/2011 | |
# Modified by Mikko Rantalainen 2012-08-09 | |
# Pipe the output to "sort -nk3" to get sorted output | |
# Modified by Marc Methot 2014-09-18 | |
# removed the need for sudo | |
SUM=0 | |
OVERALL=0 |
Get the ip address of the wsl2 host. Note: worth considering if you have multiple, to do a
wsl --shutdown && wsl
to clean it up, and also set the preferred host/distro
directly using wsl (see: wsl --help
about setting defaults).
Anyway, to get that ip (note the -I and not the -i):
This file contains hidden or 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
pip freeze | cut -d= -f1 | while read pkg; do pip show "$pkg" | grep "Required-by:" | awk -v pkgname="$pkg" -F': ' '!$2 {print pkgname}'; done |
OlderNewer