Skip to content

Instantly share code, notes, and snippets.

@riteshsingh1
riteshsingh1 / cloudSettings
Last active April 24, 2024 10:34
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-12-31T11:36:46.708Z","extensionVersion":"v3.4.3"}
@marulitua
marulitua / setup.sh
Last active November 16, 2023 00:38
Instal php5.6 with phpbrew on ubuntu 18.04
#!/bin/bash
# Instal php5.6 with phpbrew on ubuntu 18.04
# Install all dependencies
sudo apt update
sudo apt install wget php build-essential libxml2-dev libxslt1-dev libbz2-dev libcurl4-openssl-dev libmcrypt-dev libreadline-dev libssl-dev autoconf
wget https://github.com/phpbrew/phpbrew/raw/master/phpbrew
chmod +x phpbrew
mv phpbrew /usr/local/bin
@Cartexius
Cartexius / install_gtest_ubuntu.md
Last active November 7, 2024 00:57
Install gtest in Ubuntu
@Glifery
Glifery / Assessment.php
Last active June 18, 2018 06:46
Entity to it's ID serialization handler
<?php
namespace MyVendor\MyBundle\Model;
use MyVendor\MyBundle\Entity\User;
use JMS\Serializer\Annotation as JMS;
class Assessment
{
...
// XPath CheatSheet
// To test XPath in your Chrome Debugger: $x('/html/body')
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/
// 0. XPath Examples.
// More: http://xpath.alephzarro.com/content/cheatsheet.html
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class