Skip to content

Instantly share code, notes, and snippets.

Avatar

Emanuele Cisbani cisba

View GitHub Profile
@cisba
cisba / mysql.sql
Created May 5, 2020 — forked from logrusorgru/mysql.sql
SQL: uniqueness, automatic created_at, updated_at refresh + soft delete. SQLite, PostgreSQL, MySQL
View mysql.sql
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
-- mysql --
-- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
--
-- mysql <http://sqlfiddle.com/#!9/91afb5/2>
-- note: sqlfiddle is very stupid
View gist:a04359f1660b4f34de6bea8dc564619f
Key fingerprint = D1CB 5A13 28C6 0FEE 8D2A 778C 8307 8C70 F6D9 FB91
@cisba
cisba / disable.sh
Created Oct 28, 2019 — forked from pwnsdx/disable.sh
Disable bunch of #$!@ in Catalina
View disable.sh
#!/bin/bash
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
# This script needs to be run from the volume you wish to use.
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
@cisba
cisba / keybase.md
Last active Jun 19, 2017
keybase.md
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: