Skip to content

Instantly share code, notes, and snippets.

View r4hulp's full-sized avatar
🎯
Focusing

Rahul P r4hulp

🎯
Focusing
View GitHub Profile
@r4hulp
r4hulp / satya-tweets.json
Created June 11, 2024 13:55
AI generated tweets Satya
[
{
"id": 1234567890,
"text": "Excited to announce the next generation of intelligent #cloud services from @Microsoft, powered by cutting-edge #AI and #MachineLearning. Stay tuned for more! 🚀 #FutureUnleashed #TechInnovation",
"time_posted": "1h ago"
},
{
"id": 9876543210,
"text": "Thrilled to share that our commitment to #sustainability has been recognized once again. @Microsoft has been named a leader in the @Gartner_inc Magic Quadrant for Corporate Social Responsibility. 🌱 #GreenFuture #EnvironmentalLeadership",
"time_posted": "3h ago"
@r4hulp
r4hulp / satyanadella.json
Created June 11, 2024 09:28
satyanadella
{
"public_identifier": "satyanadella",
"profile_pic_url": "https://s3.us-west-000.backblazeb2.com/proxycurl/person/satyanadella/profile?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20240611%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20240611T092711Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=90cc5a73da61a6b955d4c2b32e68c8dc71815fa1bb6357fead565ebddd090d93",
"background_cover_image_url": null,
"first_name": "Satya",
"last_name": "Nadella",
"full_name": "Satya Nadella",
"follower_count": 10883366,
"occupation": "Chairman and CEO at Microsoft",
"headline": "Chairman and CEO at Microsoft",
@r4hulp
r4hulp / dutch-verbs.md
Last active June 18, 2021 13:43
Dutch Verbs
Infinitive simple past singular simple past plural past participle English
bakken bakte bakten gebakken to fry
bannen bande banden gebannen to ban
barsten barstte barstten gebarsten * to burst
bederven bedierf bedierven bedorven @ to rot
bedriegen bedroog bedrogen bedrogen to deceive
@r4hulp
r4hulp / dutch-verbs.json
Created April 16, 2021 09:33
Most common dutch verbs
[
{
"infinitive":"Infinitive",
"simplepast":"simple past singular",
"simplepastplural":"simple past plural",
"pastparticiple":"past participle",
"english":"English"
},
{
"infinitive":"bakken",
@r4hulp
r4hulp / reclaimWindows10.ps1
Created January 15, 2019 10:37 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
@r4hulp
r4hulp / each.js
Last active December 11, 2018 06:47
JQuery reverse iteration
for( i =  $('li').size(); i>= 0 ; i--){
$('li').eq(i).someSuperLogicHere;
}
@r4hulp
r4hulp / wp.css
Last active December 11, 2018 06:46
WP Shortcodes
.button_style{
display: inline-block;
font-size: 11px;
height: 19px;
margin: 5px 10px 5px 10px;
padding: 9px 13px 0;
text-decoration: none !important;
color:#fff !important;
line-height:11px;
background: #59595a;
@r4hulp
r4hulp / vm1.js
Last active December 11, 2018 06:30
Communication between multiple viewmodels
var self = this;
self.firstName = ko.observable();
self.lastName = ko.observable();
self.fullName = ko.computed(function(){
return self.firstName + " " + self.lastName;
});
};
var viewModel2 = function(){
var self = this;
@r4hulp
r4hulp / custom-handler.cs
Last active December 11, 2018 06:26
Securing ASP.Net WebAPI, Gateway approach
CustomMessageHandler customMessageHandler = new CustomMessageHandler(){ InnerHandler = new HttpControllerHandler(config)};
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional },
constraints : null,
handler : customMessageHandler
);
@r4hulp
r4hulp / bxslider-display.php
Last active December 11, 2018 06:22
BxSlider article
<ul id="bxslider">
<?php if( have_posts() ) : while( have_posts() ) : the_post(); ?>
<!--Each post is wrapped in List item.. -->
<li>
<div class="thumbnail">
<?php
if(has_post_thumbnail()) { ?>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_post_thumbnail( 'thumbnail');?></a> <!-- Image links to Post -->
<?php } else { ?>
<div class="no-thumb"><h2>No thumbnail for this :D</h2><h3>wrapcode</h3></div>