Skip to content

Instantly share code, notes, and snippets.

@R0B3RDV
R0B3RDV / bom_check.php
Created March 18, 2017 02:52 — forked from jdlx/bom_check.php
PHP script to recursively check php files for BOM (ByteOrderMark)
<?php
/**
* @author Atanas Vasilev
* @link http://pastebin.com/dHbqjUNy
* @see http://www.dotvoid.com/2010/04/detecting-utf-bom-byte-order-mark/
* @version 1.1
*/
// SETTINGS
@R0B3RDV
R0B3RDV / index.pug
Created May 27, 2017 00:24
Ionic CLI - Build
body(ng-app='app')
.container-fluid
p
form
.row(ng-controller='AppCtrl as app')
.col-md-6
h4
kbd Build Configurations
p &nbsp;
.row
#!/bin/bash
################################
# OS X Install ISO Creater #
# #
# Author: shela #
################################
#######################################
# Declarations
@R0B3RDV
R0B3RDV / create-iso.sh
Created June 6, 2017 06:39 — forked from julianxhokaxhiu/create-iso.sh
Simple bash script to create a Bootable ISO from macOS Sierra Install Image from Mac App Store
#!/bin/bash
#
# Credits to fuckbecauseican5 from https://www.reddit.com/r/hackintosh/comments/4s561a/macos_sierra_16a238m_install_success_and_guide/
# Adapted to work with the official image available into Mac App Store
#
# Enjoy!
hdiutil attach /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build

Keybase proof

I hereby claim:

  • I am r0b3rdv on github.
  • I am robertv (https://keybase.io/robertv) on keybase.
  • I have a public key ASBJ6yVAN-dSQjNIjsdCahhNlzGVk69Pi-1zKqvad_YzHAo

To claim this, I am signing this object:

@R0B3RDV
R0B3RDV / split_street.php
Last active April 4, 2023 14:17
Function in PHP to split Dutch addresses as a string, to an array with street, number and addition apart
<?php
function split_street(string $streetStr) :array {
$aMatch = array();
$pattern = '#^([\w[:punct:] ]+) (\d{1,5})\s?([\w[:punct:]\-/]*)$#';
preg_match($pattern, $streetStr, $aMatch);
$street = $aMatch[1] ?? $streetStr;
$number = $aMatch[2] ?? '';
$numberAddition = $aMatch[3] ?? '';
return array('street' => $street, 'number' => $number, 'numberAddition' => $numberAddition);
}
@R0B3RDV
R0B3RDV / end.gcode
Last active March 1, 2024 14:47
Start and End G-code for Creality Ender 3 V2 on Cura with BL-Touch with the latest Jyers firmware (UBL release)
; --- Start of custom END G-Code for Creality Ender 3 V2 with BL-Touch and latest https://github.com/Jyers/Marlin/releases UBL firmware installed and Cura Slicer ---
M400 ; Wait for current moves to finish
M220 S100 ; Reset Speed factor override percentage to default (100%)
M221 S100 ; Reset Extrude factor override percentage to default (100%)
G91 ; Set coordinates to relative
G1 F2400 E-5 ; Retract filament 5mm at 40mm/s to prevent stringing
G0 F5000 Z20 ; Move Z Axis up 20mm to allow filament ooze freely