Skip to content

Instantly share code, notes, and snippets.

Avatar
🦀

Jonas Friedmann frdmn

🦀
View GitHub Profile
@frdmn
frdmn / messages.yml
Created Dec 28, 2015
BanManager spanish translation - messages.yml
View messages.yml
# Variables
# [reason] = Motivo del baneo y el silenciamiento.
# [player] = Nombre del jugador.
# [ip] = IP baneada.
# [actor] = Aquél que baneo o silenció a un jugador.
# [expires] = Tiempo de duración de un baneo o silenciamiento.
# NOTA: ban y mute no tienen una traducción y/o al menos no una traducción muy exacta al español. Puede que la traducción en este archivo no sea 100% precisa.
messages:
duplicateIP: '&cAdvertencia: [player] tiene la misma IP que los siguientes jugadores baneados:\n&6[players]'
View npm
vagrant@vagrant-ubuntu-trusty-64:~$ sudo su
root@vagrant-ubuntu-trusty-64:/home/vagrant# apt-get -y update
Ign http://archive.ubuntu.com trusty InRelease
Get:1 http://security.ubuntu.com trusty-security InRelease [64.4 kB]
Get:2 http://archive.ubuntu.com trusty-updates InRelease [64.4 kB]
Get:3 http://security.ubuntu.com trusty-security/main Sources [101 kB]
Get:4 http://archive.ubuntu.com trusty-backports InRelease [64.5 kB]
Hit http://archive.ubuntu.com trusty Release.gpg
Get:5 http://security.ubuntu.com trusty-security/universe Sources [31.9 kB]
Get:6 http://security.ubuntu.com trusty-security/main amd64 Packages [396 kB]
@frdmn
frdmn / checker.sh
Last active Sep 30, 2015
El Capitan availability checker - read the installation instructions in the bash script below
View checker.sh
#!/usr/bin/env bash
# Installation instructions:
# $ curl -s https://gist.githubusercontent.com/frdmn/c6700ade5a0fc906271f/raw/checker.sh > /usr/local/bin/osx-checker
# $ chmod +x /usr/local/bin/osx-checker
# $ osx-checker
URL="https://itunes.apple.com/search?entity=macSoftware&term=OS+X"
SEARCH_STRING="OS X El Capitan"
TIMEOUT_IN_SECONDS="60"
@frdmn
frdmn / dirty-git-check
Last active Aug 29, 2015
This script checks every 5 minutes if your working git repo has any changed content and if so, it'll "wall" a message to all connected Terminal shells.
View dirty-git-check
#!/usr/bin/env bash
repodir="/opt/minecraft/mc-yeahwhat/plugins"
wallmsgprefix="[git] [plugin-configs]"
wallmsg="${wallmsgprefix} Caution: there are changes in \"${repodir}\" that are not tracked. Make sure to add and commit them!"
tempfile=$(mktemp /tmp/git-dirty_XXXXXXX)
####
echo ${wallmsg} > ${tempfile}
@frdmn
frdmn / gist:62cfef5eb9f7c4408440
Last active Aug 29, 2015
convert text file to-utf8 bash function
View gist:62cfef5eb9f7c4408440
function 2utf8(){
local tmp=$(mktemp)
iconv -f ISO-8859-1 -t UTF-8 $1 > $tmp
if [ -f $tmp ]; then
mv "$tmp" "$1"
fi
}
View keybase.md

Keybase proof

I hereby claim:

  • I am frdmn on github.
  • I am frdmn (https://keybase.io/frdmn) on keybase.
  • I have a public key whose fingerprint is 5920 54EF EE01 1552 6476 4EC9 B6E3 14FB D713 FC95

To claim this, I am signing this object:

@frdmn
frdmn / osx-10-10-virtualbox.md
Last active Jan 18, 2020
Install OS X 10.10 Yosemite in VirtualBox
View osx-10-10-virtualbox.md
@frdmn
frdmn / addVPN.scpt
Last active Aug 29, 2015
Add PPTP VPNs through AppleScript (OS X 10.9/10.10 support)
View addVPN.scpt
-- Moved to https://github.com/frdmn/PIA
@frdmn
frdmn / lc-mailpath
Last active Nov 17, 2016
LiveConfig mail path lookup
View lc-mailpath
#!/bin/bash
###############################################################
# LiveConfig mail path lookup by Jonas Friedmann (iWelt AG) #
# j@frd.mn #
# http://frd.mn #
# http://twitter.com/frdmn #
###############################################################
STRING=${1}
@frdmn
frdmn / motd.sh
Last active Aug 29, 2015
Debian/Ubuntu version of ysaotome's AWS motd (https://gist.github.com/ysaotome/5997652)
View motd.sh
#!/bin/bash
# Description: MOTD for Debian/Ubuntu
# 2013/07/15 @ysaotome
# 2014/05/29 @frdmn
BIN_DATE='/bin/date'
BIN_FIGLET='/usr/bin/figlet'
BIN_HOSTNAME='/bin/hostname'
BIN_IP='/sbin/ip'
BIN_GREP='/bin/grep'
You can’t perform that action at this time.