Date: 2016-10-04 Version: 1.2
Author: s1lvester@bockhacker.me
This is my short documentation on how to install RancherOS on FreeNAS.
Versions used:
- RancherOS v.0.6.1
- FreeNAS 9.10-stable
| # Get-EvengLog doesn't quite work I guess: | |
| # https://stackoverflow.com/questions/31396903/get-eventlog-valid-message-missing-for-some-event-log-sources# | |
| # Get-EventLog Application -EntryType Error -Source "DistributedCOM" | |
| # The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID | |
| #$logs = Get-EventLog -LogName "System" -EntryType Error -Source "DCOM" -Newest 1 -Message "The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID*" | |
| # 2 is error | |
| # 3 is warning | |
| $EVT_MSG = "The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID" | |
| # Search for System event log ERROR entries starting with the specified EVT_MSG | |
| $logEntry = Get-WinEvent -FilterHashTable @{LogName='System'; Level=2} | Where-Object { $_.Message -like "$EVT_MSG*" } | Select-Object -First 1 |
| #! /usr/bin/env python3 | |
| """Fixing bluetooth stereo headphone/headset problem in debian distros. | |
| Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
| Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
| This will be only fixes the bluez5 problem mentioned above . | |
| Licence: Freeware |
| *** | |
| *** Inscrivez vous aux webinaires 2017 : https://attendee.gotowebinar.com/register/7239291589398918401 | |
| *** | |
| Webinaire "Présentation des principaux services AWS" : | |
| https://www.youtube.com/watch?v=FC--jteXU_8 | |
| http://www.slideshare.net/JulienSIMON5/presentation-des-services-aws | |
| Webinaire "Modèle de sécurité AWS" : | |
| https://www.youtube.com/watch?v=1QeKH-5nTIc |
I will be moving from FreeNAS jails to ubuntu with docker, docker compose, and portainer. FreeNAS support and updates are lacking. There are many advantages to making the switch and with ZFS on linux I think FreeNAS may be a thing of the past. Stay tuned for a new guide of my latest setup. Check out my other gists for progress on the switch. https://gist.github.com/mow4cash/626275e095f7f90898944a85d66b3be6
WARNING READ THIS: This page contains incomplete and possibly incorrect info. The page is constantly being edited and worked on. Many of these should work but some may be broken. Read the code carefully to understand what you are doing, stuff may be need to be changed for your own use. This includes but not limited too JAIL AND ROUTER IPs, YOUR FREENAS MAIN VOLUME,THE MOST RECENT RELEASE OF DOWNLOADED FILES Use at your own risk.There may be helpful info in the comments.
Find me in the FreeNAS forums
| # Discard all changes on your local branch and go back to the version you have on the remote branch | |
| # Put this in your .gitconfig | |
| [alias] | |
| dammit = !BRANCH=$(git rev-parse --abbrev-ref HEAD) \ | |
| && git fetch origin $BRANCH \ | |
| && git reset --hard origin/$BRANCH | |
| # Usage: git dammit |
| # Modify any commit of your history in one command (shorthand) | |
| # Put this in your .gitconfig | |
| [alias] | |
| fixup = !sh -c 'SHA=$(git rev-parse $1) \ | |
| && git commit --fixup $SHA \ | |
| && git rebase -i --autosquash $SHA~' - | |
| # Usage: git fixup {sha1} |
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb
| # Before running that script, use Twitter backup CSV file to pick up the tweets | |
| # you want to delete. Save, then run: | |
| # cat tweets.csv | cut -f 2 -d '"' | grep '^[0-9]*$' | sed '/^$/d' > delete.csv | |
| # gem install twitter (in case you miss the gem already) | |
| require 'twitter' | |
| client = Twitter::REST::Client.new do |config| | |
| config.consumer_key = '' | |
| config.consumer_secret = '' |
www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com is up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm. Will not work if proxied (source).update: A minor variant of the viru