Skip to content

Instantly share code, notes, and snippets.

View obar1's full-sized avatar
🏠
Working from home

mar10 obar1

🏠
Working from home
View GitHub Profile
@obar1
obar1 / smallgist.sh
Created January 16, 2020 11:08
Created with Copy to Gist
#!/bin/bash
echo Script name: $0
echo $# arguments
if [$# -ne 1];
then echo "illegal number of parameters"
fi
@obar1
obar1 / smallgist.sh
Created January 15, 2020 13:20
Created with Copy to Gist
4
you should use git checkout --track origin/branch2
@obar1
obar1 / smallgist.sh
Created January 15, 2020 13:18
Created with Copy to Gist
Search Results
Featured snippet from the web
git clean
If you just clean untracked files, run git clean -f.
If you want to also remove directories, run git clean -f -d.
If you just want to remove ignored files, run git clean -f -X.
@obar1
obar1 / smallgist.sh
Created January 14, 2020 10:58
Created with Copy to Gist
/etc/hadoop/conf/core-site.xml
@obar1
obar1 / smallgist.html
Created January 12, 2020 18:36
Created with Copy to Gist
Scala: Using gradle to build your project
If you want to use gradle to compile scala, ensure you have gradle, either in your system or via the gradle wrapper.
 
Create this build.gradle file:
apply plugin: 'scala'
repositories {
mavenCentral()
}
@obar1
obar1 / smallgist.html
Created January 7, 2020 09:47
Created with Copy to Gist
Setup for every Server that you connect to
The easy way is to run the command:
W$ ssh-copy-id S
Eg:
W$ ssh-copy-id server.example.com
W$ ssh-copy-id [email protected]
You will need to use the second form if your username is different on the two machines.
@obar1
obar1 / smallgist.html
Last active January 2, 2020 14:27
caliber
Download for Linux
The latest release of calibre is 4.7.0. What's new.
Please do not use your distribution provided calibre package, as those are often buggy/outdated. Instead use the Binary install described below.
Binary install
calibre has a binary install that includes private versions of all its dependencies. It runs on 32-bit and 64-bit Intel compatible machines. To install or upgrade, simply copy paste the following command into a terminal and press Enter:
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
While you wait for the download to complete, please consider contributing to support the development of calibre.
@obar1
obar1 / Check and repair corrupt Windows files
Last active January 2, 2020 12:29
Check and repair corrupt Windows files
Check and repair corrupt Windows files
Windows files can sometimes become corrupt and this can wreak havoc on your PC — including a stuck Start menu. Fortunately, Windows 10 has a built-in way of resolving this.
1. Launch Task manager
Press the [Ctrl] + [Alt] + [Del] keys on your keyboard at the same time - alternatively, right click the Taskbar. Then select Task manager.
2. Run a new Windows task
When the Task manager window opens, click the More details option to expand it, then select Run new task from the File menu.
@obar1
obar1 / smallgist.sh
Created December 27, 2019 10:24
Created with Copy to Gist
xrandr -s 1440x900
export dirname=/var/run/cloudera-scm-agent/process/
sudo find $dirname -not -empty `-ls -l` | grep keytab