This file contains 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
ln -s ./path symlinkToPath |
This file contains 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 -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)" | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" |
This file contains 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
navigator.serviceWorker | |
.register('/sw.js') | |
.then((reg) => console.log('SW registered', reg)) | |
.catch((err) => console.log('rip', err)) |
This file contains 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
# Check process with: ps -ef | grep mysql OR ps aux|grep mysql | |
pkill mysqld | |
mysqld_safe --skip-grant-tables & | |
mysql -u root | |
FLUSH PRIVILEGES; | |
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('foobar'); | |
quit | |
pkill mysql_safe | |
service mysql start | |
# now u good 2 go |
This file contains 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
# AppData\Roaming\Sublime Text 3\Packages\User\default_syntax.py | |
import sublime, sublime_plugin | |
class DefaultSyntaxCommand(sublime_plugin.EventListener): | |
def on_new(self, view): | |
# Replace <Language> with desired default language | |
# Check in AppData\Local\Sublime Text 3\Cache | |
view.set_syntax_file('Packages/<Language>/<Language>.tmLanguage') |
This file contains 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
PODS: | |
- boost-for-react-native (1.63.0) | |
- CocoaAsyncSocket (7.6.4) | |
- CocoaLibEvent (1.0.0) | |
- DoubleConversion (1.1.6) | |
- FBLazyVector (0.62.2) | |
- FBReactNativeSpec (0.62.2): | |
- Folly (= 2018.10.22.00) | |
- RCTRequired (= 0.62.2) | |
- RCTTypeSafety (= 0.62.2) |
This file contains 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
var fs = require("fs"); | |
var glob = require("glob"); | |
glob('*.ovpn', function (err, files) { | |
if (err) { throw err; } | |
files.forEach(function(item,index,array){ | |
// Each .ovpn file will use login.conf containing un and pw | |
fs.appendFile(item, ' auth-user-pass login.conf', function (err) {}); | |
}); | |
}); |
This file contains 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
Target: C:\Windows\System32\cmd.exe /c ""C:\Users\<User>\AppData\Local\GitHub\<Git folder>\bin\sh.exe" --login -i" | |
Start in: C:\Users\<User>\Documents\GitHub |
This file contains 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
sudo service nginx restart | |
sudo service ghost restart |
This file contains 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
// So I wrote this purely to reverse getting hacked | |
// Resulting in following an extra 800 random people | |
// Always de-activate third-party tools after API authorisation! | |
// Enter into your browser console | |
var items = document.querySelectorAll("#content > div > img"); | |
for (var i = 0; i < items.length; i++) { | |
// Simulates mouse hover over user images to open tooltips | |
// (Prevously tried amending the results classes and attributes) |