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
import os | |
import re | |
files = os.listdir(os.getcwd()) | |
for file in os.listdir(os.getcwd()): | |
if file.endswith(".pdf"): | |
escaped = re.escape(file) | |
print(escaped) | |
os.system(f"pdfposter {escaped} splitted-{escaped} -m a4 -p 2x1a4") |
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 | |
// @formatter:off | |
/** | |
* A helper file for Laravel, to provide autocomplete information to your IDE | |
* Generated for Laravel 7.14.1 on 2020-06-08 06:21:19. | |
* | |
* This file should not be included in your code, only analyzed by your IDE! | |
* | |
* @author Barry vd. Heuvel <[email protected]> |
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
### Keybase proof | |
I hereby claim: | |
* I am mludi on github. | |
* I am matzl (https://keybase.io/matzl) on keybase. | |
* I have a public key ASCmUs4byWz6bnn1lF4WLjPfLmGobIMgSPq6dUB9XWcT1go | |
To claim this, I am signing this object: |
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 | |
public function sendMessage($data, $token, $notificationType) | |
{ | |
$url = 'https://fcm.googleapis.com/fcm/send'; | |
/** | |
* * If you'd like to send to mulitple devices 'registration_ids' => [$tokens], | |
*/ | |
$postFields = json_encode([ | |
'to' => $token, |
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
[gallery type='flickr' photoset_id='72157631510267516' layout='mosaic' count='30' more='Mehr anzeigen'] |
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
mysqldump --no-data --add-drop-table DB_NAME | grep ^DROP | mysql -v DB_NAME |
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 | |
ls | grep -v -E '(1|2)' | xargs rm -rf |
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
import UIKit | |
enum Style: String { | |
case light, dark | |
} | |
class ViewController: UIViewController { | |
let style: Style | |
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 | |
cd ~ | |
sudo apt-get update -y | |
sudo apt-get install clang libicu-dev binutils git -y | |
sudo apt-get install libcurl4-openssl-dev -y | |
sudo apt-get install libpython2.7 libpython2.7-dev -y | |
sudo apt-get install libmysqlclient-dev -y | |
wget https://swift.org/builds/swift-3.0-release/ubuntu1510/swift-3.0-RELEASE/swift-3.0-RELEASE-ubuntu15.10.tar.gz | |
tar zxf swift-3.0-RELEASE-ubuntu15.10.tar.gz | |
sudo mv swift-3.0-RELEASE-ubuntu15.10 /swift-3.0 |