← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 200
  1. Start broadwayd broadwayd :5 & Start a GTK3 application (for example gtk3-demo) GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 gtk3-demo Application can now be reached from http://hostname:8085.

  2. For readers with Belgian or French keyboards.

  3. I just spent a couple of hours troubleshooting what was for me an odd network connectivity issue.

  4. My host is RHEL7 running Gnome.

  5. If you need to self-hosted and lightweight Github or Gitlab alternative, I suggest you give Gogs a try.

  6. Create an IP alias on Mac OS

    Tested on High Sierra Create an alias: sudo ifconfig en0 alias 192.168.0.101 255.255.255.0 Remove the alias: sudo ifconfig en0 -alias 192.168.0.101

  7. Migrating the site to Mkdocs

    For the past two years, this site has been running with Wikitten, a PHP engine that renders Markdown pages to HTML.

  8. Tested on a Moto G 1st gen XT1032 running Cyanogen 13 Enabling USB debug allowed me to get logcat working at boot.

  9. I’ve been using iptables for more than 10 years and I don’t really like firewalld approach.

  10. I talked about configuration management and cloud orchestration with Salt at Jeudis du libre this April 20.

  11. MITM proxy howto and Android

    Start mitmproxy: .

  12. We entered the 21st century at work and got new workstations.

  13. You read everywhere (and especially here) in Salt documentation that you need a profile file to create virtual machines in one of the supported clouds.

  14. My old Linksys access-point was showing signs of weaknesses and I decided to change for something a bit more professionnal.

  15. yum history list all yum history undo $ID –exclude=kernel* More info: https://access.redhat.com/solutions/29617

  16. Some assumptions: master> = mysql commands on master slave> = mysql commands on slave root@master = bash commands on master root@slave = bash commands on slave /var/lib/mysql/master01-bin.* = name of the replication logs, depending on your config master>…

  17. 2016-06-18 Elasticsearch API is fully open by default and anyone can create (PUT method) or delete indices (DELETE method).

  18. If for some reason you need to simulate latency, latency, loss, duplication or re-ordering on a linux machine, use netem (command tc) as root Adding a delay of 100ms on interface eth0: tc qdisc add dev eth0 root netem delay 100ms Changing the rule: tc qdi…

  19. You get either “X11 connection uses different authentication protocol” or “X11 connection rejected because of wrong authentication”.

  20. Netsed page Netsed is a network packet stream editor.

  21. This one is weird but worked for me.

  22. Get a channel notification token from the Hipchat control panel.

  23. #!

  24. I just published my two first Alfred workflows on Packal.

  25. If you want to run a bash script as a CGI and get this message: [Sun Feb 07 19:51:59.424071 2016] [cgi:error] [pid 4265] [client x.x.x.x:50952] malformed header from script 'weather.sh': Bad header: Searching via name..

  26. I’ve been using Prey for a couple of years now.

  27. Undelete files with lsof

    If you delete a file by mistake, there are several ways to recover it.

  28. Parsing XML with xgrep

    Imagine this file.xml containing: <vehicleinformation version="1.1" timestamp="1453323673"> <vehicle locationX="4.336531" locationY="50.835707">Be.NMBS.P8401</vehicle> <stops number="9"> <stop id="0" delay="16" canceled="0"> <station id="BE.NMBS.008814001…

  29. So let’s say you want to redirect http://example.org?

  30. This happened to me yesterday as I was trying to import a valid Global-sign wildcard certificate.

  31. The following is a recommended setup for Firefox as of September 2015 by https://www.privacytools.io/#about_config and https://www.eff.org/deeplinks/2015/10/how-to-protect-yourself-from-nsa-attacks-1024-bit-DH http://kb.mozillazine.org/Network.IDN_show_pu…

  32. If you want to redirect emails you can use the recipient_canonical_maps option.

  33. I’m spending a lot of time at work automating processes (with Rundeck, Salt, Jenkins, Nexus, SVN, etc.).

  34. Migrating my website (again)

    Date: 2015-08-15 In the first half of this year, I migrated this site from Wordpress to Scriptogram.

  35. Date: 2015-06-18 Use this command: openssl x509 -noout -in /etc/pki/tls/certs/client.crt -dates Output would be: notBefore=Feb 20 16:20:08 2015 GMT notAfter=Feb 20 16:20:08 2016 GMT

  36. Originally published 2015-06-18 I have used Chrome (and Chromium, depending on the platform I’m working on, from now on I’ll refer to it as Chrome) pretty much since it went out of beta.

  37. Date: 2015-04-29 Note: This has been tested on RHEL6 and Postfix 2.6.6 from RHEL repositories and version 2.10 from postfix.org.

  38. Date: 2015-04-17 I bought a Synology DS214j a couple of months ago.

  39. Date: 2015-02-25 Tested with Active Directory 2003 and RHEL 7.0 For RHEL 6.0 see here I consider that the server is correctly set up, its hostname should be set accordingly to the Active Directory domain.

  40. Date: 2015-02-17 I just migrated this blog from Wordpress to Scriptogr.am.

  41. Date: 2015-02-16 tags: Linux, Network This command will allow you to pipe trafic generated by tcpdump on a remote machine into Wireshark running on your local machine: ssh root@dest tcpdump -U -s0 -w - 'tcp port 389' | wireshark -k -i -

  42. Date: 2015-02-16 Tags: linux, bash I use Terminator as my terminal app, and use the “watch for activity” feature a lot.

  43. Date: 2015-02-16 tags: Android, Automagic This has been tested on DCS-930L and DCS-5020L <?

  44. categories: Linux In legacy versions of rsyslog, if you want to use the option PreserveFQDN, you have to set the option before anything else, or it wouldn’t work.

  45. Date: 2014-09-10 Tags: code, php This PHP page allows to retrieve configuration items to populate Rundeck inventory: <?

  46. Bash set builtin- pipefail

    author: admin comments: false layout: post tags: bash, linux By default, if you pipe commands, the exit status reported will be the one of the last command.

  47. categories: Postfix I recently had to set up an outbound Postfix server with SASL authentication against LDAP.

  48. categories: Linux I can never seem to remember the correct command inotifywait -e modify -m -r /home/dir

  49. Date: 2013-07-25 Tags: Bash, Linux Create this script, I’ll call it limits.sh: #!

  50. Date: 2013-07-17 Tags: Linux Either: echo "- - -" > /sys/class/scsi_host/host0/scan Or (usually comes with sg3-utils): rescan-scsi-bus.sh If you want to hot extend a drive: echo 1 > /sys/class/scsi_device/device/rescan I discovered the extend trick here