- Click Setup...
- Choose "alsa" as the Driver
- Choose the analog interface as the Interface (in my case it is
- Go to the Advanced tab
- Enter the number of inputs in the first textbox next to Channels I/O (
2in my case)
- Enter the number of outputs in the second textbox next to Channels I/O (
2in my case)
- Click OK
- Click Start
- Start Bitwig and select "JACK" as the Driver model
This may work with other Macbook Pro models that have an Intel GPU and a NVidia one, but I only have proof that this works on a MacBook Pro Mid 2014 (MacBookPro11,3) with Ubuntu 18.04.
If you want to be sure about which model you have, run
sudo dmidecode -t system in the Terminal and you will see the information about the system including the serial number and product name (MacBookPro11,3 in my case).
I'm assuming you have installed the NVidia propietary drivers, which can be installed from the application "Software & Updates" in the tab "Additional Drivers".
Steps to use the Intel GPU:
lspci |grep VGAand check that only one line mentioning "NVIDIA" is printed. This is to be sure that you are required to do the following steps. If two lines appear, and one of those mentions "Intel", then you probably do not need to activate the GPU but only select it as the main GPU (jump to the step where you have to "Open
After installing the latest NVidia proprietary driver (version 390) using Software & Updates > Additional Drivers, it wasn't possible to change the backlight intensity/brightness of the screen.
The solution that worked for me was to run:
sudo setpci -H1 -s 00:01.00 BRIDGE_CONTROL=0.
If that solution works for you too, then you may want to make the change permanent. Otherwise, you will have to run the same command each time you power on your Macbook.
Steps to make the change permanent:
- Open "Terminal"
sudo gedit /etc/rc.local
Important: I'm writing this when the last version of macOS (and the one I have installed) is Mojave. There is already a script which installs Mojave in a virtual machine here https://github.com/img2tab/okiomov. But if you are curios how to do everything manually to install High Sierra, then this guide may be useful.
After reading a few articles I ended up with these steps:
- On macOS, download the High Sierra installer (even if you have Mojave installed): https://itunes.apple.com/us/app/macos-high-sierra/id1246284741?ls=1&mt=12
- If the High Sierra Installer starts, quit it.
- Open "Disk Utility".
- Click on "File" > "New Image" > "Blank image...". Or just press cmd+N.
The following is not a bug in the web browsers - it's supposed to work this way - but is useful in some cases like the one described.
window.name and passing it to something like
setTimeout([here], [some_milliseconds]), I don't remember correctly... The thing is that the value of
window.name = 'alert()' showed an
To use this behavior for an attack, you have two options:
- if the endpoint is frameable from any domain, you can create an
- if it's not frameable, you can set
The one I used was the second option.
|from burp import IBurpExtender|
|from burp import IProxyListener|
|class BurpExtender(IBurpExtender, IProxyListener):|
|def registerExtenderCallbacks(self, callbacks):|
|self.helpers = callbacks.getHelpers()|
|self.callbacks = callbacks|
|callbacks.setExtensionName('Highlight in scope')|
- Install the Connection Manager that is launched when you connect the modem to the Mac
- Download the source of
usb_modeswitchfrom here http://www.draisberghof.de/usb_modeswitch/ (at the moment of writing this the file appears with the name usb-modeswitch-2.5.2.tar.bz2)
makein the directory of the source you downloaded
sudo ./usb_modeswitch -v12d1 -p1505 -Xin the same directory
If the last step returns an error (I don't remember the error now, but I was getting an error related to
usb_modeswitch not being able to take control of the modem to perfom changes):
- Unplug the modem and plug it again
- As soon as you plug the modem again, run
sudo ./usb_modeswitch -v12d1 -p1505 -Xrepatedly until you get a successful result
- Open Connection Manager and your modem is going to be detected
|# If you have something like this|
|matplotlib.pyplot.plot(x_values, y_values, color='yellow')|
|# You can do the same on OpenCV like this|
|curve = numpy.column_stack((x_values.astype(numpy.int32), y_values.astype(numpy.int32)))|
|cv2.polylines(image, [curve], False, (0,255,255))|
|# And if you need to plot more curves just add them as an element to the array of polygonal curves|
|curve1 = numpy.column_stack((x1.astype(numpy.int32), y1.astype(numpy.int32)))|
|curve2 = numpy.column_stack((x2.astype(numpy.int32), y2.astype(numpy.int32)))|