Skip to content

Instantly share code, notes, and snippets.

View serdaraglamis's full-sized avatar
💻
Available

Serdar Aglamis serdaraglamis

💻
Available
  • Viaplay Group
  • Stockholm, Sweden
View GitHub Profile
@serdaraglamis
serdaraglamis / yosemite_cpu_id
Created September 6, 2022 09:20 — forked from adfinlay/yosemite_cpu_id
Set CPU ID correctly in VirtualBox for Yosemite
VBoxManage modifyvm "vmname" --cpuidset 00000001 000306a9 00020800 80000201 178bfbff
// File created by serdar.aglamis at 22 November 2017
// from:https://github.com/jserz/js_piece/blob/master/DOM/ChildNode/remove()/remove().md
/********************************
| |
| Dom Element Remove Polyfill |
| |
********************************/
@serdaraglamis
serdaraglamis / cloud-functions-static-outbound-ip.md
Created December 18, 2021 09:39 — forked from brokeyourbike/cloud-functions-static-outbound-ip.md
Cloud functions static outbound IP address

Cloud functions static outbound IP address

The guide inspired by Static outbound IP address for Cloud Run.

1. Find the name of your VPC network:

gcloud compute networks list
@serdaraglamis
serdaraglamis / eme.js
Last active September 24, 2021 08:49
TEST EME ON BROWSER
// EME Check
var keySystems = {
widevine: ['com.widevine.alpha'],
playready: ['com.microsoft.playready', 'com.youtube.playready'],
clearkey: ['webkit-org.w3.clearkey', 'org.w3.clearkey'],
primetime: ['com.adobe.primetime', 'com.adobe.access'],
fairplay: ['com.apple.fairplay']
};
var keySystemsCount = (function () {
var count = 0;
@serdaraglamis
serdaraglamis / vuesnippets-components.js
Last active November 25, 2019 23:26
VueJS Snippets for some key concepts
<div id="app">
<contact-us></contact-us>
</div>
Vue.component('contact-us', {
data: function() {
return {
email: 'info@mycompany.com'
};
@serdaraglamis
serdaraglamis / shuffle.js
Last active June 29, 2017 11:22
Shuffle Array Items
//ES5 Version
var shuffleArray = function (arr) {
var newArr = arr.slice();
for (var i = newArr.length - 1; i > 0; i--) {
var j = Math.floor(Math.random() * (i + 1));
var temp = newArr[i];
newArr[i] = newArr[j];
newArr[j] = temp;