This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git tag -d <tagname> | |
git push origin :refs/tags/<tagname> | |
git tag -f <tagname> | |
git push origin master --tags |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# requirements: | |
# | |
# md5 | |
# cut | |
# tr | |
# base64 | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import objc | |
from Foundation import NSBundle, NSClassFromString | |
SeedingBundle = NSBundle.bundleWithPath_('/System/Library/PrivateFrameworks/Seeding.framework') | |
objc.loadBundleFunctions(SeedingBundle, globals(), [("currentBuildIsSeed", '@')]) | |
buildInfo = NSClassFromString('SDBuildInfo') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import objc | |
from Foundation import NSBundle, NSClassFromString | |
SeedingBundle = NSBundle.bundleWithPath_('/System/Library/PrivateFrameworks/Seeding.framework') | |
functions = [ | |
('currentCatalog', '@'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
softwareupdate --clear-catalog | |
Enabling is a bit more tricky, because you need to choose your channel/source. The options are: | |
OS X Public Beta | |
sudo softwareupdate --set-catalog https://swscan.apple.com/content/catalogs/others/index-10.12beta-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz | |
OS X Developer Beta catalog | |
sudo softwareupdate --set-catalog https://swscan.apple.com/content/catalogs/others/index-10.12seed-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Procedure followed by Pepijn to run the high sierra firmware installer: | |
1. get the FirmwareUpdate.pkg file from the OS installer app's installESD.dmg | |
2. extract the contents using pkgutil --expand FirmwareUpdate.pkg <path somewhere>/FirmwareUpdate | |
3. in terminal, cd to the Scripts directory inside the expanded firmwareupdate pkg. | |
4. with Scripts as your working directory, run these 2 commands, then reboot: | |
/usr/libexec/FirmwareUpdateLauncher -p "$PWD/Tools" | |
/usr/libexec/efiupdater -p "$PWD/Tools/EFIPayloads" | |
5. at the reboot, firmware will be updated if there are any updates to be applied. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
innobackupex --slave-info --databases=db ./ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
security cms -D -i path_to_mobileprovision |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# resize LXC by lxctl | |
lxctl set <container> --rootsz 150g | |
# or | |
lxctl stop <container> | |
e2fsck -f /dev/vg00/container |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How To Add Swap on Ubuntu 14.04 | |
Posted Apr 28, 2014 532.2k views Getting Started Linux Basics Server Optimization Ubuntu | |
Introduction | |
One of the easiest way of increasing the responsiveness of your server and guarding against out of memory errors in your applications is to add some swap space. Swap is an area on a hard drive that has been designated as a place where the operating system can temporarily store data that it can no longer hold in RAM. | |
Basically, this gives you the ability to increase the amount of information that your server can keep in its working "memory", with some caveats. The space on the hard drive will be used mainly when space in RAM is no longer sufficient for data. | |
The information written to disk will be slower than information kept in RAM, but the operating system will prefer to keep running application data in memory and use swap for the older data. Overall, having swap space as a fall back for when your system's RAM is depleted is a good safety net. |
NewerOlder