Skip to content

Instantly share code, notes, and snippets.

View tbalthazar's full-sized avatar
👻
chasing ghosts

Thomas Balthazar tbalthazar

👻
chasing ghosts
View GitHub Profile
#!/bin/bash
# 1. Download this script in /root/neutrinet-connectivity-fix.sh
# 2. chmod +x neutrinet-connectivity-fix.sh
# 3. echo "*/5 * * * * root /sbin/ifconfig tun0 > /dev/null 2>&1 || /root/neutrinet-connectivity-fix.sh > /dev/null 2>&1" > /etc/cron.d/restart_vpn
# 4. This file should contain:
# * * * * * root /sbin/ifconfig tun0 > /dev/null 2>&1 || /root/neutrinet-connectivity-fix.sh
# Remark: test cron job by doing: run-parts -v /etc/cron.d
echo "stopping firewall..."
#!/bin/bash
dummy_pwd=neutrinet
clear
cat <<EOF
********************************************************************************
You are about to configure an Internet Cube for Neutrinet.
All the passwords; yunohost admin account, openvpn password and the password
# En ligne de commande
$ sudo openvpn neutrinet.ovpn
Sat Jan 16 13:08:01 2016 OpenVPN 2.3.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Dec 1 2014
Sat Jan 16 13:08:01 2016 library versions: OpenSSL 1.0.1k 8 Jan 2015, LZO 2.08
Sat Jan 16 13:08:01 2016 UDPv4 link local: [undef]
Sat Jan 16 13:08:01 2016 UDPv4 link remote: [AF_INET]80.67.188.194:1194
Sat Jan 16 13:08:01 2016 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sat Jan 16 13:08:02 2016 [vpn.neutrinet.be] Peer Connection Initiated with [AF_INET]80.67.188.194:1194
Sat Jan 16 13:08:04 2016 TUN/TAP device tun0 opened
@tbalthazar
tbalthazar / debian-config.md
Last active August 29, 2015 14:05
Debian/Config log
@tbalthazar
tbalthazar / debian-install.md
Last active August 29, 2015 14:05
Debian Intall Instructions

Keybase proof

I hereby claim:

  • I am tbalthazar on github.
  • I am tb (https://keybase.io/tb) on keybase.
  • I have a public key whose fingerprint is 8AB7 526A B42C CF5C 6F0E 7DB2 9188 D4C8 1EA9 5107

To claim this, I am signing this object:

@tbalthazar
tbalthazar / harvest_api_bug.rb
Last active August 29, 2015 14:03
Harvest API bug
#!/usr/bin/env ruby
# Create an invoice via the Web UI, and paste its ID here
# Also, fill in the SUBDOMAIN, USERNAME and PASSWORD values.
INVOICE_ID = ''
SUBDOMAIN = ''
USERNAME = ''
PASSWORD = ''
Bonjour,
Le 11 juin 2014, le quota data de mon abonnement était dépassé.
J'ai appelé vos services et ai demandé qu'on m'active un pack data supplémentaire pour finir le mois, afin d'éviter la facturation au mega que je sais coûteuse.
Le 11 juin 2014 à 11h23, j'ai reçu un SMS de votre part "Info Proximus : communication concernant votre service GSM : la modification ou l'option demandée a été effectuée ou ajoutée. Plus d'infos? 1909 (gratuit).". J'ai donc considéré la chose comme faite.
Le 20 juin 2014, j'ai rappelé vos services pour m'assurer que le pack data supplémentaire ne serait pas renouvelé automatiquement le mois suivant. Votre collaborateur m'a dit que "aucun pack n'était activé", que mon "quota était bien épuisé" mais que le système ne me facturait rien, sans qu'il ne comprenne pourquoi. Il m'a dit que je n'aurais donc aucun supplément à payer.
Je viens de recevoir ma facture (n°6420987315) et il y a un supplément de €40.75 en data.
@tbalthazar
tbalthazar / his-logs-2
Created May 9, 2014 10:16
TextSecure bug (continued)
------ beginning of /dev/log/main
D/dalvikvm(23985): GC_EXPLICIT freed 2802K, 17% free 20037K/24136K, paused 18ms+22ms, total 515ms
D/dalvikvm(23985): GC_EXPLICIT freed 157K, 18% free 19909K/24136K, paused 16ms+30ms, total 268ms
D/dalvikvm(23985): GC_EXPLICIT freed 29K, 18% free 19909K/24136K, paused 16ms+37ms, total 361ms
W/KeyCachingService(23985): Incrementing activity count...
W/KeyCachingService(23985): Decrementing activity count...
W/KeyCachingService(23985): Incrementing activity count...
W/KeyCachingService(23985): Decrementing activity count...
D/AbsListView(23985): onVisibilityChanged() is called, visibility : 0
D/AbsListView(23985): unregisterIRListener() is called