Callgrind is a profiling tool that can be used via the Valgrind framework and its report can be displayed/inspected with the KCachegrind profile data visualization tool.
Install
sudo apt-get install powerstat pm-utils powertop | |
echo SATA_ALPM_ENABLE=true | sudo tee /etc/pm/config.d/sata_alpm | |
sudo pm-powersafe true | |
sudo powertop --auto-tune |
########################## | |
### ON THE CLIENT SIDE ### | |
########################## | |
# to be put into the global section of the file /etc/samba/smb.conf | |
# (if there is no such: sudo apt-get install smbclient) | |
client use spnego = no | |
# To connect other (normal) Samba servers: | |
client use spnego = yes | |
client schannel = auto |
#!/bin/sh | |
sudo mkdir -p /mnt/linux | |
sudo mount /dev/sda1 /mnt/linux | |
for i in /sys /proc /run /dev /dev/pts; do sudo mount --bind "$i" "/mnt/linux$i"; done | |
sudo chroot /mnt/linux |
# deb cdrom:[Ubuntu 17.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted | |
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://hu.archive.ubuntu.com/ubuntu/ xenial main restricted | |
# deb-src http://hu.archive.ubuntu.com/ubuntu/ xenial main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. | |
deb http://hu.archive.ubuntu.com/ubuntu/ xenial-updates main restricted |
Callgrind is a profiling tool that can be used via the Valgrind framework and its report can be displayed/inspected with the KCachegrind profile data visualization tool.
Install
' Battery Full Notification VBS - checking in each 5 min | |
' To start automatically on logon, put into the directory that opens on: | |
' Win+R: Open: [shell:startup] -> [OK] | |
' (C:\Users\YOU\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup) | |
set oLocator = CreateObject("WbemScripting.SWbemLocator") | |
set oServices = oLocator.ConnectServer(".","root\wmi") | |
set oResults = oServices.ExecQuery("select * from batteryfullchargedcapacity") | |
for each oResult in oResults | |
iFull = oResult.FullChargedCapacity |
Sub exportSvg() | |
Dim formatExtension As String | |
formatExtension = ".svg" | |
' initializations | |
folder = ThisDocument.Path | |
Set doc = Visio.ActiveDocument | |
folder = doc.Path |
/* overload for function-like macros with various number of named arguments */ | |
#define OVERLOAD(Func, .../* Arg1[, Arg2[, Arg3]] */) \ | |
FUNC_SEL(__VA_ARGS__, Func##3, Func##2, Func##1, x)(__VA_ARGS__) | |
#define FUNC_SEL(Arg1, Arg2, Arg3, Func, ...) Func | |
#define FUNC(/* arg1[, arg2[, arg3]] */ ...) OVERLOAD(FUNC, __VA_ARGS__) | |
#define FUNC2(arg1, arg2) arg1#arg2 /* whatever to do with 2 args */ | |
#define FUNC3(arg1, arg2, arg3) arg1#arg2#arg3 /* whatever to do with 3 args */ |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |