Skip to content

Instantly share code, notes, and snippets.

View CodyKochmann's full-sized avatar

Cody Kochmann CodyKochmann

  • Severn, MD
View GitHub Profile
@marcbachmann
marcbachmann / etc_docker_daemon.json
Created January 29, 2018 18:50
docker container logs using rsyslog & journald
{ "log-driver": "journald", "log-opts": {"tag": "{{.Name}}/{{.ID}}"}}
@rust-play
rust-play / playground.rs
Created July 3, 2018 14:46
Code shared from the Rust Playground
pub struct Person{
age:i32,
gender: &'static str
}
impl Person{
fn render(&self){
println!( "___age : {}, __gender : {}",self.age, self.gender);
}
@kasunbg
kasunbg / run-gui-apps-from-a-different-user.md
Created April 23, 2019 13:37
How to run a GUI application as a different user?

How to run a GUI application as a different user:

Suppose you are logged into your Linux box as user1 using some X window system already (with GNOME/Unity/..). Now you want to run some gui app as another user, user2.

Run:

  1. xhost + - Run as the user1. This enables access to user1's X window system from other users. You should see following output: 'access control disabled, clients can connect from any host'
  2. sudo su - user2 - Using your favorite terminal, log-in to second user.
  3. export DISPLAY=:0.0 - optional for some apps.
@Elliottba
Elliottba / PY0101EN-3-4-Classes.ipynb
Created July 19, 2019 16:46
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.