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 | |
## If your Dropbox folder is not ~/Dropbox, make sure you modify all the commands to point to the correct location. | |
sudo chown "$USER" "$HOME" | |
sudo chown -R "$USER" ~/Dropbox ~/.dropbox ~/.dropbox-dist | |
sudo chattr -R -i ~/Dropbox | |
sudo chmod -R u+rw ~/Dropbox ~/.dropbox ~/.dropbox-dist |
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 | |
xmodmap -e "keycode 66 = Shift_L" | |
xmodmap -e "keycode 118 = Caps_Lock" |
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 | |
if [ -z "$1" ]; then | |
echo "No searchterm given" | |
else | |
if [ "$1" = "wordpress" ]; then | |
x-www-browser https://www.wordpress.org/search/$2 | |
elif [ "$1" = "github" ]; then |
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 | |
sleep 1 | |
xrandr --output DFP10 --mode 1920x1080 --pos 1920x0 --rotate normal --output DFP11 --mode 1920x1080 --pos 0x0 --rotate normal --output CRT1 --off --output DFP8 --off --output DFP9 --off --output DFP6 --off --output DFP7 --off --output DFP4 --off --output DFP5 --mode 1920x1080 --pos 3840x0 --rotate left --output DFP2 --off --output DFP3 --off --output DFP1 --off |
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 | |
echo "Enter host (defined in ~/.ssh/config):" | |
read host | |
if [ -z "${host}" ]; then | |
echo "No host given. Exiting." | |
else | |
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 apt-get install lxappearance |
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
xclip -sel clip < ~/.ssh/id_rsa.pub |
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
# Play/Pause | |
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause | |
# Next | |
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next | |
# Previous | |
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous | |
# Stop |
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
<?php | |
add_action( 'wp_print_scripts', 'dequeue_paupress_scripts', 99999 ); | |
function dequeue_paupress_scripts() { | |
if( is_admin() ) : | |
$current = get_current_screen(); | |
$allowed_screens = array( | |
'users', | |
'toplevel_page_paupress_options', |
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
<?php | |
add_filter( 'manage_edit-acf-field-group_columns', 'hip_acf_columns', 9999 ); | |
add_filter( 'manage_acf-field-group_posts_custom_column', 'hip_acf_columns_html', 9999 ); | |
function hip_acf_columns( $columns ) { | |
$columns['rules'] = __( 'Rules', THEME_TEXTDOMAIN ); | |
return $columns; | |
} | |
function hip_acf_columns_html( $column, $post_id ) { | |
$field_group = get_post( $post_id ); |