In /etc/default/grub, modify:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off"
Then sudo update-grub
| #!/usr/bin/sudo ruby | |
| # | |
| # revealer.rb -- Deobfuscate GHE .rb files. | |
| # | |
| # This is simple: | |
| # Every obfuscated file in the GHE VM contains the following code: | |
| # | |
| # > require "ruby_concealer.so" | |
| # > __ruby_concealer__ "..." |
In /etc/default/grub, modify:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off"
Then sudo update-grub
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| read -e IMAGE; | |
| defaults write com.apple.desktop Background "{default = {ImageFilePath='$IMAGE'; };}" | |
| killall Dock |
| print(String(data: try! JSONSerialization.data(withJSONObject: dict, options: .prettyPrinted), encoding: .utf8)!) |
| #!/bin/sh | |
| echo Install all AppStore Apps at first! | |
| # no solution to automate AppStore installs | |
| read -p "Press any key to continue... " -n1 -s | |
| echo '\n' | |
| echo Install and Set San Francisco as System Font | |
| ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)" | |
| echo Install Homebrew, Postgres, wget and cask | |
| ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" |
| ➜ ~ sw_vers | |
| ProductName: Mac OS X | |
| ProductVersion: 10.12.1 | |
| BuildVersion: 16B2333a | |
| ➜ ~ ls -l /System/Library/Filesystems/apfs.fs/Contents/Resources | |
| total 2088 | |
| -rwxr-xr-x 1 root wheel 349760 22 Sep 03:48 apfs.util | |
| -rwxr-xr-x 1 root wheel 352880 22 Sep 03:48 apfs_invert |
| From: https://www.reddit.com/r/programming/comments/8jjq33/11_best_programming_fonts/dz0xxs5/ | |
| ------ | |
| o0O s5S z2Z !|l1Iij {([|})] .,;: ``''"" | |
| a@#* vVuUwW <>;^°=-~ öÖüÜäÄßµ \/\/ | |
| the quick brown fox jumps over the lazy dog | |
| THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG | |
| 0123456789 &-+@ for (int i=0; i<j; ++i) { } |
| ### BEGIN INIT INFO | |
| # Provides: firewall-ipv4 | |
| # Required-Start: $network | |
| # Required-Stop: $network | |
| # Default-Start: S 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Firewall rules | |
| # Description: Simple script to initialise an iptables firewall | |
| ### END INIT INFO |