Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Dennis W. Otugo dennisotugo

🎯
Focusing
View GitHub Profile
View gist:5754676c90929e768a5a60fb43af876f
for f in *.tar; do tar xf $f; done
for f in *.tar.md5; do tar xf $f; done
lz4 -dm *.lz4
adb reboot bootloader
heimdall flash \
--pit part.pit \
--BOOTLOADER sboot.bin \
--CM cm.bin \
--PARAM param.bin \
--UP_PARAM up_param.bin \
View vsf-api-before.json
{
"test_cms1": {
"mappings": {
"cms_block": {
"properties": {
"active": {
"type": "boolean"
},
"content": {
"type": "text"
View vsf-api-after.json
{
"test_cms1_1559332637": {
"mappings": {
"category": {
"properties": {
"available_sort_by": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
View keybase.md

Keybase proof

I hereby claim:

  • I am dennisotugo on github.
  • I am dennisotugo (https://keybase.io/dennisotugo) on keybase.
  • I have a public key ASDCqjUt406i1fe8wDjWty0iq0w851gDJKt9kUiPWKj3YQo

To claim this, I am signing this object:

View Keybase.md

Keybase proof

I hereby claim:

  • I am dennisotugo on github.
  • I am dennisotugo (https://keybase.io/dennisotugo) on keybase.
  • I have a public key ASDCqjUt406i1fe8wDjWty0iq0w851gDJKt9kUiPWKj3YQo

To claim this, I am signing this object:

View gist:b04d8f6d0bd01fa23194a90ddef7caea
//Add a user and give admin privilege
# adduser username
# usermod -aG sudo username
View gist:4fe776e5405081d26f055b59a4d799da
Output
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
Nginx HTTP ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
Nginx HTTP (v6) ALLOW Anywhere (v6)
View gist:67f73e8478ed84f7024b8cc428801dd2
$ sudo ufw status
Output
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
Nginx Full ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
Nginx Full (v6) ALLOW Anywhere (v6)
View gist:201ec140dae2f223903730e63869a2f1
Output
Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
-------------------------------------------------------------------------------
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel):