-
Made with <3
-
Made with ❤️ in {Location}
-
Made with {App/Framework/CMS} and ❤️
-
Made with
lovea keyboard -
Made for $
This file contains hidden or 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 | |
| function curl_get_contents($url, $json = false, $show_error = false) { | |
| if (!function_exists('curl_init')) { return file_get_contents($url); } // fallback | |
| $ch = curl_init(); | |
| $options = array( | |
| CURLOPT_SSL_VERIFYPEER => false, | |
| CURLOPT_RETURNTRANSFER => true, | |
| CURLOPT_URL => $url, | |
| CURLOPT_HEADER => false, | |
| ); |
This file contains hidden or 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 | |
| function curl_get_contents($url) { | |
| if (!function_exists('curl_init')) { return file_get_contents($url); } // fallback | |
| $ch = curl_init(); | |
| $options = array( | |
| CURLOPT_CONNECTTIMEOUT => 1, | |
| CURLOPT_RETURNTRANSFER => true, | |
| CURLOPT_SSL_VERIFYPEER => false, | |
| CURLOPT_HEADER => false, | |
| CURLOPT_URL => $url, |
This file contains hidden or 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
| from urllib.request import urlopen | |
| import json | |
| import subprocess, shlex | |
| import sys | |
| allProjects = urlopen("http://gitlab.example.org/api/v3/projects/all?private_token=[PERSONAL_TOKEN]&per_page=100") | |
| allProjectsDict = json.loads(allProjects.read().decode()) | |
| for index,thisProject in enumerate(allProjectsDict): | |
| try: | |
| thisProjectURL = thisProject['ssh_url_to_repo'] + ' ' + thisProject['path_with_namespace'].replace('/', '_'); |
This file contains hidden or 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 | |
| /** | |
| * Alle kaputten Umlaute reparieren bei Umstellung von ISO->UTF8 | |
| * Source: http://xhtmlforum.de/66480-kleines-skript-alle-umlaute-der-datenbank.html | |
| * | |
| * @project - | |
| * @author Boris Bojic <bojic@devshack.biz> | |
| * @copyright Copyright (c) 2011, Boris Bojic (DevShack) | |
| * @version Fri, 23 Dec 2011 13:47:11 +0100 | |
| * @updated - |
This file contains hidden or 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
| window.WixxURLS = ""; | |
| document.querySelectorAll('[data-src]').forEach(function(el,index) { | |
| window.WixxURLS += el.getAttribute('data-src').replace(/\/v1\/.+/, '') + "\n" | |
| }) | |
| document.body.innerHTML = "<textarea rows='100' cols='100'>" + window.WixxURLS + "</textarea>"; | |
| document.querySelector("textarea").select(); | |
| document.execCommand('copy'); |
This file contains hidden or 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
| #touch body #navbar { | |
| height: 2.5rem; | |
| } | |
| #touch body #printer #state .progress { | |
| top: 3.125rem; | |
| } | |
| #touch body #printer #state { | |
| padding-top: calc(3.125rem + 30px); |
This file contains hidden or 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
| $.ajax({ | |
| url: 'api/url', | |
| method: 'POST', | |
| data: {var:'val'}, | |
| contentType: "application/json; charset=utf-8", | |
| dataType: 'json' | |
| }).done(function(data, textStatus, jqXHR) { | |
| console.log('done'); | |
| }).fail(function(jqXHR, textStatus, errorThrown) { | |
| if (jqXHR.responseJSON) { |
brew install switchaudio-osx- Check your audio devices with
switchaudiosource -a - Replace
Mac mini LautsprecherandExterne Kopfhörerwith your ouput channels - Place the script somewhere your user can execute it (do a
chmod +x audiotoggle.sh) - Copy the json and paste it to BTT. Edit the script path and you're done.
This file contains hidden or 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
| killall Mail &> /dev/null | |
| # optional, if you want to backup any not-synced data | |
| mv ~/Library/Containers/com.apple.mail ~/Desktop/com.apple.mail.backup | |
| # Attention, these commands will delete everything about Apple Mail except the app itself (factory reset) | |
| rm -rf ~/Library/Caches/com.apple.mail | |
| rm -rf ~/Library/Saved\ Application\ State/com.apple.mail.savedState | |
| rm -rf ~/Library/Application\ Support/AddressBook/MailRecents-v4.abcdmr | |
| rm -rf ~/Library/Preferences/com.apple.mail.plist |