Skip to content

Instantly share code, notes, and snippets.

View Jeket's full-sized avatar

Jeket Jeket

View GitHub Profile
@damianopetrungaro
damianopetrungaro / .gitconfig
Last active September 12, 2021 18:41
Git aliases
# Need HUB Download here -> https://hub.github.com/
# Need commitizen and cz-conventional-changelog Download here -> http://slides.com/damianopetrungaro/working-with-git/#/0/17
```
[alias]
co = checkout
cob = checkout -b
coo = !git fetch && git checkout
ft = fetch
ftp = fetch -p
@opragel
opragel / forcefully_remove_mdm_1015.sh
Last active May 1, 2025 14:29
forcefully_remove_mdm_1015.sh
#!/bin/bash
# Seriously there still apparently aren't enough warning labels
# If you don't understand the consequences don't do it
REMOVE_PATHS=( # "/var/db/ConfigurationProfiles/.passcodePolicesAreInstalled"
# "/var/db/ConfigurationProfiles/.cloudConfigHasActivationRecord"
# "/var/db/ConfigurationProfiles/.cloudConfigNoActivationRecord"
# "/var/db/ConfigurationProfiles/.cloudConfigProfileObtained"
# "/var/db/ConfigurationProfiles/.cloudConfigRecordFound"
# "/var/db/ConfigurationProfiles/.profilesAreInstalled"
@szepeviktor
szepeviktor / get_leafs.php
Created June 7, 2017 23:46
Convert a PHP multi-dimensional array to a leaf-only array with full-depth array keys
<?php
function get_leafs( $array ) {
$leafs = array();
if ( ! is_array( $array ) ) {
return $leafs;
}
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 19, 2026 15:49
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

iOS, The Future Of macOS, Freedom, Security And Privacy In An Increasingly Hostile Global Environment

This post by a security researcher who prefers to remain anonymous will elucidate concerns about certain problematic decisions Apple has made and caution about future decisions made in the name of “security” while potentially hiding questionable motives. The content of this article represents only the opinion of the researcher. The researcher apologises if any content is seen to be inaccurate, and is open to comments or questions through PGP-encrypted mail.



TL;DR

@zmts
zmts / tokens.md
Last active July 19, 2026 09:57
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@gagarine
gagarine / install-clamav-osx.md
Last active April 20, 2026 18:39
Howto Install clamav on OSX with brew

Howto Install clamav on OSX with brew

Note: on legacy intel system the path may be /usr/local/etc/clamav instead of /opt/homebrew/etc/clamav/

$ brew install clamav
$ cd /opt/homebrew/etc/clamav/
$ cp freshclam.conf.sample freshclam.conf
@danbjoseph
danbjoseph / mac_setup.md
Last active June 24, 2018 09:40
Mac OS X setup

OSX preferences

#show status bar in finder
defaults write com.apple.finder ShowStatusBar -bool true

#show path bar in finder
defaults write com.apple.finder ShowPathbar -bool true

#avoid creating .DS_Store files on network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
@thejettdurham
thejettdurham / homestead-xdebug.md
Last active November 1, 2021 23:43
Debugging laravel/lumen + artisan from Homestead with PHPStorm over xdebug

This config works for me with the following setup, YMMV

  • OSX El Capitain
  • PHPStorm 2016.2.1
  • Lumen 5.2
  • Homestead as of Lumen 5.2
    • php 7.0.8-2
    • Xdebug 2.4.0

Homestead Configuration

@tomraithel
tomraithel / Set_up_a_new_mac.txt
Last active April 11, 2024 14:02
Stuff I use to install if I setup a new mac
- Change the root password!
- System Settings > Security
- General: Set Password required to "instant"
- FileVault: activate
- System Setting > Keyboard
- Set all key speeds to "fast"
- Mark checkbox to use "fn" keys without option key
- Generate SSH-Key: ssh-keygen -t rsa -C "email@provider.com" -b 2048
- Change desktop background :)
- Install PHPstorm + Java