Skip to content

Instantly share code, notes, and snippets.

View nogo's full-sized avatar

Danilo nogo

View GitHub Profile
@nogo
nogo / gitea.update
Created March 28, 2018 19:33
Update Gogs to Gitea
#!/bin/sh
mv gogs-repositories gitea-repositories
mkdir gitea
wget -O gitea https://dl.gitea.io/gitea/1.0.2/gitea-1.0.2-linux-amd64
chmod 755 gitea
./gitea web
wget -O gitea https://dl.gitea.io/gitea/1.1.4/gitea-1.1.4-linux-amd64
./gitea web
@nogo
nogo / reinstall.sh
Created December 16, 2016 16:57
Reinstall systemd-bootloader
#!/bin/sh
loadkeys de
mount /dev/sda5 /mnt
mount /dev/sda2 /mnt/boot
arch-chroot /mnt
bootctl update
@nogo
nogo / Readme.md
Last active August 30, 2016 07:54
Install and update my cloud instance

Folder structure

/cloud
  /config
  /data
  /releases
    /current -> X.X.X
    /X.X.X
 /...
#!/bin/bash
# System (Debian)
dpkg-reconfigure locales
apt-get install mc htop
# ZSH
apt-get install zsh git
chsh -s $(which zsh)
cd /usr/local/share
git clone https://github.com/robbyrussell/oh-my-zsh.git
@nogo
nogo / setup.sh
Last active May 31, 2017 10:53
Arch linux setup
loadkeys de
setfont lat9w-16
systemctl start dhcpcd
timedatectl set-ntp true
parted /dev/nvme0n1
(parted) mklabel gpt
(parted) mkpart ESP fat32 1MiB 513MiB
(parted) set 1 boot on
(parted) mkpart primary btrfs 513MiB 100%
@nogo
nogo / gist:1374056
Created November 17, 2011 18:47
Google Maps Page Integration
<div id="map_container" style="width: 100%; height: 300px; margin-bottom: 10px;"></div>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=en"></script>
<script type="text/javascript">
var Markers = [{"address":"ADRESSE","info":"","title":""}];
var Marker = "/path/to/image/marker.png";
(function($, markers, markerIcon) {
var map, geocoder, infowindow;
@nogo
nogo / fusemount.sh
Created November 14, 2011 18:58
fusemount - mount easy different locations via sshfs, smb, curlftpfs
#!/bin/bash
#
# fusemount - easy use mount tool with config files
#
CONFIG=~/.fusemount
function usage
{
more << EOF