Skip to content

Instantly share code, notes, and snippets.

View Inkimar's full-sized avatar

Ing Erl Inkimar

  • Stockholm
  • 01:28 (UTC -12:00)
View GitHub Profile
dig @ns1.loopia.se projektplatsen.se
@Inkimar
Inkimar / gist:17bc6becf5b622e4218ab91eb8cbc2ec
Created September 27, 2017 08:52
Trendings on github - links
https://github.com/trending
https://github.com/showcases
https://github.com/showcases/front-end-javascript-frameworks
https://github.com/showcases/ember-projects
extra:
https://www.sharedrop.io/
@Inkimar
Inkimar / gist:700b88abb09ed98e5ef73503d0a5bd27
Created September 27, 2017 20:12
ssh and file persmissions
https://superuser.com/questions/215504/permissions-on-private-key-in-ssh-folder
Typically you want the .ssh directory permissions to be 700 (drwx------) and the public key (.pub file) to be 644 (-rw-r--r--). Your private key (id_rsa) should be 600 (-rw-------). Lastly, your home directory should not be writeable by the group or others (at most 755 (drwxr-xr-x)).
I am assuming that you mean that you have to enter your system/user password each time, and that previously you did not have to. cdhowie's response is assuming you set a password/passphrase when generating your keys, and if you did th
@Inkimar
Inkimar / gist:bd0cd6c2140281e6782680bb0f0df25a
Created September 28, 2017 07:15
notes on ia (internet archive) CLI tool
http://internetarchive.readthedocs.io/en/latest/cli.html
@Inkimar
Inkimar / gist:439567c6d387fb4f3cca3792b7c7890b
Created October 12, 2017 14:04
backup, cron and restart
wrangler
30 05 * * * cd /root/repos/new_redmine/redmine-docker && ./backup.tmp.sh
service cron restart
dependent on:
.env has to be filled:
database=xxx
user=yyy
psw=zzz
@Inkimar
Inkimar / gist:3148b70c46a49d6dc14b5be0843f8e32
Created October 23, 2017 15:10
search for http in all java source code
find . -name '*.java' -exec grep -i 'http' {} \; -print
@Inkimar
Inkimar / gist:937c13cde8adb633c4ebb8bfd69a767b
Created October 27, 2017 08:10
docker start alpine ...
docker run --rm -it alpine /bin/ash
apk update && apk add --no-cache tini openssl bash
@Inkimar
Inkimar / bash-cheatsheet.sh
Created November 2, 2017 14:22 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@Inkimar
Inkimar / gist:a59e37f9abf2eb22c95f6e59e21e26b9
Created November 9, 2017 14:07
restart of service /etc/rc.local
root@beta:/etc# cat rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
https://www.tecmint.com/18-tar-command-examples-in-linux/
tar -cvf tecmint-14-09-12.tar /home/tecmint/
tar cvzf MyImages-14-09-12.tar.gz /home/MyImages
tar -cvfz collections-api-docker.tar.gz